Bug: segfault in ifup during bootup

Gustavo Moreira gmoreira at gmail.com
Wed Aug 27 18:35:48 UTC 2008


Busybox ifup crashed due to a segmentation fault, when it open
/var/run/ifstate (CONFIG_IFUPDOWN_IFSTATE_PATH) and it not exist.

This is a strace output part:

...
open("/var/run/ifstate", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
ioctl(2147483647, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf90df4c) = -1
EBADF (Bad file descriptor)
brk(0x80cf000) = 0x80cf000
ioctl(2147483647, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf90df48) = -1
EBADF (Bad file descriptor)
brk(0x80d0000) = 0x80d0000
ioctl(2147483647, SNDCTL_TMR_TIMEBASE or TCGETsh[741]: segfault at
bf857000 eip b7f6a4f8 esp bf85533c error ffff0004
S, 0xbf90df44) = -1 EBADF (Bad file descriptor)
brk(0x80d1000) = 0x80d1000
...

I have a patch for it, please could you add to hot fixes?

I'm Sorry, I mistakenly first opened a bug (ID 0004754) with it same
text, rather than directly write it here.


Regards, Gustavo Moreira
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-ifup.patch
Type: application/octet-stream
Size: 1220 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080827/cf9432a4/attachment-0002.obj 


More information about the busybox mailing list