public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: John Marino <binutils@marino.st>
To: binutils@sourceware.org
Subject: Re: gold linker 2.22 regressed for DragonFly [revised testsuite results]
Date: Tue, 03 Jan 2012 09:20:00 -0000	[thread overview]
Message-ID: <4F02C833.2060309@marino.st> (raw)
In-Reply-To: <4F0235FE.5050702@marino.st>

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

On 1/2/2012 11:55 PM, John Marino wrote:
> 
> It appears that many of these 42 failures are false positives.  
> There seems to be something wrong with the testsuite makefile.  
> If I type something like ">gmake gc_orphan_section_test.stdout" 
> then the stdout file is created, and "./gc_orphan_section_test.sh" 
> test passes just fine.
> 
> For whatever reason, these makefile targets aren't getting run.
> 
> I'm also getting several similar error messages like, "
> Makefile:2639: warning: overriding recipe for target 'ifuncmain1picstatic'
> Makefile:2636: warning: ignoring old recipe for target 'ifuncmain1picstatic'"
> 
> John

I manually generated all the missing support files and re-ran the testsuite.  
I'm now getting 7 failures out of 137 (log attached).

1. incremental_test:      suspect this is not really an error (failed v2.21 too)
2. ver_matching_test.sh:  __bss_start not local, rtld issue? real issue? (failed on v2.21 too)
3. exception_static_test: likely real problem.  gdb log attached
4. intpri2:               likely real problem.  gdb log attached
5. relro_test:            no relro support in rtld, ignore
6. relro_now_test:        no relro support in rtld, ignore
7. relro_strip_test:      no relro support in rtld, ignore

I'm most worried about tests 3 and 4.
The exception didn't get caught back in exception_test_1.cc.  System compiler is gcc 4.4.7 
(2011-10-25 snapshot) using dl_iterate_phdr for exception handling.
Test 4 may have failed due to the changed ctors setting in option.h ??

Any comment/guidance about the testsuite results is appreciated.
It looks like gold is fairly healthy on DragonFly after altering option.h though.

John

