Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#4157 - /sbin/nameif (net-tools package) crash

Attached to Project: Arch Linux
Opened by Bfg (Bfg) - Sunday, 12 March 2006, 11:02 GMT
Last edited by Jan de Groot (JGC) - Friday, 27 April 2007, 20:43 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

when i try to use command "/sbin/nameif" on the command line as itself or inside the script "/etc/rc.d/network"

# look for interface binding settings
[ -f /etc/mactab ] && nameif

the output is

[root@fabrizionb ~]# nameif
interface 'wlan0' not found
*** glibc detected *** nameif: double free or corruption (fasttop): 0x0804b1f0 *
**
======= Backtrace: =========
/lib/tls/libc.so.6[0xb7e9d233]
/lib/tls/libc.so.6(__libc_free+0x84)[0xb7e9dc94]
nameif[0x8049394]
/lib/tls/libc.so.6(__libc_start_main+0xdb)[0xb7e4dd6b]
nameif[0x80489d1]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 03:02 19033 /sbin/nameif
0804a000-0804b000 rw-p 00001000 03:02 19033 /sbin/nameif
0804b000-0806c000 rw-p 0804b000 00:00 0 [heap]
b7d00000-b7d21000 rw-p b7d00000 00:00 0
b7d21000-b7e00000 ---p b7d21000 00:00 0
b7e2d000-b7e37000 r-xp 00000000 03:02 9853 /usr/lib/libgcc_s.so.1
b7e37000-b7e38000 rw-p 00009000 03:02 9853 /usr/lib/libgcc_s.so.1
b7e38000-b7e39000 rw-p b7e38000 00:00 0
b7e39000-b7f52000 r-xp 00000000 03:02 1183 /lib/tls/libc-2.3.5.so
b7f52000-b7f53000 r--p 00118000 03:02 1183 /lib/tls/libc-2.3.5.so
b7f53000-b7f56000 rw-p 00119000 03:02 1183 /lib/tls/libc-2.3.5.so
b7f56000-b7f58000 rw-p b7f56000 00:00 0
b7f76000-b7f77000 rw-p b7f76000 00:00 0
b7f77000-b7f91000 r-xp 00000000 03:02 1166 /lib/ld-2.3.5.so
b7f91000-b7f93000 rw-p 0001a000 03:02 1166 /lib/ld-2.3.5.so
bfb7b000-bfb91000 rw-p bfb7b000 00:00 0 [stack]
ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
Aborted

I'm using the following two row "/etc/mactab" file..
[root@fabrizionb ~]# cat /etc/mactab
wlan0 00:0E:35:0F:64:27
eth0 00:C0:9F:5F:A1:9C

thank you all, ciao
fabrizio
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 27 April 2007, 20:43 GMT
Reason for closing:  Fixed
Comment by arjan timmerman (blaasvis) - Saturday, 25 March 2006, 23:34 GMT
did you upgrade with pacman -Syu ? cause it works for me.
Comment by Bfg (Bfg) - Sunday, 26 March 2006, 08:36 GMT
yes, i do upgrades more or less daily...
last time i upgraded acpid and lshwd.
and past few days glibc... setting my locale to "it_IT.iso885915@euro".

but the error is
[root@fabrizionb ~]# nameif
interface 'wlan0' not found
*** glibc detected *** double free or corruption (fasttop): 0x0804b1f0 ***
Abortito

currently i'm using
net-tools 1.60-10
kernel26 2.6.15.6-2
glibc 2.3.6-2

anyway to assign a name to the two network interfaces of my notebook i'm using now the udev method suggested on the wiki and it works... so i'm not using now no more this tool...

may be the error depends by the kernel driver of wireless network interface?

[root@fabrizionb ~]# lsmod | grep ipw
ipw2200 106156 0
ieee80211 31944 1 ipw2200

[root@fabrizionb ~]# dmesg | grep ipw2200
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, git-1.0.8
ipw2200: Copyright(c) 2003-2005 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Unknown notification: subtype=40,flags=0xa0,size=40

ciao
Comment by James Rayner (iphitus) - Friday, 09 February 2007, 12:07 GMT
try using ifrename and /etc/iftab in the wireless_tools package.

Does the same thing, but more versatile.

James
Comment by Jan de Groot (JGC) - Friday, 27 April 2007, 20:43 GMT
Two patches have been added to 1.60-11:
- Replace strcpy with strncpy, should fix possible buffer overflows on interfaces with a name longer than the buffer used
- Fix segfault when run twice

I think the 2nd patch is the source of your problem. As soon as you run nameif twice with the previous version, it would crash.

Loading...