I want to profile my multi-threaded gui-app, so I added:
Qt Code:
  1. QMAKE_CXXFLAGS_DEBUG += -pg
  2. QMAKE_LFLAGS_DEBUG += -pg
To copy to clipboard, switch view to plain text mode 
to my project file.

Everything gets built ok, but as soon as I start the program it sigbusses with:
Qt Code:
  1. Program received signal SIGBUS, Bus error.
  2. [Switching to Thread 29c04600 (LWP 100853/kports)]
  3. 0x2917fc29 in .got.plt () from /usr/local/lib/qt4/libQtCore.so.4
  4. (gdb) bt
  5. #0 0x2917fc29 in .got.plt () from /usr/local/lib/qt4/libQtCore.so.4
  6. #1 0x01b14c29 in ?? ()
  7. #2 0xc0ed1029 in ?? ()
  8. #3 0xbfd97029 in ?? ()
  9. #4 0xc1a0c0bf in ?? ()
To copy to clipboard, switch view to plain text mode 

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.