NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc/59333: perl install fails with sparc userland on sparc64 kernel



The following reply was made to PR port-sparc/59333; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sparc/59333: perl install fails with sparc userland on
 sparc64 kernel
Date: Fri, 2 May 2025 21:35:26 +0200

 I added some instrumentation and all failures I see have a bogus return
 address (%pc) recorded in jmp_buf and come via a call like this:
 
 (gdb) x/16i 0x000185f0
    0x185f0 <evalcommand+5036>:  sethi  %hi(0x50000), %g1
    0x185f4 <evalcommand+5040>:  call  0x4f8a0 <__siglongjmp14%got.plt@localhost>
    0x185f8 <evalcommand+5044>:  
     st  %o0, [ %g1 + 0x280 ]    ! 0x50280 <handler>
 
 and the jmp_buf looks like:
 
 (gdb) x/16x 0x2860b580
 0x2860b580:     0x00000000      0x86823000      0x284fc000      0x0000e000
 0x2860b590:     0x00000000      0x00000000      0x00000000      0x00000015
 0x2860b5a0:     0x00000000      0x00000000      0x00000000      0x00000000
 0x2860b5b0:     0x2860b580      0x2860b580      0x00000000      0x00000000
 
 
 where 0x86823000 is the bogus return address.
 
 I would have hoped "savemask" to be 1 and the problem could have been
 the sigprocmask implementation for compat_netbsd32, but that doesn't seem
 to be the case - digging deeper.
 
 Martin
 


Home | Main Index | Thread Index | Old Index