Bug 61135 - running a program linked with libstdc++3.a causes a segmentation fault
Summary: running a program linked with libstdc++3.a causes a segmentation fault
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libstdc++
Version: 7.2
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-03-14 00:56 UTC by Brad Smith
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-12-15 19:32:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Brad Smith 2002-03-14 00:56:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Description of problem:
After updating my machine with gcc3/gcc3-c++/libgcc/libstdc++3/libstdc++3-
devel (version 3.0.4-1), any program that links in the c++ stl library crashes 
with a segmentation fault before entering "main()" function.

Version-Release number of selected component (if applicable):
3.0.4-1


How reproducible:
Always

Steps to Reproduce:
1. Create "Hello world" source file test.cpp that includes <iostream> and 
simply outputs string to std::cout and returns 0 from main()
2. gcc3 -c test.cpp
3. gcc3 -o test test.o -static -lstdc++
4. ./test

	

Actual Results:  Segmentation fault

Expected Results:  Output "Hello world"

Additional info:

If I link as 

gcc3 -o test test.o -lstdc++

everything works.  I am sure linking in the correct
libstdc++3.a lib (3.0.4-1)

Comment 1 Alan Cox 2002-12-15 19:32:52 UTC
Seems fine in gcc 3.2, 3.0.4 was an experimental test compiler so won't be
getting updated



Note You need to log in before you can comment on or make changes to this bug.