Your message dated Thu, 09 Apr 2009 23:04:33 +0200
with message-id <[email protected]>
and subject line Re: Bug#523351: libnet-rawip-perl: Using pcapinit causes
segfault
has caused the Debian Bug report #523351,
regarding libnet-rawip-perl: Using pcapinit causes segfault
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
523351: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523351
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnet-rawip-perl
Version: 0.23-2+b1
Severity: normal
Hi,
Trying to use the pcapinit funcion of Net::RawIP causes a segfault.
This can be easily demonstrated on the command line:
sudo perl -MNet::RawIP=:pcap -e '$n = new Net::RawIP; $n->pcapinit("eth0", "dst
port 68", 1500, 500)'
I've reproduced this on both amd64 and i386 systems.
Running 'perldoc Net::RawIP' suggests that this _should_ work, hence
this bug report.
Cheers,
Michael
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libnet-rawip-perl depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii liblist-moreutils-perl 0.22-1+b1 Addition list functions not found
ii libpcap0.8 0.9.8-5 system interface for user-level pa
ii perl 5.10.0-19 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.10.0] 5.10.0-19 minimal Perl system
libnet-rawip-perl recommends no packages.
libnet-rawip-perl suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 0.25-1
Tags: patch
This bug has been reported on CPAN:
http://rt.cpan.org/Public/Bug/Display.html?id=29186
and fixed in Net::RawIP 0.24.
The enclosed patch should do the trick against 0.23-1.
Regards,
--
Franck Joncourt
http://debian.org - http://smhteam.info/wiki/
diff --git a/RawIP.xs b/RawIP.xs
index 6c0ee52..cddc523 100644
--- a/RawIP.xs
+++ b/RawIP.xs
@@ -1454,7 +1454,6 @@ compile(p,fp,str,optimize,netmask)
CODE:
fp = (struct bpf_program *)safemalloc(sizeof(struct bpf_program));
RETVAL = pcap_compile(p,fp,str,optimize,netmask);
- Safefree(fp);
OUTPUT:
fp
RETVAL
signature.asc
Description: OpenPGP digital signature
--- End Message ---