Hello,

On Wed, May 23, 2012 at 3:23 PM, Martin Vogt <[email protected]> wrote:
> Hello,
>
> I'm currently stress testing pcscd by removing my Aladdin token
> and inserting it again on a different USB ports.
> (and then repeat it again and again with increasing speed)


now I had a coredump.
What I have changed:

- I installed "normal" Ubuntu libccid (1.4.4)
- I used pcscd 1.8.3 but compiled it with:

./configure --enable-usbdropdir=/usr/lib/pcsc/drivers --enable-libusb
--disable-libudev

(And added some printfs to it)

It worked for some time (~3min), and suddenly I had a segfault.
log and backtrace appended.

regards,

Martin


00000050 winscard.c:235:SCardConnect() Attempting Connect to Aladdin eToken
PRO USB 72K Java 00 00 using protocol: 3
00015640 hotplug_libusb.c:604:HPRemoveHotPluggable() Removing USB device[0]:
2:69:0
00000055 eventhandler.c:148:EHDestroyEventHandler() Stomping thread.
00000058 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB1,
usb:0529/0620:libusb-1.0:2:69:0 (lun: 0)
00000050 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB2,
usb:0529/0620:libusb-1.0:2:69:0 (lun: 0)
00000033 eventhandler.c:173:EHDestroyEventHandler() Request stoping of
polling thread
00000033 ifdhandler.c:366:IFDHStopPolling() usb:0529/0620:libusb-1.0:2:69:0
(lun: 0)
00665242 ifdhandler.c:1151:IFDHPowerICC() action: PowerDown,
usb:0529/0620:libusb-1.0:2:69:0 (lun: 0)
00000062 ccid_usb.c:620:WriteUSB() write failed (2/69): -4 No such device
00000017 ifdhandler.c:1166:IFDHPowerICC() PowerDown failed
00000015 eventhandler.c:446:EHStatusHandlerThread() powerState:
POWER_STATE_UNPOWERED
00000023 eventhandler.c:469:EHStatusHandlerThread() Die
00000065 ccid_usb.c:620:WriteUSB() write failed (2/69): -4 No such device
00000024 ifdwrapper.c:341:IFDStatusICC() Card not transacted: 617
00000041 eventhandler.c:188:EHDestroyEventHandler() Thread stomped.
00000024 readerfactory.c:987:RFUnInitializeReader() Attempting shutdown of
Aladdin eToken PRO USB 72K Java 00 00.
00000015 utils.c:68:SendHotplugSignal() Send hotplug signal to pcscd
(pid=25727)
signal_reload
HPReCheckSerialReaders
00000063 hotplug_libusb.c:629:HPReCheckSerialReaders()
00000011 ifdhandler.c:293:IFDHCloseChannel() usb:0529/0620:libusb-1.0:2:69:0
(lun: 0)
00000061 ccid_usb.c:620:WriteUSB() write failed (2/69): -4 No such device
00000061 readerfactory.c:863:RFUnloadReader() Unloading reader driver.
Segmentation fault (core dumped)


