[uClibc]segfault with k 2.0.39 and cardmgr (pcmcia)

Giulio Orsero giulioo at pobox.com
Thu Jan 31 16:14:14 UTC 2002


uClibc latest cvs

uclibc compiled with 2.2.19 + cardmgr (pcmcia-3.1.31) = is working

uclibc compiled with 2.0.39 + cardmgr -> segfault
cardmgr compiled with libc5 (with 2.0.39 headers) is working fine.

=== strace of uclibc cardmgr  (.. beep .. segfault)
...
nanosleep(0xbffff89c, 0, 0xbffff89c, 0xbffff89c, 0x8053fa8) = 0
access("/proc/bus/pccard/drivers", R_OK) = -1 ENOENT (No such file or
directory)
access("/lib/modules/2.0.39/pcmcia/wvlan_cs.o", R_OK) = 0
sigaction(SIGPIPE, {0x804d2c0, [], 0}, {SIG_DFL}) = 0
time([1011418744])                      = 1011418744
gettimeofday(NULL, {0, 0})              = 0
getpid()                                = 417
write(0, "<30>Jan 19 05:39:04 cardmgr[417]"..., 92) = 92
sigaction(SIGPIPE, {SIG_DFL}, NULL)     = 0
pipe([2, 4])                            = 0
fcntl(2, F_GETFL)                       = 0 (flags O_RDONLY)
ioctl(2, TCGETS, 0xbffff900)            = -1 EINVAL (Invalid argument)
close(4)                                = 0
close(2)                                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


== uclibc syslog
Jan 19 05:56:02 hostname daemon.info cardmgr[441]: starting, version is
3.1.31
Jan 19 05:56:02 hostname daemon.err cardmgr[441]: config error,
file'./config.opts' line 39: module name not found!
Jan 19 05:56:02 hostname daemon.info cardmgr[441]: watching 1 sockets
Jan 19 05:56:02 hostname daemon.err cardmgr[441]: signal(SIGHUP): %m
Jan 19 05:56:02 hostname daemon.err cardmgr[441]: signal(SIGTERM): %m
Jan 19 05:56:02 hostname daemon.err cardmgr[441]: signal(SIGINT): %m
Jan 19 05:56:02 hostname daemon.err cardmgr[441]: signal(SIGPWR): %m
Jan 19 05:56:02 hostname daemon.info klogd: cs: memory probe
0xa0000000-0xa0ffffff: clean.
Jan 19 05:56:02 hostname daemon.info cardmgr[441]: socket 0: MELCO
WLI-PCM-L11
Jan 19 05:56:02 hostname daemon.info cardmgr[441]: executing: 'insmod
/lib/modules/2.0.39/pcmcia/wvlan_cs.o'
<nothing more>

=== strace of libc5 cardmgr  (.. beep .. beep)
...
oldselect(1, NULL, NULL, NULL, {0, 150000}) = 0 (Timeout)
access("/proc/bus/pccard/drivers", R_OK) = -1 ENOENT (No such file or
directory)
access("/lib/modules/2.0.39/pcmcia/wvlan_cs.o", R_OK) = 0
sigaction(SIGPIPE, {0x805592c, [], 0}, {SIG_DFL}) = 0
time([1011418755])                      = 1011418755
getpid()                                = 419
write(0, "<30>Jan 19 05:39:15 cardmgr[419]"..., 92) = 92
sigaction(SIGPIPE, {SIG_DFL}, NULL)     = 0
pipe([2, 4])                            = 0
fork()                                  = 420
close(4)                                = 0
fstat(2, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400000
00
read(2, "Using /lib/modules/2.0.39/pcmcia"..., 4096) = 44
--- SIGCHLD (Child exited) ---
sigaction(SIGPIPE, {0x805592c, [], 0}, {SIG_DFL}) = 0
time([1011418755])                      = 1011418755
getpid()                                = 419
write(0, "<30>Jan 19 05:39:15 cardmgr[419]"..., 80) = 80
sigaction(SIGPIPE, {SIG_DFL}, NULL)     = 0
read(2, "", 4096)                       = 0
close(2)
wait4(420, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 420
munmap(0x40000000, 4096)                = 0
ioctl(1, 0xc050643c, 0x807ef38)         = 0
ioctl(1, 0xc050643d, 0x807ef38)         = 0
ioctl(1, 0xc050643e, 0x80838e0)         = -1 ENODEV (No such device)
open("/var/run/stab", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 2
flock(2, LOCK_EX)                       = 0
fstat(2, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400000
00
write(2, "Socket 0: MELCO WLI-PCM-L11\n0\t"..., 54) = 54
flock(2, LOCK_UN)                       = 0
close(2)                                = 0
munmap(0x40000000, 4096)                = 0
sigaction(SIGPIPE, {0x805592c, [], 0}, {SIG_DFL}) = 0
time([1011418755])                      = 1011418755
getpid()                                = 419
write(0, "<30>Jan 19 05:39:15 cardmgr[419]"..., 68) = 68
sigaction(SIGPIPE, {SIG_DFL}, NULL)     = 0
pipe([2, 4])                            = 0
fork()                                  = 422
close(4)                                = 0
fstat(2, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400000
00
read(2, "", 4096)                       = 0
--- SIGCHLD (Child exited) ---
close(2)                                = 0
wait4(422, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 422
munmap(0x40000000, 4096)                = 0
open("/dev/console", O_RDWR)            = 2
ioctl(2, KDMKTONE, 0x9603e8)            = 0
close(2)                                = 0
oldselect(1, NULL, NULL, NULL, {0, 150000}) = 0 (Timeout)
fork()                                  = 425
sigaction(SIGPIPE, {0x805592c, [], 0}, {SIG_DFL}) = 0
time([1011418756])                      = 1011418756
getpid()                                = 419
write(0, "<30>Jan 19 05:39:16 cardmgr[419]"..., 42) = 42
sigaction(SIGPIPE, {SIG_DFL}, NULL)     = 0
_exit(0)

=== libc5 syslog
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: starting, version is
3.1.31
Jan 19 05:56:41 hostname daemon.err cardmgr[446]: config error, file
'./config.opts' line 39: module name not found!
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: watching 1 sockets
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: IO ports 0xc00-0xcff: Device or resource busy
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: IO ports 0x800-0x8ff: Device or resource busy
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: IO ports 0x100-0x4ff: Device or resource busy
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: memory 0xc0000-0xfffff: I/O error
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: memory 0xa0000000-0xa0ffffff: I/O error
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: could not adjust
resource: IO ports 0xa00-0xaff: Device or resource busy
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: socket 0: MELCO
WLI-PCM-L11
Jan 19 05:56:41 hostname daemon.info cardmgr[446]: executing: 'insmod
/lib/modules/2.0.39/pcmcia/wvlan_cs.o'
Jan 19 05:56:41 hostname daemon.info klogd: wvlan_cs: WaveLAN/IEEE PCMCIA
driver v1.0.6
Jan 19 05:56:41 hostname daemon.info klogd: wvlan_cs: (c) Andreas Neuhaus
ndy at fasta.fh-dortmund.de>
Jan 19 05:56:41 hostname daemon.info klogd: cs: IO port probe 0x0100-0x04ff:
excluding 0x170-0x177 0x1f0-0x1f7 0x290-0x297 0x370-0x37f 0x400-0x4bf
0x4d0-0x4d7Jan 19 05:56:41 hostname daemon.info klogd: cs: IO port probe
0x0178-0x01ef: clean.
...

-- 
giulioo at pobox.com



More information about the uClibc mailing list