libstdc++/4019: Using libstdc++ on AlphaLinux causes a Segementation fault

max@takefive.co.at max@takefive.co.at
Tue Aug 14 07:16:00 GMT 2001


>Number:         4019
>Category:       libstdc++
>Synopsis:       Using libstdc++ on AlphaLinux causes a Segementation fault
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 14 07:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     max@takefive.co.at
>Release:        gcc-3.0
>Organization:
>Environment:
Reading specs from /opt/gcc-3.0/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0/specs
Configured with: ./configure --prefix=/opt/gcc-3.0 --enable-shared --enable-languages=c,c++
Thread model: single
gcc version 3.0


>Description:
With gcc-3.0 release linking a test with -lstdc++ always leads to a crash during loading of the shared lib. Even if no symbol from the lib is used.

e.g. simple helloWorld.C

//-----------------------------------
#include <stdio.h>

int main(int, char**)
{
        printf("Hello\n");
}
//-----------------------------------

[maxl@extreme /FromNet]$ g++ helloWorld.C

[maxl@extreme /FromNet]$ ldd ./a.out 
        libstdc++.so.3 => /opt/gcc-3.0/lib/libstdc++.so.3 (0x000002000011e000)
        libm.so.6.1 => /lib/libm.so.6.1 (0x00000200002a4000)
        libgcc_s.so.1 => /opt/gcc-3.0/lib/libgcc_s.so.1 (0x00000200003dc000)
        libc.so.6.1 => /lib/libc.so.6.1 (0x00000200004e6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020000000000)

[maxl@extreme /FromNet]$ ./a.out 
Segmentation fault

Therefore also the complete libstdc++ testsuite failed.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-prs mailing list