Subject: | Tests run by perl-5.16.0 segfaults |
When running tests with perl 5.16.0. The last test segfaults.
I minimized the code to this:
#!/usr/bin/perl
use strict;
use warnings;
use Unix::Statgrab;
my $p = get_process_stats;
if ($p) {
my @a = sort sort_procs_by_name $p->all_procs;
my @b = sort sort_procs_by_pid $p->all_procs;
my @c = sort sort_procs_by_uid $p->all_procs;
}
And it returns perl error:
Attempt to free unreferenced scalar: SV 0x259c538, Perl interpreter:
0x257c010 at test line 7.
If I change the assignments to assign to the same array, it segfaults.