Hello,
I need to debug runtime error produced by other library that is linked in shared object (QT plugin system).
When using gdb or MSVC++ debugger, I always get irrelevant stact trace pointing to QEventLoop and the message:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

How can I get the stack trace from the code, that really causes the crash? I know that the error comes from wrong accessing of stl::vector object. All libs are compiled with debug flag.

I tried MSVC++ debugger as well as gdb with same results

Thanks in advance,
Tomas

(gdb)
#0 0x00007f4f3643a095 in raise () from /lib/libc.so.6
#1 0x00007f4f3643baf0 in abort () from /lib/libc.so.6
#2 0x00007f4f36cbf0e4 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
#3 0x00007f4f36cbd076 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007f4f36cbd0a3 in std::terminate () from /usr/lib/libstdc++.so.6
#5 0x00007f4f36cbd121 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#6 0x00007f4f3802f61a in QEventLoop::exec (this=0x7fff467a3650,
flags=@0x7fff467a3660) at kernel/qeventloop.cpp:199
#7 0x00007f4f38031529 in QCoreApplication::exec ()
at kernel/qcoreapplication.cpp:845
#8 0x0000000000421f79 in main (argc=1, argv=0x7fff467a3b38) at main.cpp:181
(gdb)