On Sun, Nov 13, 2022 at 07:37:57PM +0100, Alexander Bluhm wrote: > On Sun, Nov 13, 2022 at 06:28:41PM +0000, Klemens Nanni wrote: > > On Sun, Nov 13, 2022 at 07:22:13PM +0100, Alexander Bluhm wrote: > > > Hi, > > > > > > ok to import p5-Devel-MAT-Dumper 0.46 > > > > > > Comment: > > > write a heap dump file for later analysis > > > > > > Description: > > > This module provides the memory-dumping function that creates a heap > > > dump file which can later be read by Devel::MAT::Dumpfile. It provides > > > a single function which is not exported, which writes a file to the > > > given path. > > > > > > bluhm > > > > Is this expected (amd64 here)? > > > > $ make test > > ===> Regression tests for p5-Devel-MAT-Dumper-0.46 > > t/00use.t ..... ok > > t/01header.t .. > > No subtests run > > t/99pod.t ..... ok > > > > Test Summary Report > > ------------------- > > t/01header.t (Wstat: 139 Tests: 0 Failed: 0) > > Non-zero wait status: 139 > > Parse errors: No plan found in TAP output > > Files=3, Tests=4, 1 wallclock secs ( 0.03 usr 0.14 sys + 0.52 cusr > > 0.32 csys = 1.01 CPU) > > Result: FAIL > > Failed 1/3 test programs. 0/4 subtests failed. > > For me it works. > > ===> Regression tests for p5-Devel-MAT-Dumper-0.46 > t/00use.t ..... ok > t/01header.t .. ok > t/99pod.t ..... ok > All tests successful. > Files=3, Tests=11, 1 wallclock secs ( 0.03 usr 0.06 sys + 0.43 cusr 0.13 > csys = 0.65 CPU) > Result: PASS > > I run with PORTS_PRIVSEP = yes. To debug, I run the test manually, > then I see this error. Maybe you hit that. I will try to work > around this with a patch.
I always use PORTS_PRIVSEP. > .../Devel-MAT-Dumper-0.46$ perl -I blib/lib -I blib/arch t/01header.t > Cannot open test.pmat for writing - Permission denied at t/01header.t line 13. $ cd `make show=WRKSRC` $ perl -I blib/lib -I blib/arch t/01header.t Cannot open test.pmat for writing - Permission denied at t/01header.t line 13. $ doas -u _pbuild perl -I blib/lib -I blib/arch t/01header.t Segmentation fault (core dumped) $ doas -u _pbuild egdb -q -batch -ex bt perl perl.core [New process 244092] Core was generated by `perl'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000009908246cc12 in write_sv () from blib/arch/auto/Devel/MAT/Dumper/Dumper.so #0 0x000009908246cc12 in write_sv () from blib/arch/auto/Devel/MAT/Dumper/Dumper.so #1 0x000009908246b2bc in dumpfh () from blib/arch/auto/Devel/MAT/Dumper/Dumper.so #2 0x000009908246a094 in XS_Devel__MAT__Dumper_dump () from blib/arch/auto/Devel/MAT/Dumper/Dumper.so #3 0x00000990d6fa3f9b in Perl_pp_entersub () from /usr/lib/libperl.so.22.0 #4 0x00000990d6f986a9 in Perl_runops_standard () from /usr/lib/libperl.so.22.0 #5 0x00000990d6eff85e in ?? () from /usr/lib/libperl.so.22.0 #6 0x00000990d6eff7a4 in perl_run () from /usr/lib/libperl.so.22.0 #7 0x0000098de66600a7 in main ()