Date: Fri, 30 Mar 2018 09:02:43 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 227104] sysutils/p5-BSD-Process list method causes segmentation fault Message-ID: <bug-227104-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227104 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@FreeBSD.org Reporter: freebsdbugs@myarcher.net Assignee: swills@FreeBSD.org Flags: maintainer-feedback?(swills@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 =3D 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 =3D BSD::Process::list; for my $p (@pi= d) {my $proc =3D 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 ma= cro 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) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227104-13>