Subject: | Segfault on Perl 5.20.1 |
Doesn't happen every time but happens after long run of test suite.
Code is:
my $proc = Proc::ProcessTable->new();
foreach my $process (@{$proc->table()}) {
return $process->rss() / 1024 if ($process->pid() == $PID)
}
Stack trace:
(gdb) bt
#0 0x000000391144812c in _IO_vfprintf_internal (s=<value optimized out>,
format=<value optimized out>, ap=<value optimized out>) at vfprintf.c:1641
#1 0x000000391146fcb7 in _IO_obstack_vprintf (obstack=0x7fffe3815360,
format=0x7f8d38e3cd06 "%s", args=0x7fffe3815000) at obprintf.c:171
#2 0x000000391146fda8 in _IO_obstack_printf (obstack=<value optimized out>,
format=<value optimized out>) at obprintf.c:188
#3 0x00007f8d38e3a3d3 in eval_link ()
from /mnt/iscsi/vol_na4_lindev_lun/lindev4/data_storage/work/imb/linear-perl520-LINUPGRADE-248/local/lib/perl5/x86_64-linux/auto/Proc/ProcessTable/ProcessTable.so
#4 0x00007f8d38e3aef4 in OS_get_table ()
from /mnt/iscsi/vol_na4_lindev_lun/lindev4/data_storage/work/imb/linear-perl520-LINUPGRADE-248/local/lib/perl5/x86_64-linux/auto/Proc/ProcessTable/ProcessTable.so
#5 0x00007f8d38e3c25f in XS_Proc__ProcessTable_table ()
from /mnt/iscsi/vol_na4_lindev_lun/lindev4/data_storage/work/imb/linear-perl520-LINUPGRADE-248/local/lib/perl5/x86_64-linux/auto/Proc/ProcessTable/ProcessTable.so
#6 0x00000000004a5188 in Perl_pp_entersub ()
#7 0x00000000004a39e3 in Perl_runops_standard ()
#8 0x0000000000437f6e in perl_run ()
#9 0x000000000041ce1c in main ()