Hello list,

I am building pcsc-lite on our system with buildroot. pcsc-lite compiled and
installed on the target, but when starting it I got segmentation fault.

Following is the log:

$ lsusb
Bus 001 Device 003: ID 072f:2200

Reader: ACR122 P/N: ACR122U-A2NR
PCSC-LITE: pcsc-lite-1.7.2
configured with: --disable-libudev --enable-libusb --enable-debugatr
--disable-serial
CCID: ccid-1.4.4

# /usr/sbin/pcscd --version
pcsc-lite version 1.7.2.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2010 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux arm-unknown-linux-gnu usb libusb
usbdropdir=/usr/lib/pcsc/drivers debugatr ipcdir=/var/run/pcscd
configdir=/etc/reader.conf.d

OS/kernel version:
# uname -a
Linux srikutil 2.6.28.6 #6 Tue Jun 14 00:54:36 CXT 2011 armv6l GNU/Linux

# pcscd --foreground --debug --apdu
debuglog.c:277:DebugLogSetLevel() debug level=debug
debuglog.c:306:DebugLogSetCategory() Debug options: APDU
pcscdaemon.c:550:main() pcsc-lite 1.7.2 daemon ready.
Segmentation fault

I also enclosed the strace output as reference.

Could anyone point me to the root cause of this issue?

Many thanks in advance,
DWI



--
PCSCD-LOG

$ lsusb
Bus 001 Device 003: ID 072f:2200

Reader: ACR122 P/N: ACR122U-A2NR
PCSC-LITE: pcsc-lite-1.7.2
        configured with: --disable-libudev --enable-libusb --enable-debugatr 
--disable-serial
CCID: ccid-1.4.4

# /usr/sbin/pcscd --version
pcsc-lite version 1.7.2.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2010 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux arm-unknown-linux-gnu usb libusb 
usbdropdir=/usr/lib/pcsc/drivers debugatr ipcdir=/var/run/pcscd 
configdir=/etc/reader.conf.d

OS/kernel version:
# uname -a
Linux srikutil 2.6.28.6 #6 Tue Jun 14 00:54:36 CXT 2011 armv6l GNU/Linux

# pcscd --foreground --debug --apdu
debuglog.c:277:DebugLogSetLevel() debug level=debug
debuglog.c:306:DebugLogSetCategory() Debug options: APDU
pcscdaemon.c:550:main() pcsc-lite 1.7.2 daemon ready.
Segmentation fault

strace output:
# strace -f -F -i pcscd --foreground --debug --apdu
[400db9b0] execve("/usr/sbin/pcscd", ["pcscd", "--foreground", "--debug", 
"--apdu"], [/* 16 vars */]) = 0
[400170e0] brk(0)                       = 0x24000
[40017f3c] uname({sys="Linux", node="srikutil", ...}) = 0
[40017e78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x4001f000
[40017d0c] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/fast-mult/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file o)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/fast-mult/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/fast-mult/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or dir)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/fast-mult",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or director)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/v6l",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/fast-mult/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or di)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/fast-mult/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/fast-mult/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directo)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/fast-mult",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/tls",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/fast-mult/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or di)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/fast-mult/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/fast-mult/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directo)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/fast-mult",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/v6l",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/fast-mult/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or direct)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/fast-mult/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/fast-mult/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/fast-mult",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/half/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/half",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] 
open("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib/libusb-1.0.so.0",
 O_RDONLY) = -1 ENOENT (No such file or directory)
[40017b4c] 
stat64("/opt/buildroot/buildroot/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib",
 0xbebfa448) = -1 ENOENT (No such file or directory)
