* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
@ 2010-01-23 15:26 ` rguenth at gcc dot gnu dot org
2010-01-24 15:04 ` dave at hiauly1 dot hia dot nrc dot ca
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-23 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-23 15:25 -------
Probably related to PR42837.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |42837
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
2010-01-23 15:26 ` [Bug target/42850] " rguenth at gcc dot gnu dot org
@ 2010-01-24 15:04 ` dave at hiauly1 dot hia dot nrc dot ca
2010-01-31 16:32 ` danglin at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-01-24 15:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca 2010-01-24 15:00 -------
Subject: Re: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
> Probably related to PR42837.
The failure started before the failure of g++.dg/abi/packed1.C.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
2010-01-23 15:26 ` [Bug target/42850] " rguenth at gcc dot gnu dot org
2010-01-24 15:04 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-01-31 16:32 ` danglin at gcc dot gnu dot org
2010-01-31 16:54 ` carlos at systemhalted dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-01-31 16:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from danglin at gcc dot gnu dot org 2010-01-31 16:32 -------
The failure was introduced by my change to the libgcc_s so version. With
the change, the array dwarf_reg_size_table is no longer initialized. It
appears that glibc has an implicit dependence on libgcc_s:
Breakpoint 4, __gxx_personality_v0 (version=1, actions=10, exception_class=0,
ue_header=0x40002408, context=0xbff01630)
at ../../../../gcc/libstdc++-v3/libsupc++/eh_personality.cc:361
361 {
(gdb) bt
#0 __gxx_personality_v0 (version=1, actions=10, exception_class=0,
ue_header=0x40002408, context=0xbff01630)
at ../../../../gcc/libstdc++-v3/libsupc++/eh_personality.cc:361
#1 0x400c6028 in _Unwind_ForcedUnwind_Phase2 (exc=0x40002408,
context=0xbff01630) at ../../../src/libgcc/../gcc/unwind.inc:175
#2 0x400c6170 in _Unwind_ForcedUnwind (exc=0x40002408,
stop=@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0)
at ../../../src/libgcc/../gcc/unwind.inc:207
#3 0x401a1eec in _Unwind_ForcedUnwind (exc=0x40002408,
stop=@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0)
at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133
#4 0x4019e7d8 in *__GI___pthread_unwind (buf=0x0) at unwind.c:130
#5 0x40193994 in __do_cancel (value=<value optimized out>) at pthreadP.h:265
#6 __pthread_exit (value=<value optimized out>) at pthread_exit.c:30
#7 0x00010784 in main ()
at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13
The problem is two copies of libgcc_s.
Breakpoint 5, main ()
at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13
13 pthread_exit (0);
Current language: auto
The current source language is "auto; currently c++".
(gdb) info shared
>From To Syms Read Shared Object Library
0x402673c0 0x4027fef0 Yes (*) /lib/ld.so.1
0x4039a350 0x40420c6c Yes
/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs/libstdc++.so.6
0x404c4658 0x404fd5a8 Yes (*) /lib/libm.so.6
0x4014fa40 0x4015c330 Yes /home/dave/gnu/gcc/objdir/gcc/libgcc_s.so.6
0x4018f8e0 0x401a405c Yes (*) /lib/libpthread.so.0
0x40921e00 0x40a2d1f0 Yes (*) /lib/libc.so.6
(gdb) enable 6
(gdb) c
Continuing.
Breakpoint 6, 0x401a1ee4 in _Unwind_ForcedUnwind (exc=0x40002408,
stop=@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0)
at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133
133 ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: No
such file or directory.
in ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c
Current language: auto
The current source language is "auto; currently c".
(gdb) info shared
>From To Syms Read Shared Object Library
0x402673c0 0x4027fef0 Yes (*) /lib/ld.so.1
0x4039a350 0x40420c6c Yes
/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs/libstdc++.so.6
0x404c4658 0x404fd5a8 Yes (*) /lib/libm.so.6
0x4014fa40 0x4015c330 Yes /home/dave/gnu/gcc/objdir/gcc/libgcc_s.so.6
0x4018f8e0 0x401a405c Yes (*) /lib/libpthread.so.0
0x40921e00 0x40a2d1f0 Yes (*) /lib/libc.so.6
0x400bca70 0x400c98dc Yes (*) /lib/libgcc_s.so.4
(*): Shared library is missing debugging information.
(gdb) bt
#0 0x401a1ee4 in _Unwind_ForcedUnwind (exc=0x40002408,
stop=@0x401a83a6: 0x4019e838 <unwind_stop>, stop_argument=0xbff011d0)
at ../ports/sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c:133
#1 0x4019e7d8 in *__GI___pthread_unwind (buf=0xbff011d0) at unwind.c:130
#2 0x40193994 in __do_cancel (value=<value optimized out>) at pthreadP.h:265
#3 __pthread_exit (value=<value optimized out>) at pthread_exit.c:30
#4 0x00010784 in main ()
at /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/forced.C:13
This is with LD_LIBRARY_PATH set as follows:
export
LD_LIBRARY_PATH=.:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/gcc:.:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/gcc
I looked all the application and all the libraries used by the application,
and none has a dependence on /lib/libgcc_s.so.4.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2010-01-31 16:32 ` danglin at gcc dot gnu dot org
@ 2010-01-31 16:54 ` carlos at systemhalted dot org
2010-01-31 17:06 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: carlos at systemhalted dot org @ 2010-01-31 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from carlos at systemhalted dot org 2010-01-31 16:54 -------
That is correct, all glibc targets must provide the current version if
libgcc_s.so. The NPTL implementation of pthread_cancel_init will dlopen that
current version of libgcc_s.so and use the unwinder implementation from that
library.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-01-31 16:54 ` carlos at systemhalted dot org
@ 2010-01-31 17:06 ` rguenth at gcc dot gnu dot org
2010-01-31 17:23 ` dave at hiauly1 dot hia dot nrc dot ca
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-31 17:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-01-31 17:05 -------
(In reply to comment #3)
> The failure was introduced by my change to the libgcc_s so version.
I always wondered why we have to do this all the time for hppa... every
other target seems to get along fine without doing this. Considering that
hppa is dead it's even more disturbing that we have this instability.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2010-01-31 17:06 ` rguenth at gcc dot gnu dot org
@ 2010-01-31 17:23 ` dave at hiauly1 dot hia dot nrc dot ca
2010-01-31 17:26 ` dave at hiauly1 dot hia dot nrc dot ca
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-01-31 17:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca 2010-01-31 17:23 -------
Subject: Re: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
> (In reply to comment #3)
> > The failure was introduced by my change to the libgcc_s so version.
>
> I always wondered why we have to do this all the time for hppa... every
> other target seems to get along fine without doing this. Considering that
> hppa is dead it's even more disturbing that we have this instability.
The change in signal frame handling for Ada broke some Java applications.
The Java exception support compensated for the signal frame bug.
I wasn't aware of the implicit dependence of glibc on libgcc_s. ldd
doesn't show the dependency.
I think the mininimal change is to back out the version bump, and to
backport the signal frame changes to active GCC versions so that it's
possible to have a consistent set of libraries.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2010-01-31 17:23 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-01-31 17:26 ` dave at hiauly1 dot hia dot nrc dot ca
2010-01-31 19:38 ` danglin at gcc dot gnu dot org
2010-01-31 19:40 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2010-01-31 17:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2010-01-31 17:26 -------
Subject: Re: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
> That is correct, all glibc targets must provide the current version if
> libgcc_s.so. The NPTL implementation of pthread_cancel_init will dlopen that
> current version of libgcc_s.so and use the unwinder implementation from that
> library.
Why is this hard coded?
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2010-01-31 17:26 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2010-01-31 19:38 ` danglin at gcc dot gnu dot org
2010-01-31 19:40 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-01-31 19:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from danglin at gcc dot gnu dot org 2010-01-31 19:38 -------
Subject: Bug 42850
Author: danglin
Date: Sun Jan 31 19:37:52 2010
New Revision: 156410
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156410
Log:
PR target/42850
Revert:
2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/pa/t-slibgcc-dwarf-ver
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/42850] [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
2010-01-23 14:22 [Bug target/42850] New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2010-01-31 19:38 ` danglin at gcc dot gnu dot org
@ 2010-01-31 19:40 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-01-31 19:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from danglin at gcc dot gnu dot org 2010-01-31 19:40 -------
Fixed.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42850
^ permalink raw reply [flat|nested] 10+ messages in thread