[Python-modules-team] Bug#940822: silx view crashes on invocation

Dmitry Shachnev mitya57 at debian.org
Mon Sep 23 10:07:05 BST 2019


Control: reassign -1 libkf5crash5 5.54.0-1
Control: fixed -1 libkf5crash5/5.61.0-1

Hi all,

On Fri, Sep 20, 2019 at 07:11:39PM +0000, PICCA Frederic-Emmanuel wrote:
> Ok this simple script trigger the bug.
>
> from PyQt5.QtWidgets import QApplication, QLabel
> app = QApplication([])
>
> on KDE, but not on Gnome.
>
> BUT this
>
> app = QApplication(['a'])
>
> works.
>
> on KDE and Gnome.

I was able to reproduce this. The stack trace is attached.

This is a bug in KCrash, and it is already fixed in unstable. Cherry-picking
this upstream commit to testing version (5.54.0-1) fixes it too:

https://cgit.kde.org/kcrash.git/commit/?id=34b1a0aad1beaff9

--
Dmitry Shachnev
-------------- next part --------------
#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7c0a535 in __GI_abort () at abort.c:79
#2  0x00007ffff7c61508 in __libc_message (action=action at entry=do_abort, fmt=fmt at entry=0x7ffff7d6c28d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff7c67c1a in malloc_printerr (str=str at entry=0x7ffff7d6db68 "malloc_consolidate(): invalid chunk size") at malloc.c:5341
#4  0x00007ffff7c67f2a in malloc_consolidate (av=av at entry=0x7ffff7da3c40 <main_arena>) at malloc.c:4471
#5  0x00007ffff7c6aa58 in _int_malloc (av=av at entry=0x7ffff7da3c40 <main_arena>, bytes=bytes at entry=16409) at malloc.c:3695
#6  0x00007ffff7c6c56a in __GI___libc_malloc (bytes=16409) at malloc.c:3057
#7  0x00007ffff5fda4b2 in QArrayData::allocate (objectSize=objectSize at entry=1, alignment=alignment at entry=8, capacity=capacity at entry=16385, options=..., options at entry=...)
    at tools/qarraydata.cpp:118
#8  0x00007ffff5fdc400 in QTypedArrayData<char>::allocate (options=..., capacity=16385) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:218
#9  QByteArray::QByteArray (this=0x7fffffffca40, size=16384) at tools/qbytearray.cpp:1711
#10 0x00007ffff60444a8 in QRingChunk::QRingChunk (alloc=<optimized out>, this=0x7fffffffca40)
    at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/tools/qringbuffer_p.h:76
#11 QRingBuffer::reserve (this=0xcb5198, bytes=bytes at entry=16384) at tools/qringbuffer.cpp:152
#12 0x00007ffff60ce8d5 in QIODevicePrivate::QRingBufferRef::reserve (this=0xcb2310, bytes=16384) at io/qiodevice_p.h:101
#13 QIODevicePrivate::read (this=0xcb2280, data=0x7fffffffcb2f "", maxSize=maxSize at entry=1, peeking=peeking at entry=false) at io/qiodevice.cpp:1128
#14 0x00007ffff60cee48 in QIODevice::read (this=<optimized out>, data=<optimized out>, maxSize=maxSize at entry=1) at io/qiodevice.cpp:1052
#15 0x00007ffff60d007a in QIODevice::getChar (this=<optimized out>, c=<optimized out>) at io/qiodevice.cpp:1840
#16 0x00007ffff282c242 in KCrash::CoreConfig::CoreConfig (this=0x7ffff282f3b0 <(anonymous namespace)::Q_QGS_s_coreConfig::innerFunction()::holder>, path=...) at ./src/coreconfig.cpp:40
#17 0x00007ffff282bcd7 in (anonymous namespace)::Q_QGS_s_coreConfig::Holder::Holder (this=0x7ffff282f3b0 <(anonymous namespace)::Q_QGS_s_coreConfig::innerFunction()::holder>)
    at ./src/coreconfig_p.h:30
