[Bug 227104] sysutils/p5-BSD-Process list method causes segmentation fault
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 30 09:02:45 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227104
Bug ID: 227104
Summary: sysutils/p5-BSD-Process list method causes
segmentation fault
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: swills at FreeBSD.org
Reporter: freebsdbugs at myarcher.net
Assignee: swills at FreeBSD.org
Flags: maintainer-feedback?(swills at FreeBSD.org)
The list method of BMD::Process causes a segmentation fault.
$ perl -MBSD::Process -e 'print $BSD::Process::VERSION';
0.07
$ freebsd-version
11.1-RELEASE-p8
$ perl -e 'use BSD::Process; my @pid = BSD::Process::list;'
Segmentation fault (core dumped)
The perl version is v5.24.3
This also happens if you use the following command which is taken from the CPAN
page (http://search.cpan.org/~dland/BSD-Process-0.07/Process.pm)
$ perl -e 'use BSD::Process; my @pid = BSD::Process::list; for my $p (@pid) {my
$proc = BSD::Process::info($p); print "$p $proc->{ppid}\n"; }'
Segmentation fault (core dumped)
Extra information:
This error appears to occur because the XS code does not handle multiple
returned values properly and corrupts the stack, specifically the mPUSHi macro
at line 504 of Process.xs does not appear to extend the stack. If the loop
there is preceded by an EXTEND(SP,nr) the test works. (Diagnosis by others)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list