incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject stdcxx 4.2.0/4.1.3 binary incompatibility on Linux
Date Wed, 17 Oct 2007 17:21:43 GMT
In a 12D build with the default gcc 4.1.0 on SuSE Linux Enterprise
Server 10 (x86_64), the following simple program abends with the
error below after upgrading the 4.1.3 library to 4.2.0:

#include <string>

int main ()
     std::string s = "a";

The only library symbols referenced from the executable are

   __rw::__rw_throw(int, ...)
   __rw::__rw_deallocate(void*, unsigned long, int)
   std::string::string(char const*, std::allocator<char> const&)

Of these, the first one isn't being called and the second and
fourth haven't changed (according to diff of I hate
to admit I'm stumped. I suppose I should try to do a build on
a different distribution of Linux with an older version of gcc
to see if I can reproduce it there.

*** glibc detected *** ./t: free(): invalid pointer: 0x0000000000500fe8 ***
======= Backtrace: =========

View raw message