#18 (anonymous namespace)::Q_QGS_s_coreConfig::innerFunction () at ./src/kcrash.cpp:106
#19 (anonymous namespace)::Q_QGS_s_coreConfig::innerFunction () at ./src/kcrash.cpp:106
#20 QGlobalStatic<KCrash::CoreConfig, (anonymous namespace)::Q_QGS_s_coreConfig::innerFunction, (anonymous namespace)::Q_QGS_s_coreConfig::guard>::operator() (this=<optimized out>)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobalstatic.h:135
#21 KCrash::initialize () at ./src/kcrash.cpp:144
#22 KCrash::initialize () at ./src/kcrash.cpp:124
#23 0x00007ffff61848ed in qAddPreRoutine (p=0x7ffff282bd90 <kcrashInitialize()>) at kernel/qcoreapplication.cpp:287
#24 0x00007ffff7fe437a in call_init (l=<optimized out>, argc=argc at entry=1, argv=argv at entry=0x7fffffffe0c8, env=env at entry=0x7fffffffe0d8) at dl-init.c:72
#25 0x00007ffff7fe4476 in call_init (env=0x7fffffffe0d8, argv=0x7fffffffe0c8, argc=1, l=<optimized out>) at dl-init.c:30
#26 _dl_init (main_map=main_map at entry=0xc929b0, argc=1, argv=0x7fffffffe0c8, env=0x7fffffffe0d8) at dl-init.c:119
#27 0x00007ffff7fe82d3 in dl_open_worker (a=a at entry=0x7fffffffd030) at dl-open.c:517
#28 0x00007ffff7d1cb2f in __GI__dl_catch_exception (exception=<optimized out>, operate=<optimized out>, args=<optimized out>) at dl-error-skeleton.c:196
#29 0x00007ffff7fe7bba in _dl_open (file=0xc90e88 "/usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so", mode=-2147479551, 
    caller_dlopen=0x7ffff617da2c <QLibraryPrivate::load_sys()+1452>, nsid=<optimized out>, argc=1, argv=0x7fffffffe0c8, env=0x7fffffffe0d8) at dl-open.c:599
#30 0x00007ffff7f7e256 in dlopen_doit (a=a at entry=0x7fffffffd250) at dlopen.c:66
#31 0x00007ffff7d1cb2f in __GI__dl_catch_exception (exception=exception at entry=0x7fffffffd1f0, operate=<optimized out>, args=<optimized out>) at dl-error-skeleton.c:196
#32 0x00007ffff7d1cbbf in __GI__dl_catch_error (objname=0x8e8370, errstring=0x8e8378, mallocedp=0x8e8368, operate=<optimized out>, args=<optimized out>) at dl-error-skeleton.c:215
#33 0x00007ffff7f7e975 in _dlerror_run (operate=operate at entry=0x7ffff7f7e200 <dlopen_doit>, args=args at entry=0x7fffffffd250) at dlerror.c:163
#34 0x00007ffff7f7e2e6 in __dlopen (file=<optimized out>, mode=mode at entry=4097) at dlopen.c:87
#35 0x00007ffff617da2c in QLibraryPrivate::load_sys (this=0xc74ab0) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:206
#36 0x00007ffff61776b5 in QLibraryPrivate::load (this=0xc74ab0) at plugin/qlibrary.cpp:549
#37 0x00007ffff6177c63 in QLibraryPrivate::loadPlugin (this=this at entry=0xc74ab0) at plugin/qlibrary.cpp:604
#38 0x00007ffff616de28 in QFactoryLoader::instance (this=this at entry=0x7ffff6996fa0 <(anonymous namespace)::Q_QGS_loader::innerFunction()::holder>, index=<optimized out>)
    at ../../include/QtCore/../../src/corelib/thread/qmutex.h:240
#39 0x00007ffff651b79e in qLoadPlugin<QPlatformTheme, QPlatformThemePlugin, QStringList&> (key=..., loader=0x7ffff6996fa0 <(anonymous namespace)::Q_QGS_loader::innerFunction()::holder>)
    at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/plugin/qfactoryloader_p.h:101
#40 QPlatformThemeFactory::create (key=..., platformPluginPath=...) at kernel/qplatformthemefactory.cpp:73
#41 0x00007ffff65254d8 in init_platform (argv=<optimized out>, argc=@0x7ffff7545120: 0, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...)
    at kernel/qguiapplication.cpp:1228
#42 QGuiApplicationPrivate::createPlatformIntegration (this=0xc4fde0) at kernel/qguiapplication.cpp:1373
#43 0x00007ffff652637d in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1390
#44 0x00007ffff6187b45 in QCoreApplicationPrivate::init (this=this at entry=0xc4fde0) at kernel/qcoreapplication.cpp:867
#45 0x00007ffff652735f in QGuiApplicationPrivate::init (this=this at entry=0xc4fde0) at kernel/qguiapplication.cpp:1419
#46 0x00007ffff6afffc9 in QApplicationPrivate::init (this=0xc4fde0) at kernel/qapplication.cpp:564
#47 0x00007ffff738d839 in sipQApplication::sipQApplication (this=0xc50250, a0=<optimized out>, a1=<optimized out>, a2=<optimized out>)
    at ./dbg-build-3.7/QtWidgets/sipQtWidgetspart9.cpp:12914
