On Fri, Jul 03, 1998 at 12:59:27AM +0200, Thomas Bogendoerfer wrote:
> On Mon, Jun 22, 1998 at 11:01:39AM +0200, email@example.com 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).