develooper Front page | perl.perl5.porters | Postings from January 2003

Re: perl 5.8.0 source fails

Thread Previous
From:
Enache Adrian
Date:
January 27, 2003 12:46
Subject:
Re: perl 5.8.0 source fails
Message ID:
20030127205222.GA1043@ratsnest.hole
On Sun, Jan 26, 2003 at 03:18:57PM -0900, Tim Judd wrote:
>     osname=freebsd, osvers=4.7-stable, archname=i386-freebsd-thread-multi
>     uname='freebsd midnight-tech.com 4.7-stable freebsd 4.7-stable #1: wed jan 15 21:31:20 akst 2003 tajudd@midnight-tech.com:usrobjusrsrcsysgandalf i386 '
...
>     usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
...
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT

It's maybe because you built a multithreaded perl.
FreeBSD seems to loose signals in programs linked with libc_r.
This test failed for me too:
(#11) ext/POSIX/t/posix.t
--snip
    SKIP: {
        skip("no kill() support on Mac OS", 4) if $Is_MacOS;

        my $sigint_called = 0;

	my $mask   = new POSIX::SigSet &SIGINT;
	my $action = new POSIX::SigAction 'main::SigHUP', $mask, 0;
	sigaction(&SIGHUP, $action);
	$SIG{'INT'} = 'SigINT';
	kill 'HUP', $$;
	sleep 1;

        printf "%s 11 -   masked SIGINT received %s\n",
          $sigint_called ? "ok" : "not ok",
          $^O eq 'darwin' ? "# TODO Darwin seems to loose blocked signals" 
                          : '';
--snip

I posted a message with a small c program which exposes that bug
on hackers a week ago but I got no answer yet :-(
Adi


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About