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

Segmentation fault when opening the file picker, possibly aarch64 and gcc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.8.0
    • Core: Other
    • None
    • OS: postmarketOS v24.12 aarch64
    • Linux/X11

    Description

      This bug may be caused by gcc on aarch64 as another one related to kvantum:

      https://bugreports.qt.io/browse/QTBUG-132447

      https://github.com/tsujan/Kvantum/discussions/999

       

      Users of Arch Linux aarch64 reported problem with the file picker too.

      I could not attach gdb log files so I put them here.

      Jira could not attach the file as there was a missing token. Please try attaching the file again.

       

      This happened when opening the file picker in nheko.

      (gdb) core core
      warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:xshmfence (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:xorg (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing
      warning: Can't open file /memfd:pulseaudio (deleted) during file-backed mapping note processing
      [New LWP 16080]
      [New LWP 16090]
      [New LWP 16166]
      [New LWP 16651]
      [New LWP 16091]
      [New LWP 16098]
      [New LWP 16164]
      [New LWP 16195]
      [New LWP 16165]
      [New LWP 16094]
      [New LWP 16167]
      [New LWP 16650]
      [New LWP 16649]
      [New LWP 16093]
      [New LWP 16666]
      [New LWP 16103]
      [New LWP 16645]
      [New LWP 16124]
      [New LWP 16099]
      [New LWP 16674]
      [New LWP 17601]
      [New LWP 16163]
      [New LWP 16092]
      Core was generated by `nheko'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x0000ffff86565648 in QtPrivate::QMetaTypeForType<QImage>::getDtor()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*) ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qmetatype.h:2470
      warning: 2470    /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qmetatype.h: No such file or directory
      [Current thread is 1 (LWP 16080)]
      (gdb) bt
      #0  0x0000ffff86565648 in QtPrivate::QMetaTypeForType<QImage>::getDtor()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*) ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qmetatype.h:2470
      #1  0x0000ffff85fb4e20 in QtMetaTypePrivate::destruct ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qmetatype_p.h:203
      #2  customClear ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qvariant.cpp:295
      #3  QVariant::~QVariant ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qvariant.cpp:532
      #4  0x0000ffff8822a2b0 in QHeaderView::sectionSizeFromContents ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/itemviews/qheaderview.cpp:3022
      #5  0x0000ffff8821617c in QHeaderView::sizeHint ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/itemviews/qheaderview.cpp:489
      #6  0x0000ffff88281e10 in QTreeView::updateGeometries ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/itemviews/qtreeview.cpp:2904
      #7  0x0000ffff88200eb0 in QAbstractItemView::doItemsLayout ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/itemviews/qabstractitemview.cpp:1262
      #8  0x0000ffff8827af68 in QTreeView::doItemsLayout ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/itemviews/qtreeview.cpp:2184
      #9  0x0000ffff881ad930 in QFileDialogPrivate::restoreFromSettings ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:2835
      #10 0x0000ffff881bd188 in QFileDialogPrivate::createWidgets ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:3100
      #11 0x0000ffff881ae28c in QFileDialogPrivate::init ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:2915
      #12 0x0000ffff881a35c4 in QFileDialog::QFileDialog ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:365
      #13 0x0000ffff881aab14 in QFileDialog::getOpenFileUrls ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:2254
      #14 0x0000ffff881aad90 in QFileDialog::getOpenFileNames ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/dialogs/qfiledialog.cpp:2203
      #15 0x0000aaaacddb1c14 in ??? ()
      #16 0x0000aaaacddb8284 in ??? ()
      #17 0x0000ffff87138f84 in ??? () at /usr/lib/libQt6Qml.so.6
      #18 0x0000ffff8700596c in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () at /usr/lib/libQt6Qml.so.6
      #19 0x0000ffff87011a9c in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const ()
          at /usr/lib/libQt6Qml.so.6
      #20 0x0000ffff870839b4 in ??? () at /usr/lib/libQt6Qml.so.6
      #21 0x0000ffff8708a27c in ??? () at /usr/lib/libQt6Qml.so.6
      #22 0x0000ffff86fa6af4 in ??? () at /usr/lib/libQt6Qml.so.6
      #23 0x0000ffff86fafd94 in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) ()
          at /usr/lib/libQt6Qml.so.6
      #24 0x0000ffff87110360 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) () at /usr/lib/libQt6Qml.so.6
      --Type <RET> for more, q to quit, c to continue without paging--
      #25 0x0000ffff870b84e4 in QQmlBoundSignalExpression::evaluate(void**) () at /usr/lib/libQt6Qml.so.6
      #26 0x0000ffff870bc88c in ??? () at /usr/lib/libQt6Qml.so.6
      #27 0x0000ffff8712ea38 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /usr/lib/libQt6Qml.so.6
      #28 0x0000ffff85fb20a0 in doActivate<false> ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qobject.cpp:4010
      #29 0x0000ffff67ed2568 in QQuickAbstractButtonPrivate::handleRelease(QPointF const&, unsigned long) ()
          at /usr/lib/qt6/qml/Qt/labs/platform/../../../../..//libQt6QuickTemplates2.so.6
      #30 0x0000ffff67ee22b0 in QQuickControl::touchEvent(QTouchEvent*) ()
          at /usr/lib/qt6/qml/Qt/labs/platform/../../../../..//libQt6QuickTemplates2.so.6
      #31 0x0000ffff875cde04 in QQuickItemPrivate::deliverPointerEvent(QEvent*) () at /usr/lib/libQt6Quick.so.6
      #32 0x0000ffff875d7ea0 in QQuickItem::event(QEvent*) () at /usr/lib/libQt6Quick.so.6
      #33 0x0000ffff87f71694 in QApplicationPrivate::notify_helper ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/kernel/qapplication.cpp:3294
      #34 0x0000ffff85f4b090 in QCoreApplication::notifyInternal2 ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qcoreapplication.cpp:1165
      #35 0x0000ffff87755e74 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(QQuickItem*, bool, QPointerEvent*, bool) ()
          at /usr/lib/libQt6Quick.so.6
      #36 0x0000ffff87756f88 in QQuickDeliveryAgentPrivate::deliverUpdatedPoints(QPointerEvent*) () at /usr/lib/libQt6Quick.so.6
      #37 0x0000ffff87758948 in QQuickDeliveryAgentPrivate::deliverPointerEvent(QPointerEvent*) () at /usr/lib/libQt6Quick.so.6
      #38 0x0000ffff67f06084 in QQuickOverlay::eventFilter(QObject*, QEvent*) ()
          at /usr/lib/qt6/qml/Qt/labs/platform/../../../../..//libQt6QuickTemplates2.so.6
      #39 0x0000ffff85f46a3c in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qcoreapplication.cpp:1304
      #40 0x0000ffff87f7167c in QApplicationPrivate::notify_helper ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/widgets/kernel/qapplication.cpp:3288
      #41 0x0000ffff85f4b090 in QCoreApplication::notifyInternal2 ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qcoreapplication.cpp:1165
      #42 0x0000ffff865b05ec in QGuiApplicationPrivate::processTouchEvent ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/gui/kernel/qguiapplication.cpp:3250
      #43 0x0000ffff86613f34 in QWindowSystemInterface::sendWindowSystemEvents ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/gui/kernel/qwindowsysteminterface.cpp:1114
      #44 0x0000ffff78021e88 in xcbSourceDispatch ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:57
      #45 0x0000ffff85b9372c in ??? () at /usr/lib/libglib-2.0.so.0
      #46 0x0000ffff85b96f20 in ??? () at /usr/lib/libglib-2.0.so.0
      #47 0x0000ffff85b977d4 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
      #48 0x0000ffff8619f0b4 in QEventDispatcherGlib::processEvents ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qeventdispatcher_glib.cpp:396
      #49 0x0000ffff85f554dc in QEventLoop::exec ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qeventloop.cpp:191
      #50 0x0000ffff85f55924 in QCoreApplication::exec ()
          at /home/buildozer/aports/community/qt6-qtbase/src/qtbase-everywhere-src-6.8.0/src/corelib/kernel/qcoreapplication.cpp:1510
      --Type <RET> for more, q to quit, c to continue without paging--
      #51 0x0000aaaacdd50dd4 in main ()
      (gdb) info registers
      x0             0xffff86549664      281472935433828
      x1             0x0                 0
      x2             0xffff8656562c      281472935548460
      x3             0x2140c             136204
      x4             0x0                 0
      x5             0x21408             136200
      x6             0xffffff            16777215
      x7             0xffff88b1f278      281472975106680
      x8             0x63                99
      x9             0x53d56604d95a0097  6040846646199845015
      x10            0x20                32
      x11            0x218               536
      x12            0xffffdf30a840      281474426251328
      x13            0x2b30              11056
      x14            0x4                 4
      x15            0x0                 0
      x16            0xffff88536a20      281472968911392
      x17            0xffff85fb4d90      281472929582480
      x18            0x1                 1
      x19            0xffffdf30d738      281474426263352
      x20            0xffffdf30d690      281474426263184
      x21            0xffffdf30d738      281474426263352
      x22            0xffffdf30d6f8      281474426263288
      x23            0xffff88500098      281472968687768
      x24            0xffffdf30d670      281474426263152
      x25            0x1                 1
      --Type <RET> for more, q to quit, c to continue without paging--
      x26            0xffffdf30d9d0      281474426264016
      x27            0xffff8854b6e0      281472968996576
      x28            0xffff8854b6d8      281472968996568
      x29            0xffffdf30d5f0      281474426263024
      x30            0xffff85fb4e20      281472929582624
      sp             0xffffdf30d5f0      0xffffdf30d5f0
      pc             0xffff86565648      0xffff86565648 <QtPrivate::QMetaTypeForType<QImage>::getDtor()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*)+28>
      cpsr           0x1000              [ EL=0 BTYPE=0 SSBS ]
      fpsr           0x17                [ IOC DZC OFC IXC ]
      fpcr           0x0                 [ Len=0 Stride=0 RMode=0 ]
      tpidr          0xffff88b0d150      0xffff88b0d150
      tpidr2         0x0                 0x0
      (gdb) disassemble
      Dump of assembler code for function _ZZN9QtPrivate16QMetaTypeForTypeI6QImageE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES5_S6_:
         0x0000ffff8656562c <+0>:    stp    x29, x30, [sp, #-32]!
         0x0000ffff86565630 <+4>:    adrp    x0, 0xffff86549000 <_ZN9QtPrivate16QMovableArrayOpsI7QStringE7emplaceIJRKS1_EEEvxDpOT_+96>
         0x0000ffff86565634 <+8>:    add    x0, x0, #0x664
         0x0000ffff86565638 <+12>:    mov    x29, sp
         0x0000ffff8656563c <+16>:    stp    x19, x20, [sp, #16]
         0x0000ffff86565640 <+20>:    mov    x19, x1
         0x0000ffff86565644 <+24>:    ldr    x1, [x1]
      => 0x0000ffff86565648 <+28>:    ldr    x1, [x1]
         0x0000ffff8656564c <+32>:    cmp    x1, x0
      --Type <RET> for more, q to quit, c to continue without paging--
         0x0000ffff86565650 <+36>:    b.ne    0xffff865656a8 <_ZZN9QtPrivate16QMetaTypeForTypeI6QImageE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES5_S6_+124>  // b.any
         0x0000ffff86565654 <+40>:    adrp    x0, 0xffff86c3f000
         0x0000ffff86565658 <+44>:    ldr    x0, [x0, #1792]
         0x0000ffff8656565c <+48>:    ldr    x1, [x19, #16]
         0x0000ffff86565660 <+52>:    add    x0, x0, #0x10
         0x0000ffff86565664 <+56>:    str    x0, [x19]
         0x0000ffff86565668 <+60>:    cbz    x1, 0xffff86565698 <_ZZN9QtPrivate16QMetaTypeForTypeI6QImageE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES5_S6_+108>
         0x0000ffff8656566c <+64>:    mov    w0, #0xffffffff                // #-1
         0x0000ffff86565670 <+68>:    bl    0xffff86aad230 <__aarch64_ldadd4_acq_rel>
         0x0000ffff86565674 <+72>:    cmp    w0, #0x1
      --Type <RET> for more, q to quit, c to continue without paging--
         0x0000ffff86565678 <+76>:    b.ne    0xffff86565698 <_ZZN9QtPrivate16QMetaTypeForTypeI6QImageE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES5_S6_+108>  // b.any
         0x0000ffff8656567c <+80>:    ldr    x20, [x19, #16]
         0x0000ffff86565680 <+84>:    cbz    x20, 0xffff86565698 <_ZZN9QtPrivate16QMetaTypeForTypeI6QImageE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES5_S6_+108>
         0x0000ffff86565684 <+88>:    mov    x0, x20
         0x0000ffff86565688 <+92>:    bl    0xffff865184a0 <_ZN10QImageDataD1Ev@plt>
         0x0000ffff8656568c <+96>:    mov    x0, x20
         0x0000ffff86565690 <+100>:    mov    x1, #0xa0                      // #160
         0x0000ffff86565694 <+104>:    bl    0xffff86511c40 <_ZdlPvm@plt>
         0x0000ffff86565698 <+108>:    mov    x0, x19
         0x0000ffff8656569c <+112>:    ldp    x19, x20, [sp, #16]
         0x0000ffff865656a0 <+116>:    ldp    x29, x30, [sp], #32
         0x0000ffff865656a4 <+120>:    b    0xffff86516cb0 <_ZN12QPaintDeviceD2Ev@plt>
         0x0000ffff865656a8 <+124>:    mov    x0, x19
         0x0000ffff865656ac <+128>:    mov    x16, x1
         0x0000ffff865656b0 <+132>:    ldp    x19, x20, [sp, #16]
         0x0000ffff865656b4 <+136>:    ldp    x29, x30, [sp], #32
         0x0000ffff865656b8 <+140>:    br    x16
      End of assembler dump.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            realroot Real Root
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes