Package: perl
Version: 5.8.8-4
Severity: normal

The perl program in question is a single thread process using Net::Pcap
to capture and analyze network traffic. Every few weeks the program
hangs in pthread_setcanceltype().

Following is some additional diagnostics info:

`gdb program PID_of_perl_process`

  0xf7e75189 in pthread_setcanceltype () from /lib/tls/libc.so.6
  (gdb) backtrace
  #0  0xf7e75189 in pthread_setcanceltype () from /lib/tls/libc.so.6
  #1  0x080c7d1e in Perl_sv_clear ()
  #2  0x080c7e75 in Perl_sv_free ()
  #3  0x080b41b6 in Perl_sighandler ()
  #4  <signal handler called>
  #5  0xf7dfd23a in free () from /lib/tls/libc.so.6
  #6  0xf7dfedfc in malloc () from /lib/tls/libc.so.6
  #7  0x080ab78f in Perl_safesysmalloc ()
  #8  0x080c9ad8 in Perl_sv_grow ()
  #9  0x080d79b0 in Perl_sv_setsv_flags ()
  #10 0x080d8903 in Perl_sv_mortalcopy ()
  #11 0x080c542b in Perl_pp_aelem ()
  #12 0x080bd469 in Perl_runops_standard ()
  #13 0x08060ffd in Perl_get_cv ()
  #14 0x080647cc in Perl_call_sv ()
  #15 0xf7d14c76 in callback_wrapper () from
  /usr/lib/perl5/auto/Net/Pcap/Pcap.so
  #16 0xf7ced551 in pcap_read () from /usr/lib/libpcap.so.0.7
  #17 0xf7ceeb0a in pcap_loop () from /usr/lib/libpcap.so.0.7
  #18 0xf7d187e0 in XS_Net__Pcap_loop () from
  /usr/lib/perl5/auto/Net/Pcap/Pcap.so
  #19 0x080c4981 in Perl_pp_entersub ()
  #20 0x080bd469 in Perl_runops_standard ()
  #21 0x08065422 in perl_run ()
  #22 0x0805ffcd in main ()


`ps aux | grep programname`

  userid  13868  0.4  0.8  19496 16828 pts/2    S+   Feb22  75:01 /usr/bin/perl 
-w /dev/fd/3/./programname


`cat /proc/programPID/wchan`

  _stext


I'm investigating is forcing LinuxThreads instead of NPTL will bypass
the issue. Also, I've had a RHEL4 machine hang in futex.

Can you please that perl interpreter with single threaded code does
not explicitly call pthreads?

Thanks, Michal



-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (500, 'stable'), (90, 'testing')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-ncdm-amd64-k8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages perl depends on:
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries
ii  libdb4.4                      4.4.20-3   Berkeley v4.4 Database Libraries [
ii  libgdbm3                      1.8.3-3    GNU dbm database routines (runtime
ii  perl-base                     5.8.8-4    The Pathologically Eclectic Rubbis
ii  perl-modules                  5.8.8-4    Core Perl modules

Versions of packages perl recommends:
ii  perl-doc                      5.8.8-6.1  Perl documentation

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to