linux-mips
[Top] [All Lists]

Re: pthread_sighander() of glibc-2.2 breaks stack

To: Hiroyuki Machida <machida@sm.sony.co.jp>
Subject: Re: pthread_sighander() of glibc-2.2 breaks stack
From: Andreas Jaeger <aj@suse.de>
Date: 15 Jan 2001 08:03:11 +0100
Cc: linux-mips@oss.sgi.com
In-reply-to: <20010115152011L.machida@sm.sony.co.jp>
References: <20010115152011L.machida@sm.sony.co.jp>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands)
>>>>> Hiroyuki Machida writes:

 > Hello Andreas,

 > I had a experience that pthread_sighander() of current glibc-2.2 
 > breaks stack. I tracked down the problem, and finally found the
 > mismatch  between kenrel and glibc-2.2. 

 > Current kernel pass following args to the signal handler for the 
 > case of not SA_SIGINFO specified.
 >      a0      signal number
 >      a1      0 (cause code?)
 >      a2      pointer to sigcontext struct

 > But, the pthread_sighander() of glibc-2.2 expects;
 >      1st arg.        signal number
 >      2nd arg.        sigcontext struct itself (not pointer)

 > Patches attached below. Please apply.

Thanks, I've committed them,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

<Prev in Thread] Current Thread [Next in Thread>