Skip Menu |

This queue is for tickets about the BSD-Process CPAN distribution.

Report information
The Basics
Id: 88976
Status: open
Priority: 0/
Queue: BSD-Process

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.07
Fixed in: (no value)



Subject: Segfault with perl 5.18.1
On a FreeBSD 9.0 system the following oneliner is causing a segmentation fault (this line also appears in the t/01-func.t test): $ /usr/perl5.18.1/bin/perl -Mblib -e 'use BSD::Process; my @all = BSD::Process::list()' A gdb backtrace says: #0 0x0000000800900fc2 in Perl_pp_aassign () from /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so #1 0x00000008008fed33 in Perl_runops_standard () from /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so #2 0x000000080089968c in perl_run () from /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so #3 0x0000000000400d93 in main () A perl trace says that the following line is the last executed one: Show quoted text
>> /home/e/eserte/work2/BSD-Process/blib/lib/BSD/Process.pm:257: return ($request, $param);
Regards, Slaven
On 2013-09-26 06:14:46, SREZIC wrote: Show quoted text
> On a FreeBSD 9.0 system the following oneliner is causing a > segmentation fault (this line also appears in the t/01-func.t test): > > $ /usr/perl5.18.1/bin/perl -Mblib -e 'use BSD::Process; my @all = > BSD::Process::list()' > > A gdb backtrace says: > > #0 0x0000000800900fc2 in Perl_pp_aassign () from > /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so > #1 0x00000008008fed33 in Perl_runops_standard () from > /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so > #2 0x000000080089968c in perl_run () from > /usr/perl5.18.1/lib/5.18.1/amd64-freebsd/CORE/libperl.so > #3 0x0000000000400d93 in main () > > A perl trace says that the following line is the last executed one: >
> >> /home/e/eserte/work2/BSD-Process/blib/lib/BSD/Process.pm:257: > >> return ($request, $param);
>
On the same system, it segfaults also with perl 5.18.0, but not with older perls (tried 5.16.2, 5.14.2, and 5.12.4).
Can confirm on FreeBSD 10.2-amd64 with perl 5.18.4 #0 0x00000008014e4a8d in free () from /lib/libc.so.7 #1 0x000000080240baa3 in _kvm_minidump_freevtop () from /lib/libkvm.so.6 #2 0x000000080240dcb8 in kvm_close () from /lib/libkvm.so.6 #3 0x00000008022062de in XS_BSD__Process__list (my_perl=<value optimized out>, cv=<value optimized out>) at Process.xs:452 #4 0x0000000800b1529e in Perl_pp_entersub () from /usr/local/lib/perl5/5.18/mach/CORE/libperl.so.5.18 #5 0x0000000800b0e236 in Perl_runops_standard () from /usr/local/lib/perl5/5.18/mach/CORE/libperl.so.5.18 #6 0x0000000800a954a1 in perl_run () from /usr/local/lib/perl5/5.18/mach/CORE/libperl.so.5.18 #7 0x0000000000400eab in main ()