On Wed, Aug 27, 2008 at 03:35:48PM -0300, Gustavo Moreira wrote:
>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.

Filing a bug about this is OK. I'm not convinced that your fix is the
correct thing to do, though.

Which version of busybox do you use, which toolchain?
I'm a bit curious why xfopen doesn't bail out on you?
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to