Skip Menu |

This queue is for tickets about the Unix-Processors CPAN distribution.

Report information
The Basics
Id: 122943
Status: resolved
Priority: 0/
Queue: Unix-Processors

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

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



Subject: SIGABRT (freebsd11)
On some freebsd 11 systems the test suite fails: $ perl5.26.0 -Mblib t/20_test.t 1..9 # Running under perl version 5.026000 for freebsd # Current time local: Sat Sep 2 09:54:48 2017 # Current time GMT: Sat Sep 2 09:54:48 2017 # Using Test.pm version 1.30 ok 1 ok 2 Cpu threads online: 1 ok 3 Physical cpu cores: 1 ok 4 Physical cpu sockets: 1 ok 5 Cpu frequency: 0 ok 6 [1] 13762 abort perl5.26.0 -Mblib t/20_test.t A backtrace shows the following: #0 0x000000080137471a in kill () from /lib/libc.so.7 #1 0x00000008013746d0 in __fail (msg=<value optimized out>) at /home/projects/freebsd/lib/libc/secure/stack_protector.c:98 #2 0x0000000801374640 in __stack_chk_fail () at /home/projects/freebsd/lib/libc/secure/stack_protector.c:105 #3 0x0000000802609ff9 in XS_Unix__Processors__Info_type () from blib/arch/auto/Unix/Processors/Processors.so #4 0x00000000004cb8b4 in Perl_pp_entersub () #5 0x00000000004c3063 in Perl_runops_standard () #6 0x000000000044402b in perl_run () #7 0x00000000004231ad in main () Here's the link to CPAN Testers Matrix: http://matrix.cpantesters.org/?dist=Unix-Processors%202.045;os=freebsd;reports=1
Sorry but I do not use freebsd, someone else contributed that part of the sources. If you or someone would like to contribute a fixing patch, I'll gladly push it into a new release.
On 2017-09-03 16:22:20, WSNYDER wrote: Show quoted text
> Sorry but I do not use freebsd, someone else contributed that part of > the sources. If you or someone would like to contribute a fixing > patch, I'll gladly push it into a new release.
A patch is available here: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Unix-Processors-2.045-RT122943.patch It seems that Unix-Processors did not work right also on older freebsd versions --- on a freebsd9 system Unix::Processors wrongly reported 1 cpu (but there were 4). This is also corrected by the patch.
Thanks for the patch, makes perfect sense. Fixed and pushed to just released version 2.046.