Issue with latest QScintilla

Detlev Offenbach detlev at die-offenbachs.de
Thu Aug 25 14:44:17 BST 2022


Here is the gdb backtrace. Hope it gives a clue.

Am 25.08.22 um 15:06 schrieb Thomas Lübking:
> Am Thu, 25 Aug 2022 14:57:57 +0200
> schrieb Detlev Offenbach <detlev at die-offenbachs.de>:
>
>> I am using the QScintilla wheels and I think, they are not built with
>> debugging. Will this work nevertheless? I have used gdb in ages and
>> don't know any more, how to do that.
>>
> https://www.google.com/search?q=basic+gdb+usage
> Attach gdb to the process before you crash it. You might have to allow
> ptrace, "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope"
> The "gdb --pid <PID>" and inside the gdb shell "continue" and after the
> crash "bt"
> Having debug symbols would be better, but even w/o it will at least
> give a general idea about the nature of the segfault.
>
>
> Does that btw. mean that you're using the same version of QScintilla,
> just on different OS stacks?

-- 
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007f5c5fe0b5c0 in QScreen::availableGeometry() const () from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Gui.so.6
(gdb) bt
#0  0x00007f5c5fe0b5c0 in QScreen::availableGeometry() const ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Gui.so.6
#1  0x00007f5c3106b960 in Scintilla::Window::GetMonitorRect(Scintilla::Point)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#2  0x00007f5c312d9b16 in Scintilla::ScintillaBase::AutoCompleteStart(long, char const*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#3  0x00007f5c312dbf9e in Scintilla::ScintillaBase::WndProc(unsigned int, unsigned long, long) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#4  0x00007f5c3103fcfe in QsciScintilla::startAutoCompletion(QsciScintilla::AutoCompletionSource, bool, bool) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#5  0x00007f5c6eb36610 in ?? ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#6  0x00007f5c312f7305 in QsciScintillaBase::SCN_CHARADDED(int) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#7  0x00007f5c3107fe67 in QsciScintillaQt::NotifyParent(SCNotification) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#8  0x00007f5c31258b56 in Scintilla::Editor::NotifyChar(int) ()
--Type <RET> for more, q to quit, c to continue without paging--
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#9  0x00007f5c3126933c in Scintilla::Editor::AddCharUTF(char const*, unsigned int, bool) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#10 0x00007f5c312db46c in Scintilla::ScintillaBase::AddCharUTF(char const*, unsigned int, bool) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#11 0x00007f5c31063261 in QsciScintillaBase::keyPressEvent(QKeyEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#12 0x00007f5c3102baef in meth_QsciScintillaBase_keyPressEvent ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#13 0x000055a51ca35798 in ?? ()
#14 0x000055a51ca2c30b in _PyObject_MakeTpCall ()
#15 0x000055a51ca24c67 in _PyEval_EvalFrameDefault ()
#16 0x000055a51ca4380e in ?? ()
#17 0x00007f5c6e6bfb24 in call_method (va=0x7fff1447c2f0, 
    fmt=0x7f5c3133e85d "D", method=0x7f5c2ed59f40) at sip_core.c:2003
#18 sip_api_call_procedure_method (gil_state=PyGILState_LOCKED, 
    error_handler=0x7f5c6f0eed40 <sipVEH_QtCore_PyQt6(_sipSimpleWrapper*, PyGILState_STATE)>, py_self=0x7f5c041c9870, method=0x7f5c2ed59f40, 
    fmt=0x7f5c3133e85d "D") at sip_core.c:2025
#19 0x00007f5c30f9775e in sipVH_Qsci_27(PyGILState_STATE, void (*)(_sipSimpleWrapper*, PyGILState_STATE), _sipSimpleWrapper*, _object*, QKeyEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#20 0x00007f5c3102b899 in sipQsciScintilla::keyPressEvent(QKeyEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#21 0x00007f5c6bc6ea57 in QWidget::event(QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#22 0x00007f5c6bd01562 in QFrame::event(QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#23 0x00007f5c5d9440e7 in meth_QAbstractScrollArea_event ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/QtWidgets.abi3.so
#24 0x000055a51ca35798 in ?? ()
#25 0x000055a51ca2c30b in _PyObject_MakeTpCall ()
#26 0x000055a51ca24c67 in _PyEval_EvalFrameDefault ()
#27 0x000055a51ca436c1 in ?? ()
#28 0x000055a51ca2425a in _PyEval_EvalFrameDefault ()
#29 0x000055a51ca4380e in ?? ()
#30 0x00007f5c6e6bfe70 in call_method (va=0x7fff1447cab0, fmt=<optimized out>, 
    method=0x7f5c14472b00) at sip_core.c:2003
