[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Segfault in busybox/ifconfig



Erik Andersen schrieb:

> Any chance you could get an strace and/or ltrace?

Find an strace attached. I did it in a chroot.
Sebastian
coyote:/proc/net# strace ifconfig

execve("/sbin/ifconfig", ["ifconfig"], [/* 20 vars */]) = 0

uname({sys="Linux", node="coyote", ...}) = 0

brk(0)                                  = 0x80f3de8

open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)

open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)

open("/lib/i686/mmx/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)

stat64("/lib/i686/mmx/cmov", 0xbfffee80) = -1 ENOENT (No such file or directory)

open("/lib/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)

stat64("/lib/i686/mmx", 0xbfffee80)     = -1 ENOENT (No such file or directory)

open("/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)

stat64("/lib/i686/cmov", 0xbfffee80)    = -1 ENOENT (No such file or directory)

open("/lib/i686/libc.so.6", O_RDONLY)   = -1 ENOENT (No such file or directory)

stat64("/lib/i686", 0xbfffee80)         = -1 ENOENT (No such file or directory)

open("/lib/mmx/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)

stat64("/lib/mmx/cmov", 0xbfffee80)     = -1 ENOENT (No such file or directory)

open("/lib/mmx/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)

stat64("/lib/mmx", 0xbfffee80)          = -1 ENOENT (No such file or directory)

open("/lib/cmov/libc.so.6", O_RDONLY)   = -1 ENOENT (No such file or directory)

stat64("/lib/cmov", 0xbfffee80)         = -1 ENOENT (No such file or directory)

open("/lib/libc.so.6", 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\340\264"..., 1024) = 1024

fstat64(3, {st_mode=S_IFREG|0644, st_size=600260, ...}) = 0

old_mmap(NULL, 604244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40012000

mprotect(0x400a0000, 22612, PROT_NONE)  = 0

old_mmap(0x400a0000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8e000) = 0x400a0000

old_mmap(0x400a5000, 2132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400a5000

close(3)                                = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400a6000

uname({sys="Linux", node="coyote", ...}) = 0

access("/proc/net", R_OK)               = 0

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3

brk(0)                                  = 0x80f3de8

brk(0x80f4de8)                          = 0x80f4de8

brk(0)                                  = 0x80f4de8

brk(0x80f5000)                          = 0x80f5000

open("/proc/net/dev", O_RDONLY|O_LARGEFILE) = 4

fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0

old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400a7000

read(4, "Inter-|   Receive               "..., 4096) = 569

--- SIGSEGV (Segmentation fault) @ 0 (0) ---

+++ killed by SIGSEGV +++


Reply to: