Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SIGSEGV encountered when closing the app

SIGSEGV encountered when closing the app

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 666 Views 2 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.
  • K Offline
    K Offline
    kdev
    wrote on last edited by
    #1

    Hi,
    My app is encountering a strange SIGSEGV bug, when closing it.
    This is the generated info using the GNU Debugger (gdb) :

    Program received signal SIGSEGV, Segmentation fault.
    0x1780c820 in ?? ()
    (gdb) backtrace
    #0 0x1780c820 in ?? ()
    #1 0x0dd91a62 in QBoxLayoutPrivate::deleteAll (this=0x1971dde8)
    at kernel\qboxlayout.cpp:115
    #2 0x0da38dbd in QBoxLayout::~QBoxLayout (this=0x1971d908,
    __in_chrg=<optimized out>) at kernel\qboxlayout.cpp:564
    #3 0x0da3a8c8 in QHBoxLayout::~QHBoxLayout (this=0x1971d908,
    __in_chrg=<optimized out>) at kernel\qboxlayout.cpp:1286
    #4 0x0da3a8f7 in QHBoxLayout::~QHBoxLayout (this=0x1971d908,
    __in_chrg=<optimized out>) at kernel\qboxlayout.cpp:1288
    #5 0x0de24d67 in QGridBox::~QGridBox (this=0x1973abe0,
    __in_chrg=<optimized out>) at kernel\qgridlayout.cpp:65
    #6 0x0da3f83c in QGridLayoutPrivate::deleteAll (this=0x1971df98)
    at kernel\qgridlayout.cpp:366
    #7 0x0da42393 in QGridLayout::~QGridLayout (this=0x1971d890,
    __in_chrg=<optimized out>) at kernel\qgridlayout.cpp:1122
    #8 0x0da423cb in QGridLayout::~QGridLayout (this=0x1971d890,
    __in_chrg=<optimized out>) at kernel\qgridlayout.cpp:1123
    #9 0x0da525e9 in QWidget::~QWidget (this=0x177ff460,
    __in_chrg=<optimized out>) at kernel\qwidget.cpp:1553
    #10 0x0dbcbe08 in QTabWidget::~QTabWidget (this=0x177ff460,
    __in_chrg=<optimized out>) at widgets\qtabwidget.cpp:357
    #11 0x0dbcbe37 in QTabWidget::~QTabWidget (this=0x177ff460,
    __in_chrg=<optimized out>) at widgets\qtabwidget.cpp:359
    #12 0x007f5d53 in QObjectPrivate::deleteChildren (this=0x197381e8)
    ---Type <return> to continue, or q <return> to quit---q

    I'm currently unable to solve this problem.
    Thanks for the help.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      It's quite impossible to help without knowing more details. It seems you've got some layout/widget hierarchy and at some point the deletion of some part of it fails. Might be a double-delete problem. Depends on how you create your widget and layouts, how you delete them and what are the relations.
      A minimized reproducible code example would be best.

      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