On Mon, Dec 19, 2011 at 11:21 PM, Richard Henderson <r...@redhat.com> wrote: > On 12/19/2011 02:14 PM, Uros Bizjak wrote: >> (gdb) bt >> #0 _Unwind_RaiseException (exc=0xf840453300) at >> ../../../gcc-svn/trunk/libgcc/unwind.inc:135 >> #1 0x0000020000559a8c in __go_unwind_stack () at >> ../../../gcc-svn/trunk/libgo/runtime/go-unwind.c:175 >> #2 0x0000020000556d44 in __go_panic (arg=...) at >> ../../../gcc-svn/trunk/libgo/runtime/go-panic.c:85 >> #3 0x0000020000564be8 in runtime_panicstring (s=0x200007fb737 >> "invalid memory address or nil pointer dereference") >> at ../../../gcc-svn/trunk/libgo/runtime/runtime.c:83 >> #4 0x000002000055875c in sighandler (sig=<optimized out>) at >> ../../../gcc-svn/trunk/libgo/runtime/go-signal.c:183 >> #5 0x0000020002c82620 in ?? () from /lib/libc.so.6.1 > > Note that this is in libc, not a DSO (which the linux alpha kernel never > creates).
Indeed... > And how old is your glibc that it doesn't have "S" set in the frame? It is 2.13: GNU C Library stable release version 2.13, by Roland McGrath et al. Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.4.5. Compiled on a Linux 2.6.39 system on 2011-10-04. Available extensions: C stubs add-on version 2.1.2 crypt add-on version 2.1 by Michael Glad and others Gentoo patchset 8 GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al Support for some architectures added on, not maintained in glibc core. BIND-8.2.3-T5B software FPU emulation by Richard Henderson, Jakub Jelinek and others libc ABIs: UNIQUE For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. > Otherwise I suppose the patch is ok with an update to the comment. I guess that something like this would fit: /* Fix up for signal handlers that don't have S flag set. */ Thanks, Uros.