linux-mips
[Top] [All Lists]

Re: tcsh

To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: Re: tcsh
From: ralf@uni-koblenz.de
Date: Fri, 3 Jul 1998 16:58:55 +0200
Cc: linux@cthulhu.engr.sgi.com
In-reply-to: <19980703005927.48187@alpha.franken.de>; from Thomas Bogendoerfer on Fri, Jul 03, 1998 at 12:59:27AM +0200
References: <19980622110139.F418@uni-koblenz.de> <19980703005927.48187@alpha.franken.de>
Sender: owner-linux@cthulhu.engr.sgi.com
On Fri, Jul 03, 1998 at 12:59:27AM +0200, Thomas Bogendoerfer wrote:

> On Mon, Jun 22, 1998 at 11:01:39AM +0200, ralf@uni-koblenz.de wrote:
> > maybe anybody feels like debugging the tcsh rpm.  The lack of having
> > a properly working csh keep several other packages from building
> > without trickery.
> 
> ok, I'm pretty close. After debugging tcsh for more than three hours,
> it looks like this is a kernel bug. I've traced it down to the following
> code in sh.proc.c:
> 
> xprintf ("pp before sigpause %x\n",pp);
>         /* (void) sigpause(sigblock((sigmask_t) 0) &~ sigmask(SIGCHLD)); */
>         (void) sigpause(omask & ~sigmask(SIGCHLD));
> xprintf ("pp after sigpause %x\n",pp);
> 
> pp gets clobbered by sigpause. I'll have a fast look at the kernel, maybe
> it's easy to spot the bug.

Same result here, I found that even minimal modifications make the
sympthoms go away.

Sigpause() is a libc routine in libc/sysdeps/posix/sigpause.c; it's either
using sigprocmask(2) or sigsuspend(2).

  Ralf

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