Bug#534437: arping segfault with multiple interface and not -i switch in command line options

2009-06-29 Thread Javier Barroso
Hello,
Stefanos Harhalakis wrote:
 Hello,

 On Friday 26 June 2009, Giuseppe Iuculano wrote:
   
 reassign 534437 libnet 1.1.4-1
 retitle 534437 multiple libnet_init() causes libnet 1.1.4-1 to SEGV
 

 I believe I've found the bug. The following patch seems to fix it. I've made 
 a 
 new version (1.1.4-2) of libnet so test that one when it will be available.

 If you're in hurry you can get the not-yet-uploaded sources:

 dget -u http://mentors.debian.net/debian/pool/main/l/libnet/libnet_1.1.4-2.dsc

 and build it yourself.
   
Thank you very much, it works here !

Open Source rocks !

-- 
Javier Barroso





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534437: arping segfault with multiple interface and not -i switch in command line options

2009-06-27 Thread Stefanos Harhalakis
Hello,

On Friday 26 June 2009, Giuseppe Iuculano wrote:
 reassign 534437 libnet 1.1.4-1
 retitle 534437 multiple libnet_init() causes libnet 1.1.4-1 to SEGV

I believe I've found the bug. The following patch seems to fix it. I've made a 
new version (1.1.4-2) of libnet so test that one when it will be available.

If you're in hurry you can get the not-yet-uploaded sources:

dget -u http://mentors.debian.net/debian/pool/main/l/libnet/libnet_1.1.4-2.dsc

and build it yourself.

Here's the patch:

--- libnet-1.1.4.orig/src/libnet_if_addr.c  2009-06-27 14:48:56.084093427 
+0300
+++ libnet-1.1.4/src/libnet_if_addr.c   2009-06-27 14:49:30.081249393 +0300
@@ -240,6 +240,7 @@
 {
 /* fix memory leak */
 free(al-device);
+   al-device = NULL;
 }
 if ((al-device = strdup(device)) == NULL)
 {
@@ -406,6 +407,7 @@
 for (i = 0; i  c; i++)
 {
 free(al[i].device);
+   al[i].device = NULL;
 }
 return (1);
 
@@ -413,6 +415,7 @@
 for (i = 0; i  c; i++)
 {
 free(al[i].device);
+   al[i].device = NULL;
 }
 return (-1);
 }




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#534437: arping segfault with multiple interface and not -i switch in command line options

2009-06-24 Thread Javier Barroso
Package: arping
Version: 2.08-1
Severity: minor


Hi, 

Mi config is:

# brctl show
bridge name bridge id   STP enabled interfaces
br-gest 8000.0017a420b5ad   no  vlan99
br-lan  8000.0017a420b5ad   no  vlan192

# cat /proc/net/vlan/config 
VLAN Dev name| VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan192| 192  | eth0
vlan99 | 99  | eth0

# ip add
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:17:a4:20:b5:ad brd ff:ff:ff:ff:ff:ff
inet6 fe80::217:a4ff:fe20:b5ad/64 scope link 
   valid_lft forever preferred_lft forever
3: vlan...@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue state 
UP 
link/ether 00:17:a4:20:b5:ad brd ff:ff:ff:ff:ff:ff
inet6 fe80::217:a4ff:fe20:b5ad/64 scope link 
   valid_lft forever preferred_lft forever
4: vla...@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue state 
UP 
link/ether 00:17:a4:20:b5:ad brd ff:ff:ff:ff:ff:ff
inet6 fe80::217:a4ff:fe20:b5ad/64 scope link 
   valid_lft forever preferred_lft forever
5: br-lan: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue state 
UNKNOWN 
link/ether 00:17:a4:20:b5:ad brd ff:ff:ff:ff:ff:ff
inet X/16 brd 192.168.255.255 scope global br-lan
inet6 fe80::217:a4ff:fe20:b5ad/64 scope link 
   valid_lft forever preferred_lft forever
6: br-gest: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc noqueue state 
UNKNOWN 
link/ether 00:17:a4:20:b5:ad brd ff:ff:ff:ff:ff:ff
inet X/24 brd 10.4.0.255 scope global br-gest
inet6 fe80::217:a4ff:fe20:b5ad/64 scope link 
   valid_lft forever preferred_lft forever

arping 192.168.x.y segfaults

I'm attaching strace file. It would be fine arping tells you about select a 
interface to use

Thanks you
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages arping depends on:
ii  libc6 2.9-18 GNU C Library: Shared libraries
ii  libnet1   1.1.4-1library for the construction and h
ii  libpcap0.81.0.0-2system interface for user-level pa

arping recommends no packages.

arping suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: checksum mismatch arping file 
/usr/share/doc/arping/examples/arping-scan-net.sh
execve(/usr/sbin/arping, [arping, 192.168.109.110], [/* 38 vars */]) = 0
brk(0)  = 0x8b6e000
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f8a000
access(/etc/ld.so.preload, R_OK)  = 0
open(/etc/ld.so.preload, O_RDONLY)= 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
mmap2(NULL, 18, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb7f89000
close(3)= 0
munmap(0xb7f89000, 18)  = 0
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=102410, ...}) = 0
mmap2(NULL, 102410, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/usr/lib/libnet.so.1, O_RDONLY)  = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2003\0\0004\0\0\0..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=79632, ...}) = 0
mmap2(NULL, 83728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7f5b000
mmap2(0xb7f6e000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7f6e000
mmap2(0xb7f6f000, 1808, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f6f000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/usr/lib/libpcap.so.0.8, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`J\0\0004\0\0\0..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=189540, ...}) = 0
mmap2(NULL, 194496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7f2b000
mmap2(0xb7f59000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0xb7f59000
mmap2(0xb7f5a000, 1984, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f5a000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)