public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/30994] New: App using Qt lib aborts immediately during startup
@ 2007-02-28 11:34 aegges at web dot de
0 siblings, 0 replies; only message in thread
From: aegges at web dot de @ 2007-02-28 11:34 UTC (permalink / raw)
To: gcc-bugs
I compiled a simple app that is linked dynamically against the Qt library (Qt
3.3.8).
#include "qstring.h"
int main(void) {
QString oTmp("Hello world");
printf( "%s\n", oTmp.ascii() );
return 1;
}
I have compiled the source file with mudflap activated. When I start the
program I get the following error:
terminate called after throwing an instance of 'St9bad_alloc'
what(): St9bad_alloc
Aborted.
The backtrace of gdb gives:
#0 0xb7f51410 in __kernel_vsyscall ()
#1 0x43517aed in raise () from /lib/libc.so.6
#2 0x43519239 in abort () from /lib/libc.so.6
#3 0xb7599a90 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#4 0xb75977c5 in ?? () from
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#5 0xb75977f6 in std::terminate ()
from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#6 0xb75978fa in __cxa_throw () from
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#7 0xb7597ce0 in operator new ()
from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#8 0xb7597da9 in operator new[] ()
from /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libstdc++.so.6
#9 0xb7b8d144 in qstrdup ()
from /home/amueller/sources/qt-x11-commercial-3.3.8/lib/libqt-mt.so.3
#10 0xb7ba2200 in QGDict::look_ascii ()
from /home/amueller/sources/qt-x11-commercial-3.3.8/lib/libqt-mt.so.3
#11 0xb78484f7 in QMetaObjectCleanUp::QMetaObjectCleanUp ()
from /home/amueller/sources/qt-x11-commercial-3.3.8/lib/libqt-mt.so.3
#12 0xb7c79764 in global constructors keyed to
_ZNK15QMotifPlusStyle9classNameEv ()
from /home/amueller/sources/qt-x11-commercial-3.3.8/lib/libqt-mt.so.3
Using MUDFLAP_OPTIONS did not help as my app doesn't seem to reach the point
where it evaluates MUDFLAP_OPTIONS, as even MUDFLAP_OPTIONS="-help" doesn't
work.
The interesting thing is that I can run the mudflapped app with valgrind!!!
Gentoo Linux 2.6.18, gcc 4.1.2 (identical problem with gcc 4.1.1)
--
Summary: App using Qt lib aborts immediately during startup
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libmudflap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aegges at web dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30994
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-28 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-28 11:34 [Bug libmudflap/30994] New: App using Qt lib aborts immediately during startup aegges at web dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).