PDA

View Full Version : gprof doesn't work



soul_rebel
10th May 2012, 14:49
I want to profile my multi-threaded gui-app, so I added:

QMAKE_CXXFLAGS_DEBUG += -pg
QMAKE_LFLAGS_DEBUG += -pg
to my project file.

Everything gets built ok, but as soon as I start the program it sigbusses with:

Program received signal SIGBUS, Bus error.
[Switching to Thread 29c04600 (LWP 100853/kports)]
0x2917fc29 in .got.plt () from /usr/local/lib/qt4/libQtCore.so.4
(gdb) bt
#0 0x2917fc29 in .got.plt () from /usr/local/lib/qt4/libQtCore.so.4
#1 0x01b14c29 in ?? ()
#2 0xc0ed1029 in ?? ()
#3 0xbfd97029 in ?? ()
#4 0xc1a0c0bf in ?? ()

What can I do about this? I remember I had the same issue about two years ago and just gave up, but I want to profile now!

Thanks for your help.