Bug#508432: minimum testcase

2009-02-16 Thread Sébastien Aperghis-Tramoni
Niko Tyni wrote: On Mon, Feb 16, 2009 at 11:45:20AM -0200, Martín Ferrari wrote: On Sun, Feb 15, 2009 at 22:39, Sébastien Aperghis-Tramoni wrote: I can't reproduce the problem using your test case, either with Net::Pcap 0.16 on OSX, Net::Pcap 0.04 or 0.16 on Debian etch x86. I've been work

Bug#508432: minimum testcase

2009-02-16 Thread Niko Tyni
On Mon, Feb 16, 2009 at 11:45:20AM -0200, Martín Ferrari wrote: > On Sun, Feb 15, 2009 at 22:39, Sébastien Aperghis-Tramoni > wrote: > > I can't reproduce the problem using your test case, either with > > Net::Pcap 0.16 on OSX, Net::Pcap 0.04 or 0.16 on Debian etch x86. > > I've been working w

Bug#508432: minimum testcase

2009-02-16 Thread Martín Ferrari
Hi, On Sun, Feb 15, 2009 at 22:39, Sébastien Aperghis-Tramoni wrote: >> In the fwknopd code, this happens when calling iptables, which >> triggers >> a SIGCHLD on exit, but can happen with any signal. > > I can't reproduce the problem using your test case, either with > Net::Pcap 0.16 on OSX, Ne

Bug#508432: minimum testcase

2009-02-15 Thread Sébastien Aperghis-Tramoni
Martín Ferrari a écrit : Hi, after working on this bug for a while, I was able to distill a minimum code that triggers the segfault. The callback routine invoked from pcap_loop needs to set a signal handler that it's used during the callback. In the fwknopd code, this happens when calling iptab

Bug#508432: minimum testcase

2009-02-14 Thread Martín Ferrari
Faster than what I've expected, I've found what caused the segfault: Pcap.xs is allowing unsafe signals during the callback. I don't know why upstream did this, but this has to be discussed with them and filled as a bug in CPAN. With the attached patch, my original testcase no longer segfaults. O

Bug#508432: minimum testcase

2009-02-14 Thread Martín Ferrari
On Sat, Feb 14, 2009 at 21:08, Martín Ferrari wrote: > Meanwhile this is solved, see the attached patch that's useful as a > workaround for fwknopd My bad, that patch didn't work. It goes again, this time correctly tested :) -- Martín Ferrari --- /home/martin/src/fwknop-1.9.10/fwknopd 2009-01-

Bug#508432: minimum testcase

2009-02-14 Thread Martín Ferrari
Meanwhile this is solved, see the attached patch that's useful as a workaround for fwknopd On Sat, Feb 14, 2009 at 20:47, Martín Ferrari wrote: > Hi, after working on this bug for a while, I was able to distill a > minimum code that triggers the segfault. The callback routine invoked > from pcap_

Bug#508432: minimum testcase

2009-02-14 Thread Martín Ferrari
Hi, after working on this bug for a while, I was able to distill a minimum code that triggers the segfault. The callback routine invoked from pcap_loop needs to set a signal handler that it's used during the callback. In the fwknopd code, this happens when calling iptables, which triggers a SIGCHL