Mailing List Archive

Perl5 misconfigures under Linux
On Wed, 25 Oct 1995, Larry Wall wrote:

> Date: Wed, 25 Oct 95 09:07:31 -0700
> From: Larry Wall <lwall@scalpel.netlabs.com>
> To: "Nelson G. Arzola" <arzola@cig.mot.com>
> Subject: Re: New Perl5 test
>
> : I am using some of the more recent versions of Linux (1.3.31 and
> : 1.3.34). I just the plain vanilla Slackware 3.0 distribution. Perl
> : 5.001m does not seem to handle the SIGALARM signal correctly. The same
> : Perl script works properly for Perl5 on a Sparc 20, but fails on my PC.
>
> Check to see if config.sh has all the signals (esp. SIGALRM) in all the
> right places. Andy Dougherty just posted a patch to perl5-porters that
> redoes how signals are configured in a more robust fashion.
>
> Larry

Being very unfamiliar with Perl5 and its internals, the grand finale of
my investigation was that SIGBUS was omitted from the signal list. I
added 'BUS' between 'IOT' and 'FPE', recompiled all my files, and made
the (startling) discovery that all was well again. 'make test' reported
that all tests passed (io/pipe.t did not work before this fix).

I am not sure where to start so that this fix can be incorporated into
the official Perl sources for 5.002. Any pointers would be appreciated


/usr/src/perl5.001m [6]> grep ^sig config.sh
sig_name='ZERO HUP INT QUIT ILL TRAP IOT FPE KILL USR1 SEGV USR2 PIPE ALRM TERM CHLD CONT STOP TSTP TTIN TTOU WINCH'
signal_t='void'
/usr/src/perl5.001m [7]>


~ [2]> kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGIOT 7) SIGBUS 8) SIGFPE
9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
13) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD
18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
30) SIGPWR
~ [3]>


---------------------------------------------------------------------------
Nelson Arzola . . Internet: arzola@cig.mot.com
ITS System Administrator ... ... Voice: 708-632-6458
Motorola, Inc. ..... ..... Fax: 708-632-3733
1501 W Shure Dr IL27/2231 .. ... .. 'Programming is the art
Arlington Heights, IL 60004 . . . form that fights back'
---------------------------------------------------------------------------
UNIX is a nice operating system, but I prefer Emacs.