[-- Attachment #2: test-suite.log --]
[-- Type: text/plain, Size: 3155 bytes --]

========================================
   gold 0.1: testsuite/test-suite.log   
========================================

7 of 137 tests failed.  

.. contents:: :depth: 2


FAIL: incremental_test.sh (exit: 1)
===================================

Actual output differs from expected:
diff actual recorded
0a1
> --eh-frame-hdr -dynamic-linker /usr/libexec/ld-elf.so.2 -L/usr/lib/gcc44 -rpath /usr/lib/gcc44 -rpath-link /usr/lib/gcc44 -rpath /usr/lib -rpath-link /usr/lib -o incremental_test /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc44/crtbegin.o incremental_test_1.o incremental_test_2.o -debug -lgcc -lc -lgcc /usr/lib/gcc44/crtend.o /usr/lib/crtn.o

FAIL: ver_matching_test.sh (exit: 1)
====================================

Found unexpected symbol in ver_matching_test.stdout:
   __bss_start

Actual output below:

ver_matching_def.so:     file format elf32-i386

DYNAMIC SYMBOL TABLE:
00001cd1 g    DO .bss	00000001  V2          otherns::stuff
0000078f g    DF .text	00000005  V2          blaza
00000794 g    DF .text	00000005  V2          blaza1
00000754 g    DF .text	00000005  V1          foo
0000075e g    DF .text	00000005  V1          bar()
000007a3 g    DF .text	00000005  V2          blaz
00000768 g    DF .text	00000005  V1          baz(int*)
00000000  w   DF *UND*	00000000              __cxa_finalize
000007a8 g    DF .text	00000005  V2          blazb
00000000  w   D  *UND*	00000000              _Jv_RegisterClasses
00000763 g    DF .text	00000005  Base        bar1()
0000076d g    DF .text	0000000e  Base        baz(int*, char)
0000077b g    DF .text	00000005  Base        baz(char*, int)
00000780 g    DF .text	00000005  V1          bar2
00000785 g    DF .text	00000005  V1          myns::blah()
0000078a g    DF .text	00000005  V1          myns::bip()
0000080c  w   DF .text	00000005  V1          myns::Stuff::Stuff()
00000812  w   DF .text	00000005  Base        Biz::Biz()
00001cd0 g    DO .bss	00000001  Base        otherns::biz
00000799 g    DF .text	00000005  Base        original_blaza2
0000079e g    DF .text	00000005  Base        bla
00001cd4 g    DO .bss	00000004  V1          globaoeufxstuff
00001cd8 g    DO .bss	00000004  Base        globaoeufostuff
00001ca8 g    DO .data	00000004  V1          sizeof_headers
00000000      DF *UND*	00000000              __gxx_personality_v0
00000799 g    DF .text	00000005  V2          blaza2
00001cc8 g    D  *ABS*	00000000  Base        _edata
00001cdc g    D  *ABS*	00000000  Base        _end
00001cc8 g    D  *ABS*	00000000  Base        __bss_start
00000000 g    DO *ABS*	00000000  V1          V1
00000000 g    DO *ABS*	00000000  V2          V2



FAIL: exception_static_test (exit: 134)
=======================================


FAIL: initpri2 (exit: 134)
==========================


FAIL: relro_test (exit: 134)
============================

Assertion failed: (0), function f2, file relro_test.cc, line 132.

FAIL: relro_now_test (exit: 134)
================================

Assertion failed: (0), function f2, file relro_test.cc, line 132.

FAIL: relro_strip_test (exit: 134)
==================================

Assertion failed: (0), function f2, file relro_test.cc, line 132.

[-- Attachment #3: exception_test_failure.log --]
[-- Type: text/plain, Size: 449 bytes --]

#0  0x0806267f in kill ()
#1  0x0805dcb2 in raise ()
#2  0x0805d655 in abort ()
#3  0x0804f96e in uw_init_context_1 ()
#4  0x0804fc37 in _Unwind_RaiseException ()
#5  0x080483ca in __cxa_throw ()
#6  0x08048260 in f1 () at exception_test_2.cc:30
#7  0x0804820b in t1 () at exception_test_1.cc:43
#8  0x080481ce in main () at exception_test_main.cc:33
A debugging session is active.

	Inferior 1 [process 6436] will be killed.

Quit anyway? (y or n) 

[-- Attachment #4: init2pri_failure.log --]
[-- Type: text/plain, Size: 425 bytes --]

#0  0x280f38ff in kill () from /usr/lib/libc.so.7
#1  0x2816f95e in raise () from /usr/lib/libc.so.7
#2  0x2816f1ce in abort () from /usr/lib/libc.so.7
#3  0x080485c3 in ctor1007 () at initpri2.c:55
#4  0x08048628 in __do_global_ctors_aux ()
#5  0x08048312 in _init ()
#6  0x08048411 in _start1 ()
#7  0x08048398 in _start ()
A debugging session is active.

	Inferior 1 [process 10133] will be killed.

Quit anyway? (y or n) 

  reply	other threads:[~2012-01-03  9:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 22:16 gold linker 2.22 regressed for DragonFly John Marino
2011-12-02  4:59 ` Ian Lance Taylor
2011-12-02  8:44   ` John Marino
2011-12-02 14:28     ` Ian Lance Taylor
2011-12-31 16:40       ` John Marino
2012-01-02  2:05         ` Ian Lance Taylor
2012-01-02  9:36           ` John Marino
2012-01-02 18:38             ` Ian Lance Taylor
2012-01-02 19:27               ` John Marino
2012-01-02 19:48                 ` John Marino
2012-01-02 22:56                   ` John Marino
2012-01-03  9:20                     ` John Marino [this message]
2012-01-05 18:32                       ` gold linker 2.22 regressed for DragonFly [revised testsuite results] Ian Lance Taylor
2012-01-06 10:24                         ` John Marino
2012-01-06 14:43                           ` Ian Lance Taylor
2012-01-06 20:04                             ` John Marino
2012-01-22 18:59                               ` John Marino
2012-01-22 19:43                                 ` Ian Lance Taylor
2012-01-22 20:46                                   ` John Marino
2012-01-23 16:49                                     ` Ian Lance Taylor
2012-01-03 19:43                 ` gold linker 2.22 regressed for DragonFly Ian Lance Taylor
2012-01-05 17:30                   ` John Marino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F02C833.2060309@marino.st \
    --to=binutils@marino.st \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).