#48 0x00007ffff738d917 in init_type_QApplication (sipSelf=0x7ffff77c3a20, sipArgs=<optimized out>, sipKwds=<optimized out>, sipUnused=0x7fffffffda18, sipParseErr=<optimized out>)
    at ./sip/QtWidgets/qapplication.sip:221
#49 0x00007ffff75e40ec in sipSimpleWrapper_init (self=0x7ffff77c3a20, args=([],), kwds=0x0) at ./siplib/siplib.c:10565
#50 0x0000000000482f93 in type_call (type=0xbd3cb0, args=([],), kwds=0x0) at ../Objects/typeobject.c:971
#51 0x000000000043721c in _PyObject_FastCallKeywords (callable=callable at entry=<sip.wrappertype at remote 0xbd3cb0>, stack=stack at entry=0x931df0, nargs=nargs at entry=1, 
    kwnames=kwnames at entry=0x0) at ../Objects/call.c:199
#52 0x00000000004d641c in call_function (pp_stack=pp_stack at entry=0x7fffffffdbf8, oparg=oparg at entry=1, kwnames=kwnames at entry=0x0) at ../Python/ceval.c:4619
#53 0x00000000004e1b75 in _PyEval_EvalFrameDefault (f=Frame 0x931c70, for file <stdin>, line 1, in <module> (), throwflag=<optimized out>) at ../Python/ceval.c:3124
#54 0x00000000004d7544 in PyEval_EvalFrameEx (f=f at entry=Frame 0x931c70, for file <stdin>, line 1, in <module> (), throwflag=throwflag at entry=0) at ../Python/ceval.c:547
#55 0x00000000004d7f6a in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff7657ac0>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=argcount at entry=0, 
    kwnames=0x0, kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:3930
#56 0x00000000004d80eb in PyEval_EvalCodeEx (_co=_co at entry=<code at remote 0x7ffff7657ac0>, 
    globals=globals at entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}, 
    locals=locals at entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}, args=args at entry=0x0, argcount=argcount at entry=0, kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, 
    kwdefs=0x0, closure=0x0) at ../Python/ceval.c:3959
#57 0x00000000004d8119 in PyEval_EvalCode (co=co at entry=<code at remote 0x7ffff7657ac0>, 
    globals=globals at entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}, 
    locals=locals at entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}) at ../Python/ceval.c:524
#58 0x000000000051263e in run_mod (mod=mod at entry=0xa973c8, filename=filename at entry='<stdin>', 
    globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}, 
    locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <type at remote 0x8fbdc0>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff78b43c0>, 'QApplication': <sip.wrappertype at remote 0xbd3cb0>}, flags=flags at entry=0x7fffffffdf4c, arena=arena at entry=0x7ffff7802400) at ../Python/pythonrun.c:1035
#59 0x0000000000514d31 in PyRun_InteractiveOneObjectEx (fp=fp at entry=0x7ffff7da3a00 <_IO_2_1_stdin_>, filename=filename at entry='<stdin>', flags=flags at entry=0x7fffffffdf4c)
    at ../Python/pythonrun.c:256
#60 0x00000000005150b3 in PyRun_InteractiveLoopFlags (fp=fp at entry=0x7ffff7da3a00 <_IO_2_1_stdin_>, filename_str=filename_str at entry=0x64534f "<stdin>", flags=flags at entry=0x7fffffffdf4c)
    at ../Python/pythonrun.c:120
#61 0x0000000000515740 in PyRun_AnyFileExFlags (fp=fp at entry=0x7ffff7da3a00 <_IO_2_1_stdin_>, filename=0x64534f "<stdin>", closeit=closeit at entry=0, flags=flags at entry=0x7fffffffdf4c)
    at ../Python/pythonrun.c:78
#62 0x0000000000425d6f in pymain_run_file (fp=0x7ffff7da3a00 <_IO_2_1_stdin_>, filename=0x0, p_cf=p_cf at entry=0x7fffffffdf4c) at ../Modules/main.c:427
#63 0x0000000000425e2f in pymain_run_filename (pymain=pymain at entry=0x7fffffffdf70, cf=cf at entry=0x7fffffffdf4c) at ../Modules/main.c:1606
#64 0x0000000000425f3c in pymain_run_python (pymain=pymain at entry=0x7fffffffdf70) at ../Modules/main.c:2867
#65 0x0000000000429525 in pymain_main (pymain=pymain at entry=0x7fffffffdf70) at ../Modules/main.c:3028
#66 0x00000000004295ef in _Py_UnixMain (argc=<optimized out>, argv=<optimized out>) at ../Modules/main.c:3063
#67 0x0000000000422e5b in main (argc=<optimized out>, argv=<optimized out>) at ../Programs/python.c:15
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20190923/d18584d2/attachment.sig>


More information about the Python-modules-team mailing list