--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: pcscd, libchipcard, omnicard 4040 sigfaults
- From: Thomas Koch <thomas@koch.ro>
- Date: Tue, 04 Aug 2009 22:07:36 +0200
- Message-id: <20090804200736.7375.81179.reportbug@localhost.localdomain>
Package: pcscd
Version: 1.5.5-1
Severity: important
I've set libchipcard to use pcscd by putting
char resmgr="pcsc" in /etc/chipcard/client/chipcardc.conf.
Now when I run chipcard-tool atr, the pcscd daemon segfaults every time.
running the daemon on the console with --debug:
00000000 pcscdaemon.c:267:main() pcscd set to foreground with debug send
to stderr
00001104 readerfactory.c:1024:RFInitializeReader() Attempting startup of
OMNIKEY CardMan 4040 Socket 0 00 00 using
/usr/lib/pcsc/drivers/ifdok_cm4040.so
00000242 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
OK CardMan 4040 X64 v2.0.0 support@omnikey.com
00000939 readerfactory.c:249:RFAddReader() Using the pcscd polling
thread
00058806 Card ATR: 3B FF 18 00 FF 81 31 FE 45 65 63 11 08 66 01 56 00 11
37 20 04 23 06 20 3A
00004518 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
00084429 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0002
00001126 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00001133 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00001154 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00002950 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0002
00001135 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00001154 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x0483, PID: 0x2016
00000931 hotplug_libhal.c:318:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
11198641 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel
packet arrival
00000038 winscard_msg_srv.c:248:SHMProcessEventsServer()
SHMProcessCommonChannelRequest detects: 8
00000008 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread
creation is requested: 8
00000069 winscard_svc.c:133:ContextThread() Thread is started: 8
00000063 winscard_msg_srv.c:317:SHMProcessEventsContext() command
CMD_VERSION received by client 8
00000008 winscard_svc.c:189:ContextThread() Client is protocol version
3:0
00000077 winscard_msg_srv.c:317:SHMProcessEventsContext() command
ESTABLISH_CONTEXT received by client 8
00000025 winscard.c:242:SCardEstablishContext() Establishing Context:
17014563
00000177 winscard_msg_srv.c:317:SHMProcessEventsContext() command
CONNECT received by client 8
00000012 winscard.c:303:SCardConnect() Attempting Connect to OMNIKEY
CardMan 4040 Socket 0 00 00 using protocol: 2
00000023 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00013556 winscard.c:451:SCardConnect() Active Protocol: T=1
00000018 winscard.c:461:SCardConnect() hCard Identity: 152ed
00000712 winscard_msg_srv.c:317:SHMProcessEventsContext() command
CONTROL_EXTENDED received by client 8
running the daemon in gdb:
run -f
<SNIP/>
OK CardMan 4040 X64 v2.0.0 support@omnikey.com
[New Thread 0x7ffff65c8950 (LWP 7362)]
[New Thread 0x7ffff5dc7950 (LWP 7363)]
[New Thread 0x7ffff55c6950 (LWP 7365)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff55c6950 (LWP 7365)]
0x0000000000000000 in ?? ()
(gdb) backtrace
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff55a57f0 in ?? ()
#2 0x000000000000012c in ?? ()
#3 0x00000000006a92e0 in ?? ()
#4 0x00007ffff7ecbbb5 in UpdateProtocolOptions () from
/usr/lib/pcsc/drivers/ifdok_cm4040.so
#5 0x00007ffff7ecc60c in PC_to_RDR_SetParameters () from
/usr/lib/pcsc/drivers/ifdok_cm4040.so
#6 0x000000000000012c in ?? ()
#7 0x0000000042000d48 in ?? ()
#8 0x0000000000000000 in ?? ()
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (1000, 'stable'), (990, 'unstable'), (700, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pcscd depends on:
ii hal 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer
ii libc6 2.9-13 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.14-3 simple interprocess messaging syst
ii libhal1 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii pcsc-omnikey 1:2-4 PC/SC driver for Omnikey Cardman S
pcscd recommends no packages.
pcscd suggests no packages.
-- no debconf information
--- End Message ---