#31 sip_api_call_method (isErr=0x0, method=0x7f5c14472b00, fmt=<optimized out>)
    at sip_core.c:2058
#32 0x00007f5c30f980dd in sipVH_Qsci_2(PyGILState_STATE, void (*)(_sipSimpleWrap
per*, PyGILState_STATE), _sipSimpleWrapper*, _object*, QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#33 0x00007f5c3102d2c9 in sipQsciScintilla::event(QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qsci.abi3.so
#34 0x00007f5c6bc1a2d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#35 0x00007f5c6bc22c03 in QApplication::notify(QObject*, QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#36 0x00007f5c5d942e86 in sipQApplication::notify(QObject*, QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/QtWidgets.abi3.so
#37 0x00007f5c6ead76ba in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#38 0x00007f5c6bc821a3 in ?? ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#39 0x00007f5c6bc1a2d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#40 0x00007f5c5d942e86 in sipQApplication::notify(QObject*, QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/QtWidgets.abi3.so
#41 0x00007f5c6ead76ba in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#42 0x00007f5c5fdcc23b in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Gui.so.6
#43 0x00007f5c599cfb91 in ?? ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
#44 0x00007f5c6eb3629a in ?? ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#45 0x00007f5c5e4c65ff in QDBusPendingCallWatcher::finished(QDBusPendingCallWatcher*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6DBus.so.6
#46 0x00007f5c6eb27b8c in QObject::event(QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#47 0x00007f5c6bc1a2d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Widgets.so.6
#48 0x00007f5c5d942e86 in sipQApplication::notify(QObject*, QEvent*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/QtWidgets.abi3.so
#49 0x00007f5c6ead76ba in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#50 0x00007f5c6eada5e4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#51 0x00007f5c6ed7c3b3 in ?? ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#52 0x00007f5c6c31bd1b in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#53 0x00007f5c6c3706f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007f5c6c3193c3 in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007f5c6ed7bd3a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#56 0x00007f5c6eae396b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#57 0x00007f5c6eadf52e in QCoreApplication::exec() ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6
#58 0x00007f5c5d7907ef in meth_QApplication_exec ()
   from eric7_env/lib/python3.10/site-packages/PyQt6/QtWidgets.abi3.so
#59 0x000055a51ca35798 in ?? ()
#60 0x000055a51ca2c30b in _PyObject_MakeTpCall ()
#61 0x000055a51ca24c67 in _PyEval_EvalFrameDefault ()
#62 0x000055a51ca35fbc in _PyFunction_Vectorcall ()
#63 0x000055a51ca1e483 in _PyEval_EvalFrameDefault ()
#64 0x000055a51ca1acc6 in ?? ()
#65 0x000055a51cb0feb6 in PyEval_EvalCode ()
#66 0x000055a51cb3d318 in ?? ()
#67 0x000055a51cb3603b in ?? ()
#68 0x000055a51cb3d065 in ?? ()
#69 0x000055a51cb3c548 in _PyRun_SimpleFileObject ()
#70 0x000055a51cb3c243 in _PyRun_AnyFileObject ()
#71 0x000055a51cb2cb6e in Py_RunMain ()
#72 0x000055a51cb02e6d in Py_BytesMain ()
#73 0x00007f5c6fcc4d90 in __libc_start_call_main (
    main=main at entry=0x55a51cb02e30, argc=argc at entry=2, 
    argv=argv at entry=0x7fff1447df08)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#74 0x00007f5c6fcc4e40 in __libc_start_main_impl (main=0x55a51cb02e30, argc=2, 
    argv=0x7fff1447df08, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fff1447def8)
    at ../csu/libc-start.c:392
#75 0x000055a51cb02d65 in _start ()



More information about the QScintilla mailing list