public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/42850]  New: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution test
@ 2010-01-23 14:22 danglin at gcc dot gnu dot org
  2010-01-23 15:26 ` [Bug target/42850] " rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-01-23 14:22 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../g++
-B/home
/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../
/home/dave/gnu/gcc/gcc/gcc/testsui
te/g++.dg/abi/forced.C  -nostdinc++
-I/home/dave/gnu/gcc/objdir/hppa-linux/libst
dc++-v3/include/hppa-linux
-I/home/dave/gnu/gcc/objdir/hppa-linux/libstdc++-v3/i
nclude -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/home/dave/gnu/gcc/gcc/
libstdc++-v3/include/backward
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/ut
il -fmessage-length=0  -pthread   
-L/home/dave/gnu/gcc/objdir/hppa-linux/./libs
tdc++-v3/src/.libs 
-B/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.l
ibs  -L/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs
-L/home/dav
e/gnu/gcc/objdir/hppa-linux/./libiberty  -lm   -o ./forced.exe    (timeout =
300
)
PASS: g++.dg/abi/forced.C (test for excess errors)
Setting LD_LIBRARY_PATH to
.:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3
/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/./libstdc++-v3/src/.libs:/home/d
ave/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:/home/dave/gnu/gcc/objdir/hppa-linux/libstdc++-v3/.libs:/home
/dave/gnu/gcc/objdir/hppa-linux/libmudflap/.libs:/home/dave/gnu/gcc/objdir/hppa-
linux/libssp/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/libgomp/.libs:/home/dave
/gnu/gcc/objdir/./gcc:/home/dave/gnu/gcc/objdir/./prev-gcc
FAIL: g++.dg/abi/forced.C execution test

Started to fail between revision 155562 and 155957.


-- 
           Summary: [4.5 Regression] FAIL: g++.dg/abi/forced.C execution
                    test
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu


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 ` 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

end of thread, other threads:[~2010-01-31 19:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
2010-01-31 19:38 ` danglin at gcc dot gnu dot org
2010-01-31 19:40 ` danglin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).