Important: Please read the Qt Code of Conduct -

SIGSEGV encountered when closing the app

  • 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.

  • Moderators

    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.

Log in to reply