[40017bcc] open("/etc/ld.so.cache", O_RDONLY) = 3
[40017b8c] fstat64(3, {st_mode=S_IFREG|0644, st_size=4712, ...}) = 0
[40017e78] mmap2(NULL, 4712, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40020000
[40017c0c] close(3)                     = 0
[40017bcc] open("/usr/lib/libusb-1.0.so.0", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0|\34\0\0004\0\0\0"..., 512) = 512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=41420, ...}) = 0
[40017e78] mmap2(NULL, 72968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x40028000
[40017efc] mprotect(0x40032000, 28672, PROT_NONE) = 0
[40017e78] mmap2(0x40039000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0x40039000
[40017c0c] close(3)                     = 0
[40017bcc] open("/lib/libdl.so.2", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0l\n\0\0004\0\0\0"..., 512) = 512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=17952, ...}) = 0
[40017e78] mmap2(NULL, 49364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x4003a000
[40017efc] mprotect(0x4003e000, 28672, PROT_NONE) = 0
[40017e78] mmap2(0x40045000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0x40045000
[40017c0c] close(3)                     = 0
[40017bcc] open("/lib/libgcc_s.so.1", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0p'\0\0004\0\0\0"..., 512) = 512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=45472, ...}) = 0
[40017e78] mmap2(NULL, 77036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x40047000
[40017efc] mprotect(0x40052000, 28672, PROT_NONE) = 0
[40017e78] mmap2(0x40059000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x40059000
[40017c0c] close(3)                     = 0
[40017bcc] open("/lib/libpthread.so.0", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\320D\0\0004\0\0\0"..., 512) = 
512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=88376, ...}) = 0
[40017e78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40022000
[40017e78] mmap2(NULL, 127520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x4005a000
[40017efc] mprotect(0x4006f000, 28672, PROT_NONE) = 0
[40017e78] mmap2(0x40076000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x40076000
[40017e78] mmap2(0x40078000, 4640, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40078000
[40017c0c] close(3)                     = 0
[40017bcc] open("/lib/libc.so.6", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0HW\1\0004\0\0\0"..., 512) = 512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=1299692, ...}) = 0
[40017e78] mmap2(NULL, 1336564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x4007a000
[40017efc] mprotect(0x401b3000, 32768, PROT_NONE) = 0
[40017e78] mmap2(0x401bb000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x139) = 0x401bb000
[40017e78] mmap2(0x401be000, 9460, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401be000
[40017c0c] close(3)                     = 0
[40017bcc] open("/lib/librt.so.1", O_RDONLY) = 3
[40017c4c] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\240\26\0\0004\0\0\0"..., 512) = 
512
[40017b8c] fstat64(3, {st_mode=S_IFREG|0755, st_size=30540, ...}) = 0
[40017e78] mmap2(NULL, 61972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0x401c1000
[40017efc] mprotect(0x401c8000, 28672, PROT_NONE) = 0
[40017e78] mmap2(0x401cf000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x401cf000
[40017c0c] close(3)                     = 0
[40017e78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40023000
[40001b38] set_tls(0x400233f0, 0x40023ac8, 0x40027050, 0x400233f0, 0x40027050) 
= 0
[40017efc] mprotect(0x401cf000, 4096, PROT_READ) = 0
[40017efc] mprotect(0x401bb000, 8192, PROT_READ) = 0
[40017efc] mprotect(0x40076000, 4096, PROT_READ) = 0
[40017efc] mprotect(0x40045000, 4096, PROT_READ) = 0
[40017efc] mprotect(0x40026000, 4096, PROT_READ) = 0
[40017ebc] munmap(0x40020000, 4712)     = 0
[4005e0ac] set_tid_address(0x40022f98)  = 1240
[4005e0e4] set_robust_list(0x40022fa0, 0xc) = 0
[4005e114] futex(0xbebfad24, FUTEX_WAKE_PRIVATE, 1) = 0
[4005e3fc] futex(0xbebfad24, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, 
NULL, 40077000) = -1 ENOSYS (Function not implemented)
[4006a74c] rt_sigaction(SIGRTMIN, {0x4005dfa0, [], SA_SIGINFO|0x4000000}, NULL, 
8) = 0
[4006a74c] rt_sigaction(SIGRT_1, {0x4005de38, [], 
SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0
[4005e200] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
[40148684] getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=16}) = 0
[4011b4e4] getgid32()                   = 0
[4011b4f8] getegid32()                  = 0
[401482fc] ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon 
echo ...}) = 0
[40141b2c] write(2, "debuglog.c:277:DebugLogSetLevel("..., 
52debuglog.c:277:DebugLogSetLevel() debug level=debug
) = 52
[40141b2c] write(2, "debuglog.c:306:DebugLogSetCatego"..., 
57debuglog.c:306:DebugLogSetCategory() Debug options: APDU
) = 57
[401407a0] stat64("/var/run/pcscd/pcscd.comm", {st_mode=S_IFSOCK|0666, 
st_size=0, ...}) = 0
[40069a24] open("/var/run/pcscd/pcscd.pid", O_RDONLY|O_LARGEFILE) = 3
[40068e3c] read(3, "1237\n", 11)        = 5
[40068eec] close(3)                     = 0
[400a6aac] kill(1237, SIG_0)            = -1 ESRCH (No such process)
[4014332c] unlink("/var/run/pcscd/pcscd.comm") = 0
[4014332c] unlink("/var/run/pcscd/pcscd.pid") = 0
[4014249c] chdir("/")                   = 0
[400a68d8] rt_sigaction(SIGQUIT, {0xb918, [QUIT], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[400a68d8] rt_sigaction(SIGTERM, {0xb918, [TERM], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[400a68d8] rt_sigaction(SIGINT, {0xb918, [INT], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[400a68d8] rt_sigaction(SIGALRM, {0xb918, [ALRM], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[401407a0] stat64("/var/run/pcscd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) 
= 0
[40069a24] open("/var/run/pcscd/pcscd.pid", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 
3
[40068d8c] write(3, "1240\n", 5)        = 5
[40068eec] close(3)                     = 0
[401410ec] chmod("/var/run/pcscd/pcscd.pid", 0644) = 0
[40148b8c] brk(0)                       = 0x24000
[40148b8c] brk(0x45000)                 = 0x45000
[40141b2c] write(2, "pcscdaemon.c:550:main() pcsc-lit"..., 
54pcscdaemon.c:550:main() pcsc-lite 1.7.2 daemon ready.
) = 54
[400a68d8] rt_sigaction(SIGUSR1, {0xb884, [USR1], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[40152c4c] socket(PF_FILE, SOCK_STREAM, 0) = 3
[4014332c] unlink("/var/run/pcscd/pcscd.comm") = -1 ENOENT (No such file or 
directory)
[4015271c] bind(3, {sa_family=AF_FILE, path="/var/run/pcscd/pcscd.comm"}, 28) = 0
[4015283c] listen(3, 1)                 = 0
[401410ec] chmod("/var/run/pcscd/pcscd.comm", 0666) = 0
[400a68d8] rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[400a68d8] rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTART|0x4000000}, 
{SIG_DFL, [], 0}, 8) = 0
[40115594] open("/usr/lib/pcsc/drivers", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
[40142014] fcntl64(4, F_GETFD)          = 0x1 (flags FD_CLOEXEC)
[40115e70] getdents64(4, /* 3 entries */, 32768) = 88
[4014141c] open("/usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist", 
O_RDONLY|O_LARGEFILE) = 5
[401482fc] ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbebf89e4) = -1 ENOTTY 
(Inappropriate ioctl for device)
[401407e8] fstat64(5, {st_mode=S_IFREG|0644, st_size=20331, ...}) = 0
[4014dc78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40020000
[40141a9c] read(5, "<?xml version=\"1.0\" encoding=\"UT"..., 8192) = 8192
[40141a9c] read(5, "tring>0x3478</string>\n\t\t<string>"..., 8192) = 8192
[40141a9c] read(5, "n SIM Pocket Combo</string>\n\t\t<s"..., 8192) = 3947
[40141a9c] read(5, "", 4096)            = 0
[40141a9c] read(5, "", 8192)            = 0
[401482fc] ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbebf89dc) = -1 ENOTTY 
(Inappropriate ioctl for device)
[400e521c] close(5)                     = 0
[4014dd0c] munmap(0x40020000, 4096)     = 0
[40115e70] getdents64(4, /* 0 entries */, 32768) = 0
[40115624] close(4)                     = 0
[401423bc] pipe([4, 5])                 = 0
[4014dc78] mmap2(NULL, 8388608, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d1000
[4014dd2c] mprotect(0x401d1000, 4096, PROT_NONE) = 0
[40151c08] clone(Process 1241 attached
child_stack=0x409cffa8, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0x409d041
[pid  1241] [4005fb0c] set_robust_list(0x409d04e0, 0xc) = 0
[pid  1241] [40115594] open("/dev/bus/usb", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such 
file or directory)
[pid  1241] [40115594] open("/proc/bus/usb", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
[pid  1241] [40115e70] getdents64(6, /* 2 entries */, 32768) = 48
[pid  1241] [40115e70] getdents64(6, /* 0 entries */, 32768) = 0
[pid  1241] [40115624] close(6)         = 0
[pid  1241] [40115594] open("/sys/bus/usb/devices", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6
[pid  1241] [40115e70] getdents64(6, /* 8 entries */, 32768) = 216
[pid  1241] [401407a0] stat64("/sys/bus/usb/devices/usb1/descriptors", 
{st_mode=S_IFREG|0444, st_size=65553, ...}) = 0
[pid  1241] [40141444] open("/sys/bus/usb/devices/usb1/busnum", 
O_RDONLY|O_LARGEFILE) = 7
[pid  1241] [401407e8] fstat64(7, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
[pid  1241] [4014dc78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
[pid  1241] [40141ac4] read(7, "1\n", 4096) = 2
[pid  1241] [400e521c] close(7)         = 0
[pid  1241] [4014dd0c] munmap(0x40020000, 4096) = 0
[pid  1241] [40141444] open("/sys/bus/usb/devices/usb1/devnum", 
O_RDONLY|O_LARGEFILE) = 7
[pid  1241] [401407e8] fstat64(7, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
[pid  1241] [4014dc78] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid  1240] [40068e64] read(4,  <unfinished ...>
[pid  1241] [4014dc78] <... mmap2 resumed> ) = 0x40020000
[pid  1241] [40141ac4] read(7, "1\n", 4096) = 2
[pid  1241] [400e521c] close(7)         = 0
[pid  1241] [4014dd0c] munmap(0x40020000, 4096) = 0
[pid  1241] [400624e8] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 1241 detached
[????????] +++ killed by SIGSEGV +++
Segmentation fault

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to