Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. SIGSEGV QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType ()
Forum Updated to NodeBB v4.3 + New Features

SIGSEGV QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType ()

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 2 Posters 539 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gajslaw
    wrote on last edited by
    #1

    Got a crash in libQt6Core.so, I can't find the same occurrence on forum and web, any idea?:

    Message: Process 946 (plasmashell) of user 1000 dumped core.

            Stack trace of thread 946:
            #0  0x00007fe8be3e8e20 n/a (libQt6Core.so.6 + 0x5e8e20)
            ELF object binary architecture: AMD x86-64
    

    $ coredumpctl debug

    …

    (gdb) bt

    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () from /usr/lib/libQt6Core.so.6
    [Current thread is 1 (Thread 0x7fe8b90439c0 (LWP 946))]
    (gdb) bt
    #0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () at /usr/lib/libQt6Core.so.6
    #1 0x00007fe8be14b583 in QPersistentModelIndex::row (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp:511
    #2 QItemSelectionRange::top (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.h:31
    #3 QItemSelectionRange::intersects (this=0x7ffde0251d70, other=…) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.cpp:187
    #4 0x00005620865c4dc0 in ??? ()
    #5 0x00005620870b3b50 in ??? ()
    #6 0x0000000000000000 in ??? ()

    (gdb) info registers
    rax 0x7fe8be3d9b18 140637600848664
    rbx 0x7ffde0251d70 140728363982192
    rcx 0x7fe8bce71770 140637578401648
    rdx 0x0 0
    rsi 0x7fe8b4022e00 140637429181952
    rdi 0x7ffde0251d70 140728363982192
    rbp 0x5620870ae630 0x5620870ae630
    rsp 0x7ffde0251d28 0x7ffde0251d28
    r8 0x0 0
    r9 0x7fe8be20fac0 140637598972608
    r10 0x562085ab9f40 94697681559360
    r11 0x5acde567b9527b3 408946129205798835
    r12 0x5620865c4dc0 94697693138368
    r13 0x14 20
    r14 0x56208716d430 94697705362480
    r15 0x562085d88cc0 94697684503744
    rip 0x7fe8be3e8e20 0x7fe8be3e8e20 <QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType>
    eflags 0x10246 [ PF ZF IF RF ]
    cs 0x33 51
    ss 0x2b 43
    ds 0x0 0
    es 0x0 0
    fs 0x0 0
    gs 0x0 0
    fs_base 0x7fe8b90439c0 140637513202112
    gs_base 0x0 0

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gajslaw
      wrote on last edited by gajslaw
      #2

      this is the return -1 in the code below right? dont see any register full of 0xff's, something optimized? Are we missing a check in metaType () for -1?, the qabstractitemmodel.cpp:511 :
      int QPersistentModelIndex::row() const
      {
      if (d)
      return d->index.row();
      return -1;
      }

      where am I wrong?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gajslaw
        wrote on last edited by
        #3

        hmm missed the (this=) in QItemSelectionRange::top (this=) ...

        1 Reply Last reply
        0
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          When you post code, please use the code formatting tags. It makes reading much easier for those who help you.
          I have never bumped into an error like that. Probably there is something wrong in how this QAIM is instantiated and d is either stale or nullptr.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved