Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100687

Crash on shutdown when Qt5Compat.GraphicalEffects is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Qt5Compat.GraphicalEffects triggers a crash on shutdown when LinearGradient items (and maybe others?) are used.

       

      The error I see is this: `malloc_consolidate(): unaligned fastbin chunk detected`

       

      Stack trace:

      ```

      (rr) bt
      #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140404114016448) at pthread_kill.c:44
      #1 __pthread_kill_internal (signo=6, threadid=140404114016448) at pthread_kill.c:80
      #2 _GI__pthread_kill (threadid=140404114016448, signo=signo@entry=6) at pthread_kill.c:91
      #3 0x00007fb2650ba476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4 0x00007fb2650a07b7 in __GI_abort () at abort.c:79
      #5 0x00007fb2651015e6 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fb26525313d "%s\n") at ../sysdeps/posix/libc_fatal.c:155
      #6 0x00007fb265118adc in malloc_printerr (str=str@entry=0x7fb265255bc8 "malloc_consolidate(): unaligned fastbin chunk detected") at malloc.c:5543
      #7 0x00007fb265119d7c in malloc_consolidate (av=av@entry=0x7fb26528cc60 <main_arena>) at malloc.c:4637
      #8 0x00007fb26511a870 in _int_free (av=0x7fb26528cc60 <main_arena>, p=0x558795715fa0, have_lock=<optimized out>) at malloc.c:4561
      #9 0x00007fb26511cce5 in _GI__libc_free (mem=<optimized out>) at malloc.c:3278
      #10 0x00007fb26567d44a in QObjectPrivate::deleteChildren (this=this@entry=0x55879567eba0) at /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:2106
      #11 0x00007fb265681a85 in QObject::~QObject (this=this@entry=0x55879567eaa0, __in_chrg=<optimized out>) at /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:1115
      #12 0x00007fb26492f556 in QWindow::~QWindow (this=this@entry=0x55879567eaa0, __in_chrg=<optimized out>) at /home/qt/work/qt/qtbase/src/gui/kernel/qwindow.cpp:218
      #13 0x00007fb25daa23d3 in QQuickWindow::~QQuickWindow (this=this@entry=0x55879567eaa0, __in_chrg=<optimized out>) at /home/qt/work/qt/qtdeclarative/src/quick/items/qquickwindow.cpp:1119
      #14 0x00007fb25dbdf30a in QQuickWindowQmlImpl::~QQuickWindowQmlImpl (this=0x55879567eaa0, __in_chrg=<optimized out>)
      at /home/qt/work/qt/qtdeclarative/include/QtQuick/6.2.0/QtQuick/private/../../../../../src/quick/items/qquickwindowmodule_p.h:71
      #15 QQmlPrivate::QQmlElement<QQuickWindowQmlImpl>::~QQmlElement (this=0x55879567eaa0, __in_chrg=<optimized out>) at /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlprivate.h:133
      #16 QQmlPrivate::QQmlElement<QQuickWindowQmlImpl>::~QQmlElement (this=0x55879567eaa0, __in_chrg=<optimized out>) at /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlprivate.h:133
      #17 0x00007fb265d95bce in qDeleteAll<QList<QObject*>::const_iterator> (end=..., begin=...) at /home/qt/work/install/include/QtCore/qalgorithms.h:59
      #18 qDeleteAll<QList<QObject*> > (c=...) at /home/qt/work/install/include/QtCore/qalgorithms.h:67
      #19 QQmlApplicationEnginePrivate::cleanUp (this=this@entry=0x55879564ec50) at src/qml/qml/qqmlapplicationengine.cpp:66
      #20 0x00007fb265d95c19 in QQmlApplicationEngine::~QQmlApplicationEngine (this=0x7ffed75a72b0, __in_chrg=<optimized out>) at src/qml/qml/qqmlapplicationengine.cpp:275
      #21 0x0000558795121522 in main (argc=1, argv=0x7ffed75a7428) at a.cpp:12

      ```

       

      In attach a small test case code to reproduce the crash.

        Attachments

        1. a.cpp
          0.2 kB
        2. a.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            baku Andrea Marchesini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes