develooper Front page | perl.perl5.porters | Postings from December 2008

Re: Possible bug: Perl 5.10.0 does not set $? & 128 when dumping core [PATCH]

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
December 21, 2008 01:05
Subject:
Re: Possible bug: Perl 5.10.0 does not set $? & 128 when dumping core [PATCH]
Message ID:
b77c1dce0812210105t4fa94716o36bff6fedae4562e@mail.gmail.com
2008/12/17 Niko Tyni <ntyni@debian.org>:
> On Tue, Dec 16, 2008 at 02:34:03PM +0200, Niko Tyni wrote:
>
>> I see <sys/wait.h> defines WCOREDUMP only with __USE_BSD here
>> (Debian testing and unstable, glibc 2.7).
>
> Further digging shows the problem is that <sys/wait.h> doesn't get
> included at all. We do build with -D_GNU_SOURCE, which implies __USE_BSD.
>
> Proposed patch attached, this fixes it for me on both 5.10.0 and blead.
>
> % ./miniperl -le 'system($^X, "-e", q/kill 6,$$; sleep 1/); print "version=$] \$?=$? native=${^CHILD_ERROR_NATIVE}"'
> version=5.011000 $?=134 native=134
>
> (This is now also http://bugs.debian.org/509041 [Cc'd])

Thanks, applied to bleadperl (change de8ca8af19546d4922bab4537a72c9b2b3354009)

Thread Previous | Thread Next


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