[Qt-interest] SIGSEGV When Closing Child Top-Level Window

Josiah Bryan jbryan at productiveconcepts.com
Thu Nov 19 21:20:21 CET 2009


william.crocker at analog.com wrote:
>>> But I can't find what in my code is causing the crash, since the 
>>> stacktrace doesn't even *hint* at whats wrong.
>>>
> 
> Use a program like valgrind or Purify(IBM/$$$).
> It will change your life.
> 

My life doesnt feel very changed right now. Valgrind tells me pretty 
much the same thing: Qt is barfing deep inside the core somewhere. It 
sounds like inside QWidget::isActiveWindow().

Any ideas on how to change my life with this new enlightening knowledge 
gained by the the of valgrind? :-)

==31115== Invalid read of size 4
==31115==    at 0x472AFAC: QWidget::isActiveWindow() const 
(qwidget.cpp:6335)
==31115==    by 0x4A19ACD: QStyleOption::init(QWidget const*) 
(qstyleoption.cpp:206)
==31115==    by 0x4BBAB22: 
QScrollBar::initStyleOption(QStyleOptionSlider*) const (qstyleoption.h:99)
==31115==    by 0x4BBBBC7: QScrollBar::sizeHint() const (qscrollbar.cpp:492)
==31115==    by 0x4BF83AF: QAbstractScrollAreaPrivate::layoutChildren() 
(qabstractscrollarea.cpp:351)
==31115==    by 0x4CBBC7C: QListViewPrivate::doItemsLayout(int) 
(qlistview.cpp:1691)
==31115==    by 0x4CBC700: QListView::doItemsLayout() (qlistview.cpp:1452)
==31115==    by 0x4C9E6EE: QAbstractItemView::timerEvent(QTimerEvent*) 
(qabstractitemview.cpp:2327)
==31115==    by 0x4CBC0E5: QListView::timerEvent(QTimerEvent*) 
(qlistview.cpp:817)
==31115==    by 0x51E7FAE: QObject::event(QEvent*) (qobject.cpp:1204)
==31115==    by 0x47320E6: QWidget::event(QEvent*) (qwidget.cpp:8427)
==31115==    by 0x4B5C752: QFrame::event(QEvent*) (qframe.cpp:557)
==31115==  Address 0x6836C30 is not stack'd, malloc'd or (recently) free'd
pure virtual method called
terminate called without an active exception
==31115==


-=-=-=-=-=-=-=-=-=-=-=-=-
Josiah Bryan
Productive Concepts, Inc.
jbryan at pciint.com
(765) 964-6009, ext. 224




More information about the Qt-interest-old mailing list