All of lore.kernel.org
 help / color / mirror / Atom feed
* sigreturn on sparc64
@ 2006-05-24 18:00 H. Peter Anvin
  2006-05-24 21:21 ` David Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: H. Peter Anvin @ 2006-05-24 18:00 UTC (permalink / raw)
  To: sparclinux

I'm having an issue with klibc on sparc64 (i.e. a 64-bit userspace
binary), which doesn't appear on sparc32:

If I leave the signal restorer function as NULL, I get a SIGSEGV on
attempting to return from the signal handler.

If I generate a system call stub for rt_sigreturn, and pass that in as
the restorer, then the process will loop forever on signal handler
return.

A lot of architectures have ugly corners in this area (i386, for
example, needs to drop one word from the stack before calling the
sigreturn system call.)  However, I simply don't understand the SPARC
architecture well enough to understand if/what I'm supposed to do
here, or if this is simply a bug.

	-hpa


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-24 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 18:00 sigreturn on sparc64 H. Peter Anvin
2006-05-24 21:21 ` David Miller
2006-05-24 21:23 ` H. Peter Anvin
2006-05-24 21:34 ` David Miller
2006-05-24 22:02 ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.