upcoming release: what needs to be done

Mike Frysinger vapier at gentoo.org
Thu Mar 15 04:22:15 UTC 2012


On Wednesday 14 March 2012 22:19:08 Dmitry V. Levin wrote:
> On Wed, Mar 14, 2012 at 08:39:35PM -0400, Mike Frysinger wrote:
> > alpha looks broken with signals ... these funcs pass the target's syscall
> > arg pointer to the C library's sigprocmask() which obviously won't be
> > valid: signal.c: In function ‘sys_sigprocmask’:
> > signal.c:1185:3: warning: passing argument 1 of ‘printsigmask’ makes
> > pointer from integer without a cast signal.c:352:1: note: expected
> > ‘struct sigset_t *’ but argument is of type ‘long int’ signal.c:1188:3:
> > warning: passing argument 2 of ‘sprintsigmask’ makes pointer from
> > integer without a cast signal.c:283:1: note: expected ‘struct sigset_t
> > *’ but argument is of type ‘long int’
> 
> The code is in "#ifdef ALPHA" section.  Yes, it looks odd, but those lines
> remain essentially unchanged since the previous century.  Is there anybody
> who can look into this?

ah, probably hasn't been a problem because the alpha syscall table hasn't 
wired up this print handler in a long time :)

commit cc4b8f426a4ae9350cfe41b42b488b5d11836bd8
Author: Wichert Akkerman <wichert at deephackmode.org>
Date:   Wed Jun 9 12:50:10 1999 +0000

    Update syscall list for Linux/alpha

--- a/linux/alpha/syscallent.h
+++ b/linux/alpha/syscallent.h

-   { 3,    TS, sys_sigprocmask,    "sigprocmask"   }, /* 48 */
+   { 3,    TS, printargs,      "osf_sigprocmask"}, /* 48 */

and indeed, once i write a small test app that calls this syscall, strace 
segfaults when trying to trace it.  i'll poke around a little bit.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120315/f9f2e3f6/attachment.bin>


More information about the Strace-devel mailing list