Segmentation fault when running a very simple Qt application compiled in 'release' configuration

Bug #923979 reported by Dmitry Pankratov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 11.10 AMD64, libqt4-dev 4:4.7.4-0ubuntu8.1.

Running a very simple application that is built with 'release' flags causes SIGSEGV.

GDB stack trace:

#0 __strlen_sse42 () at ../sysdeps/x86_64/multiarch/strlen-sse4.S:32
#1 0x00007ffff43c746c in XSetCommand () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff43cc1f9 in XSetWMProperties () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3 0x00007ffff7395945 in QWidgetPrivate::create_sys (this=0x803660, window=71303174,
    initializeWindow=true, destroyOldWindow=171) at kernel/qwidget_x11.cpp:801
#4 0x00007ffff73422cb in QWidget::create (this=0x7fffffffde10, window=0, initializeWindow=true,
    destroyOldWindow=true) at kernel/qwidget.cpp:1487
#5 0x00007ffff734cbaa in QWidget::setVisible (this=0x7fffffffde10, visible=<optimized out>)
    at kernel/qwidget.cpp:7632
#6 0x00007ffff77b04ec in QDialog::setVisible (this=0x7fffffffde10, visible=<optimized out>)
    at dialogs/qdialog.cpp:739
#7 0x00007ffff77af290 in show (this=0x7fffffffde10)
    at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#8 QDialog::exec (this=<optimized out>) at dialogs/qdialog.cpp:543
#9 0x00007ffff77d0202 in showNewMessageBox (parent=<optimized out>, icon=<optimized out>,
    title=<optimized out>, text=<optimized out>, buttons=..., defaultButton=QMessageBox::NoButton)
    at dialogs/qmessagebox.cpp:1538
#10 0x00007ffff77d032f in QMessageBox::warning (parent=<optimized out>, title=<optimized out>,
    text=<optimized out>, buttons=<optimized out>, defaultButton=<optimized out>)
    at dialogs/qmessagebox.cpp:1638
#11 0x0000000000400875 in main ()

Attached is a tarball with a project that causes this issue.
I have tested it on two independent computers both running the same OS version.

Revision history for this message
Dmitry Pankratov (dremon) wrote :
Revision history for this message
Dmitry Pankratov (dremon) wrote :

Can be closed as 'Invalid'. The problem is wrong application design.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.