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: Sun, 20 Apr 2025 16:21:45 +0200

 Rebuilding with symbols I get lots of crashes like this:
 
 Program terminated with signal SIGBUS, Bus error.
 #0  0x00042330 in perl_run (my_perl=0x293a2000) at perl.c:2773
 2773        JMPENV_PUSH(ret);
 (gdb) bt
 #0  0x00042330 in perl_run (my_perl=0x293a2000) at perl.c:2773
 #1  0x001d6884 in main (argc=<optimized out>, argv=<optimized out>, 
     env=<optimized out>) at miniperlmain.c:133
 (gdb) x/16i $pc-16
    0x42320 <perl_run+1260>:     mov  2, %g1
    0x42324 <perl_run+1264>:     st  %g1, [ %fp + -16 ]
    0x42328 <perl_run+1268>:     add  %fp, -80, %g1
    0x4232c <perl_run+1272>:     ld  [ %fp + -84 ], %g2
 => 0x42330 <perl_run+1276>:     st  %g1, [ %g2 + 0x208 ]
    0x42334 <perl_run+1280>:     clrb  [ %fp + -12 ]
    0x42338 <perl_run+1284>:     lduh  [ %g2 + 0x66 ], %g1
    0x4233c <perl_run+1288>:     b  0x42138 <perl_run+772>
    0x42340 <perl_run+1292>:     sth  %g1, [ %fp + -10 ]
    0x42344 <perl_run+1296>:     call  0x2f2384 <__stack_chk_fail%got.plt@localhost>
    0x42348 <perl_run+1300>:     nop 
    0x4234c <perl_run+1304>:     nop 
    0x42350 <Perl_my_failure_exit>:      save  %sp, -96, %sp
    0x42354 <Perl_my_failure_exit+4>:    sethi  %hi(0x2ad000), %l7
    0x42358 <Perl_my_failure_exit+8>:    
     call  0x1d6a90 <__sparc_get_pc_thunk.l7>
 (gdb) p/x $g2
 $1 = 0x1
 
 
 ... which looks like a Perl problem - will dig deeper.
 
 Martin
 


Home | Main Index | Thread Index | Old Index