root@laptop:~# gdb /usr/local/sbin/pcscd /core
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/local/sbin/pcscd...done.
[New LWP 28956]
[New LWP 28896]
[New LWP 28334]
[New LWP 28304]
[New LWP 28294]
[New LWP 28214]
[New LWP 28167]
[New LWP 28164]
[New LWP 25727]
[New LWP 28897]
[New LWP 28961]
[New LWP 25728]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `/usr/local/sbin/pcscd -a -f -d'.
Program terminated with signal 11, Segmentation fault.
#0  0xb76e6d87 in pthread_mutex_lock ()
   from /lib/i386-linux-gnu/libpthread.so.0
(gdb) thread apply all bt
Thread 12 (Thread 0xb755db70 (LWP 25728)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb76ec296 in nanosleep () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x08053bb7 in SYS_Sleep (iTimeVal=1) at sys_unix.c:51
#3  0x0805608d in HPEstablishUSBNotifications (pipefd=0xbfe5ce04)
    at hotplug_libusb.c:438
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 11 (Thread 0xb6510b70 (LWP 28961)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb76eb619 in __lll_lock_wait () from
#/lib/i386-linux-gnu/libpthread.so.0
#2  0xb76e6f7d in _L_lock_708 () from /lib/i386-linux-gnu/libpthread.so.0
#3  0xb76e6dc3 in pthread_mutex_lock ()
   from /lib/i386-linux-gnu/libpthread.so.0
#4  0x0805676c in SCardConnect (hContext=16995028,
    szReader=0xb6500374 "Aladdin eToken PRO USB 72K Java 00 00",
    dwShareMode=2, dwPreferredProtocols=3, phCard=0xb64f0358,
    pdwActiveProtocol=0xb64f035c) at winscard.c:295
#5  0x0805a625 in ContextThread (newContext=0x9e3cb50) at winscard_svc.c:439
#6  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 10 (Thread 0xb4d0db70 (LWP 28897)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb4ced318, buffer_size=8,
    filedes=22) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df4cc0) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further
Thread 9 (Thread 0xb755fb40 (LWP 25727)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x08058b7f in ProcessEventsServer (pdwClientID=0xbfe5cebc)
    at winscard_msg_srv.c:202
#3  0x0804a709 in SVCServiceRunLoop () at pcscdaemon.c:89
#4  main (argc=4, argv=0xbfe5cf84) at pcscdaemon.c:621

Thread 8 (Thread 0xb550eb70 (LWP 28164)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb54ee318, buffer_size=8,
    filedes=20) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df4bc0) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further
---Type <return> to continue, or q <return> to quit---

Thread 7 (Thread 0xb450cb70 (LWP 28167)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb44ec318, buffer_size=8,
    filedes=21) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df4a30) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 6 (Thread 0xb350ab70 (LWP 28214)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb34ea318, buffer_size=8,
    filedes=83) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df4ee8) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 5 (Thread 0xb2d09b70 (LWP 28294)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb2ce9318, buffer_size=8,
    filedes=84) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df5168) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 4 (Thread 0xb2508b70 (LWP 28304)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb24e8318, buffer_size=8,
    filedes=85) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df5368) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 3 (Thread 0xb1d07b70 (LWP 28334)):
#0  0xb772e424 in __kernel_vsyscall ()
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb1ce7318, buffer_size=8,
    filedes=86) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df5578) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further
Thread 2 (Thread 0xb6d43b70 (LWP 28896)):
#0  0xb772e424 in __kernel_vsyscall ()
---Type <return> to continue, or q <return> to quit---
#1  0xb762c271 in select () from /lib/i386-linux-gnu/libc.so.6
#2  0x080587e2 in MessageReceive (buffer_void=0xb6d23318, buffer_size=8,
    filedes=17) at winscard_msg.c:435
#3  0x08059601 in ContextThread (newContext=0x9df4b18) at winscard_svc.c:302
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further

Thread 1 (Thread 0xb5d0fb70 (LWP 28956)):
#0  0xb76e6d87 in pthread_mutex_lock ()
   from /lib/i386-linux-gnu/libpthread.so.0
#1  0x0804dfaa in IFDPowerICC (rContext=0x9cfd008, dwAction=500,
    pucAtr=0x80644f0 "", pdwAtrLen=0xb5cef234) at ifdwrapper.c:278
#2  0x080569d5 in SCardConnect (hContext=17024660,
    szReader=0xb5cff374 "Aladdin eToken PRO USB 72K Java 00 00",
    dwShareMode=2, dwPreferredProtocols=3, phCard=0xb5cef358,
    pdwActiveProtocol=0xb5cef35c) at winscard.c:301
#3  0x0805a625 in ContextThread (newContext=0x9e3cae8) at winscard_svc.c:439
#4  0xb76e4d31 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#5  0xb763346e in clone () from /lib/i386-linux-gnu/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind
#further
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to