Uncategorized

Crash on Linux after running external project tool to run Python black


I have been experiencing this crash after running a project tool I set up to run an external Python beautifier on the current file (Python black).  The project tool is configured to save the current file first, then runs the tool and captures build output to the build window.  At the time of the crash, the current editor window is the build window.  The external tool had finished running, the file was reformatted, but the Auto-reload dialog had not yet came up.  The tool’s output does print some color to the terminal.

Sorry I can’t provide much more, other than this seems to be specific to Python, and has happened on all Python source files I try to reformat.

(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007fa14d65b859 in __GI_abort () at abort.c:79
#2  0x00007fa14d6c626e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fa14d7f0298 "%s\n")
    at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007fa14d6ce2fc in malloc_printerr (str=str@entry=0x7fa14d7f2a50 "malloc(): invalid size (unsorted)") at malloc.c:5347
#4  0x00007fa14d6d10b4 in _int_malloc (av=av@entry=0x7fa14d825b80 <main_arena>, bytes=bytes@entry=24) at malloc.c:3736
#5  0x00007fa14d6d3299 in __GI___libc_malloc (bytes=24) at malloc.c:3066
#6  0x0000000002635688 in operator new(unsigned long) ()
#7  0x00007fa14ccb88aa in ?? () from /opt/slickedit-pro2023/bin/libQt5XcbQpa.so.5
#8  0x00007fa14ccb8dbc in ?? () from /opt/slickedit-pro2023/bin/libQt5XcbQpa.so.5
#9  0x00007fa14ccb946d in ?? () from /opt/slickedit-pro2023/bin/libQt5XcbQpa.so.5
#10 0x00007fa15951bbef in QRasterPaintEngine::drawCachedGlyphs(int, unsigned int const*, QFixedPoint const*, QFontEngine*) ()
   from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#11 0x00007fa15951dced in QRasterPaintEngine::drawTextItem(QPointF const&, QTextItem const&) ()
   from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#12 0x00007fa1595048dd in ?? () from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#13 0x00007fa15950523c in QPainter::drawText(QPointF const&, QString const&, int, int) ()
   from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#14 0x0000000000a705b0 in seLineLayout::drawLine(QPainter&, crt2_t*, int, int, QRect const&, cmArray<seLineLayout::WidthToCursor>*, cmArray<seLineLayout::WidthToCursor>*) ()
#15 0x0000000000b0a97e in show_line(crt2_t*, int, QPainter*, int&, int&) ()
#16 0x0000000000b0c63a in crt2_refresh(crt2_t*, QPainter*, QRect*, bool, bool, bool) [clone .constprop.222] ()
#17 0x000000000096f8db in vsCtlEditorView::paint(QPaintEvent*) ()
#18 0x000000000096fa9d in vsCtlEditorView::paintEvent(QPaintEvent*) ()
#19 0x00007fa158bd1779 in QWidget::event(QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#20 0x00007fa158be872e in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#21 0x00007fa158bf2570 in QApplication::notify(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#22 0x00007fa158f36629 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#23 0x00007fa158bc5690 in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#24 0x00007fa158bce60c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#25 0x00007fa158be991b in ?? () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#26 0x00007fa158bd0a08 in QWidgetPrivate::syncBackingStore() () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#27 0x00007fa158bd0e58 in QWidget::event(QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#28 0x0000000000585f95 in vsCtlMainMdi::event(QEvent*) ()
#29 0x00007fa158be872e in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#30 0x00007fa158bf2570 in QApplication::notify(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#31 0x00007fa158f36629 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#32 0x00007fa158f367c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#33 0x00007fa158ef0d23 in ?? () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#34 0x00007fa14d55a17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fa14d55a400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fa14d55a4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fa158eeb6b4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#38 0x00007fa158f34e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#39 0x00007fa158f36ddc in QCoreApplication::exec() () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#40 0x00000000005a2e6a in vmain(int, char**) ()
#41 0x0000000001fb9da9 in xmain ()
#42 0x00000000005e2be9 in main ()
(gdb)

and in another run:
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007fe2eff3b859 in __GI_abort () at abort.c:79
#2  0x00007fe2effa626e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fe2f00d0298 "%s\n")
    at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007fe2effae2fc in malloc_printerr (str=str@entry=0x7fe2f00d2a50 "malloc(): invalid size (unsorted)") at malloc.c:5347
#4  0x00007fe2effb10b4 in _int_malloc (av=av@entry=0x7fe2f0105b80 <main_arena>, bytes=bytes@entry=288) at malloc.c:3736
#5  0x00007fe2effb4b95 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3428
#6  0x00007fe2fbf7cdec in QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QVector<unsigned int> const&, bool, bool) const () from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#7  0x00007fe2fbf85acf in QTextEngine::shapeText(int) const () from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#8  0x00007fe2fbf6b37e in QTextEngine::shape(int) const () from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#9  0x00007fe2fbf7e5ba in QTextEngine::shapeLine(QScriptLine const&) () from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#10 0x00007fe2fbde4efd in QPainter::drawText(QPointF const&, QString const&, int, int) ()
   from /opt/slickedit-pro2023/bin/libQt5Gui.so.5
#11 0x0000000000a705b0 in seLineLayout::drawLine(QPainter&, crt2_t*, int, int, QRect const&, cmArray<seLineLayout::WidthToCursor>*, cmArray<seLineLayout::WidthToCursor>*) ()
#12 0x0000000000b0a97e in show_line(crt2_t*, int, QPainter*, int&, int&) ()
#13 0x0000000000b0c63a in crt2_refresh(crt2_t*, QPainter*, QRect*, bool, bool, bool) [clone .constprop.222] ()
#14 0x000000000096f8db in vsCtlEditorView::paint(QPaintEvent*) ()
#15 0x000000000096fa9d in vsCtlEditorView::paintEvent(QPaintEvent*) ()
#16 0x00007fe2fb4b1779 in QWidget::event(QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#17 0x00007fe2fb4c872e in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#18 0x00007fe2fb4d2570 in QApplication::notify(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#19 0x00007fe2fb816629 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#20 0x00007fe2fb4a5690 in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#21 0x00007fe2fb4ae60c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#22 0x00007fe2fb4c991b in ?? () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#23 0x00007fe2fb4b0a08 in QWidgetPrivate::syncBackingStore() () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#24 0x00007fe2fb4b0e58 in QWidget::event(QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#25 0x0000000000585f95 in vsCtlMainMdi::event(QEvent*) ()
#26 0x00007fe2fb4c872e in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#27 0x00007fe2fb4d2570 in QApplication::notify(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Widgets.so.5
#28 0x00007fe2fb816629 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#29 0x00007fe2fb8167c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#30 0x00007fe2fb7d0d23 in ?? () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#31 0x00007fe2efe3a17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fe2efe3a400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fe2efe3a4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fe2fb7cb6b4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#35 0x00007fe2fb814e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#36 0x00007fe2fb816ddc in QCoreApplication::exec() () from /opt/slickedit-pro2023/bin/libQt5Core.so.5
#37 0x00000000005a2e6a in vmain(int, char**) ()
#38 0x0000000001fb9da9 in xmain ()
#39 0x00000000005e2be9 in main ()
(gdb)

Here is the redacted text sent to the build window:
VSLICKERRORPATH=/home/XXXXXXXXXXXXXXXXXX
dm --volume=$HOME/dev/XXXXXXXXXXXXXX lint XXXXXXXXXX_lint.py -f util/.../test_XXXXXXXXXXXXXXXXXXXX.py
Creating docker_lint_run ...
[1A[2K
Creating docker_lint_run ... [32mdone[0m
[1Bvsbuild_done



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *