Subject: | $pt->table segfaults sometimes (0.41) |
Date: | Wed, 8 Nov 2006 10:28:26 +0100 |
To: | bug-Proc-ProcessTable [...] rt.cpan.org |
From: | Alexander Klink <a.klink [...] cynops.de> |
Hi,
on a Mac OS X (Intel) machine, I have the following weird problem:
calling the table method on a Proc::ProcessTable object creates a
segmentation fault some of the time, sometimes it works just fine.
This is illustrated in the attached test script. If I run it on the
Mac machine, I (sometimes) get the following:
trinidad:~ klink$ (for ((i=0; i<100; i=i+1)); do perl pt_bug.pl ; sleep
1; done)|wc -l
85
running it on a Linux machine (which uses perl 5.8.8 as well), I get the
expected "100", so apparently it does not crash there ...
Here is the uname:
Darwin trinidad.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
And perl -V:
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=darwin, osvers=8.7.1, archname=darwin-2level
uname='darwin trinidad.dach-wg.de 8.7.1 darwin kernel version 8.7.1: wed jun 7 16:19:56 pdt 2006; root:xnu-792.9.72.obj~2release_i386 i386 i386 '
config_args='-des -Dprefix=/opt/local -Dccflags=-I'/opt/local/include' -Dldflags=-L/opt/local/lib -Dvendorprefix=/opt/local -Dcc=/usr/bin/gcc-4.0'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/usr/bin/gcc-4.0', ccflags ='-I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/opt/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/opt/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5341)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/opt/local/lib'
libpth=/opt/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-L/opt/local/lib -bundle -undefined dynamic_lookup'
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under darwin
Compiled at Jul 30 2006 14:50:02
%ENV:
PERL5LIB="/Users/klink/usr/local/lib/perl5/site_perl/5.8.8"
@INC:
/Users/klink/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
/Users/klink/usr/local/lib/perl5/site_perl/5.8.8
/opt/local/lib/perl5/5.8.8/darwin-2level
/opt/local/lib/perl5/5.8.8
/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level
/opt/local/lib/perl5/site_perl/5.8.8
/opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level
/opt/local/lib/perl5/vendor_perl/5.8.8
/opt/local/lib/perl5/vendor_perl
.
Let me know if there is any more information that might help in
resolving this issue.
TIA,
Alex
--
Dipl.-Math. Alexander Klink | IT-Security Engineer | a.klink@cynops.de
mobile: +49 (0)178 2121703 | Cynops GmbH | http://www.cynops.de
Message body is not shown because sender requested not to inline it.