NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/44902 CVS commit: src/lib/libc/arch/sparc64/gen
The following reply was made to PR port-sparc64/44902; it has been noted by
GNATS.
From: Matthias Scheler <tron%zhadum.org.uk@localhost>
To: port-sparc64-maintainer%netbsd.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: PR/44902 CVS commit: src/lib/libc/arch/sparc64/gen
Date: Fri, 29 Apr 2011 21:46:05 +0100
On Fri, Apr 29, 2011 at 09:17:24PM +0100, Matthias Scheler wrote:
> On Wed, Apr 27, 2011 at 09:10:15PM +0000, Martin Husemann wrote:
> > Module Name: src
> > Committed By: martin
> > Date: Wed Apr 27 21:08:48 UTC 2011
> >
> > Modified Files:
> > src/lib/libc/arch/sparc64/gen: longjmp.c setjmp.S sigsetjmp.S
> >
> > Log Message:
> > Fix offsets used in the assembly code to save global registers into a
> > jmp_buf, add a compile time assert to catch this kind of divergence
> > in the C code.
> > Move the fixed "%npc = %pc + 4" computation to longjmp, this frees
> > the sigcontext sc_npc value. Use this space to save the savemask
> > for siglongjmp (we have run out of space behind the globals).
> > Fixes the tests/lib/libc/setjmp/t_threadjmp tests, and also hopefully
> > fixes PR port-sparc64/44902.
>
> I can confirm that I can now build the "perl5" package with threading
> enabled without problems on my NetBSD/sparc64 5.99.51 system.
>
> Please close this PR, and thanks a lot for the fix.
It seems unfortunately that the above change causes a new problem.
Since upgrading my system "bash" stopped working. It crashes while
running "configure" scripts (e.g. while building the package
"pkgsrc/databases/mysql51-client"). Here is a stack trace:
tron@sheridan:/export/scratch/tron/obj/shells/bash/work.sheridan/bash-4.2>gdb
bash bash.core
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc64--netbsd"...
Reading symbols from /usr/lib/libterminfo.so.1...done.
Loaded symbols for /usr/lib/libterminfo.so.1
Reading symbols from /usr/lib/libintl.so.1...done.
Loaded symbols for /usr/lib/libintl.so.1
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `bash'.
Program terminated with signal 10, Bus error.
#0 0x00000000409bf18c in _longjmp () from /usr/lib/libc.so.12
(gdb) where
#0 0x00000000409bf18c in _longjmp () from /usr/lib/libc.so.12
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index