[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug libmudflap/30994] New: App using Qt lib aborts immediately during startup
From: "aegges at web dot de" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2007-02-28 11:34:25
Message-ID: bug-30994-14169 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic