This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

The __gnu_cxx::__exchange_and_add causes SIGSEGV


I'm trying to integrate the existent C++ code from RHEL3 to RHEL4
(x86_64). When I tried to execute one of the application, it crashed and
here is the info:

#0  0x00a16761 in __gnu_cxx::__exchange_and_add () from /usr/lib/libstdc
#1  0x009fce6e in std::string::assign () from /usr/lib/
#2  0x080540cc in blueslice::CflContext::getInputFile ()
#3  0x0805fd78 in blueslice::CflProcessor::process ()
#4  0x08050a7d in bluemain ()
#5  0xf793a055 in main () from /blue/lib/
#6  0x00805de3 in __libc_start_main () from /lib/tls/
#7  0x0804eb01 in _start ()

The application does this:
void CflContext::setInputFile(std::string& sInputFileName)
    m_sInputFileName = sInputFileName;

And the GCC version and configuration is:
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --
disable-checking --with-system-zlib --enable-__cxa_atexit --disable-
libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)

I would like to know what went wrong (package missing, bad
configuration, etc.) with that code. It was fine on RHEL3. I really
appreciate your help.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]