This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


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

target/3427: g++3.0 produces executables that don't work at all on Solaris 2.6



>Number:         3427
>Category:       target
>Synopsis:       g++3.0 produces executables that don't work at all on Solaris 2.6
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 26 10:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Koenig
>Release:        3.0
>Organization:
AT&T Research, Florham Park, NJ
>Environment:
System: SunOS europa 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

	
host: sparc-sun-solaris2.6
build: sparc-sun-solaris2.6
target: sparc-sun-solaris2.6
configured with: /tmp/build-gnu21809/gcc-3.0/configure --prefix=/usr/gnu --with-ld=/usr/gnu/bin/ld --with-as=/usr/gnu/bin/as --with-gnu-ld --with-gnu-as
>Description:
	When I compile even a trivial program under Solaris 2.6,
	the resulting executable crashes.
>How-To-Repeat:
	When I compile the following program:

	int main()
	{
		return 0;
	}

	I get an executable that dumps core:

	[europa] LD_LIBRARY_PATH=/usr/gnu/lib a.out
	Segmentation Fault - core dumped

	Here is what gdb says about it on my system:

	[europa] gdb a.out core
	GNU gdb 5.0
	Copyright 2000 Free Software Foundation, Inc.
	GDB is free software, covered by the GNU General Public License, and you are
	welcome to change it and/or distribute copies of it under certain conditions.
	Type "show copying" to see the conditions.
	There is absolutely no warranty for GDB.  Type "show warranty" for details.
	This GDB was configured as "sparc-sun-solaris2.6"...(no debugging symbols found)...
	Core was generated by `a.out'.
	Program terminated with signal 11, Segmentation Fault.
	Reading symbols from /usr/gnu/lib/libstdc++.so.3...done.
	Loaded symbols for /usr/gnu/lib/libstdc++.so.3
	Reading symbols from /usr/lib/libm.so.1...done.
	Loaded symbols for /usr/lib/libm.so.1
	Reading symbols from /usr/gnu/lib/libgcc_s.so.1...done.
	Loaded symbols for /usr/gnu/lib/libgcc_s.so.1
	Reading symbols from /usr/lib/libc.so.1...done.
	Loaded symbols for /usr/lib/libc.so.1
	Reading symbols from /usr/lib/libdl.so.1...done.
	Loaded symbols for /usr/lib/libdl.so.1
	Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
	Loaded symbols for /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
	#0  0xef757b84 in __do_global_dtors_aux () from /usr/gnu/lib/libstdc++.so.3
	(gdb) bt
	#0  0xef757b84 in __do_global_dtors_aux () from /usr/gnu/lib/libstdc++.so.3
	#1  0xef784640 in _fini () from /usr/gnu/lib/libstdc++.so.3
	#2  0xef7d96c0 in ?? ()
	#3  0xef618d30 in _exithandle () from /usr/lib/libc.so.1
	#4  0xef6874b8 in exit () from /usr/lib/libc.so.1

	I am using bintools 2.11.2 (compiled under g++ 2.95.3) and I have
	successfully rebuilt gcc 3.0 from scratch using gcc 3.0

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


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