pcscd assert failure: *** glibc detected *** /usr/sbin/pcscd: free(): invalid pointer: 0x097c6e88 ***

Bug #551940 reported by Märt Suga
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libusb
Confirmed
Unknown
pcsc-lite (Ubuntu)
New
Medium
Unassigned

Bug Description

pcscd sometimes crashes at startup

ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: pcscd 1.5.3-1ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-18.27-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-18-generic i686
NonfreeKernelModules: wl nvidia
Architecture: i386
AssertionMessage: *** glibc detected *** /usr/sbin/pcscd: free(): invalid pointer: 0x097c6e88 ***
CrashCounter: 1
Date: Tue Mar 30 21:24:59 2010
ExecutablePath: /usr/sbin/pcscd
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
ProcCmdline: /usr/sbin/pcscd
ProcEnviron: PATH=(custom, no user)
Signal: 6
SourcePackage: pcsc-lite
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libc.so.6
 abort () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
Title: pcscd assert failure: *** glibc detected *** /usr/sbin/pcscd: free(): invalid pointer: 0x097c6e88 ***
UserGroups:

Revision history for this message
Märt Suga (mart-suga) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __kernel_vsyscall ()
 *__GI_raise (sig=6)
 *__GI_abort () at abort.c:92
 __libc_message (do_abort=2,
 malloc_printerr (action=<value optimized out>,

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in pcsc-lite (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Märt Suga (mart-suga)
visibility: private → public
Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

What smart card reader is connected to the system?

What smart card driver is used?

Revision history for this message
Märt Suga (mart-suga) wrote :

Reader is: SCM Microsystems, Inc. SCR331-LC1 SmartCard Reader
But i don't think the problem is with a specific reader. pcscd actually crashes very randomly at startup (sometimes crashes, sometimes not).
After the crash "opensc-tool --list-readers" only shows: "No smart card readers found." with any card reader.
When I try to wake pcscd up with: "sudo service pcscd restart" it still does not work. Only restart helps.

But pcscd hasn't crashed for few days now. I will let know if it crahes one more time.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

What smart card DRIVER is used?

Revision history for this message
Märt Suga (mart-suga) wrote :

Here is my working "opensc-tool --list-readers" output:

Nr. Driver Features Name
0 pcsc SCM SCR 3310 (21120518102795) 00 00

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

It looks like the driver is libccid.
What is the result of:

  $ ls /usr/lib/pcsc/drivers/

Do you also have the crash with pcsc-lite 1.5.5?
This version is not yet in Ubuntu but is available since July 2009 from https://alioth.debian.org/frs/?group_id=30105

Revision history for this message
Märt Suga (mart-suga) wrote :

$ ls /usr/lib/pcsc/drivers/
ifd-ccid.bundle serial

I have not tried 1.5.5 yet. I am not sure how to build the package for Ubuntu.

Revision history for this message
Märt Suga (mart-suga) wrote :

I now installed libpcsclite1 1.5.5-3 and pcscd 1.5.5-3 from debian sid. I will test it for a week and let You know if it still crashes.

Revision history for this message
Märt Suga (mart-suga) wrote :

It seems to have problems with autostart now. When I attach the reader, it still says "No smart card readers found." but after running "sudo service pcscd restart" it now at least starts working correctly. Haven't noticed any crashes since upgrade.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

What do you call "autostart"?
Is it starting pcscd during boot?

Revision history for this message
Märt Suga (mart-suga) wrote :

It does not start at boot, but it should, thats the problem now. I noticed these lines in user.log:

Apr 28 21:09:38 mart-laptop pcscd: hotplug_libhal.c:562:HPRegisterForHotplugEvents() Could not initialise connection to hald.
Apr 28 21:09:38 mart-laptop pcscd: hotplug_libhal.c:563:HPRegisterForHotplugEvents() Normally this means the HAL daemon (hald) is not running or not ready.
Apr 28 21:09:38 mart-laptop pcscd: pcscdaemon.c:531:main() SVCServiceRunLoop returned

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

This is a known problem between pcscd and hald. But I could not find the Ubuntu bug right now.

So you confirm that the initial problem "assert failure: *** glibc detected *** /usr/sbin/pcscd: free(): invalid pointer: 0x097c6e88 ***" is fixed in pcsc-lite 1.5.5?

Revision history for this message
Märt Suga (mart-suga) wrote :

I suppose this is the bug You are talking about: https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/506908
I guess that the debian sid package is not compiled with "--without-hal", thats why it does not start at boot.

And pcscd hasn't crashed at startup since it does not start at boot so I am unable to test if it is fixed.

Can You give me instructions how to compile Intrepid packages libpcsclite1 1.5.5 and pcscd 1.5.5 with "--without-hal" so I can test if the startup works and therefore test if it crashes after login.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

- Get the 3 files from http://packages.debian.org/source/sid/pcsc-lite
- $ dpkg -x pcsc-lite_1.5.5-3.dsc
- edit debian/rules to add --disable-libhal to the ./configure line
- $ apt-get build-dep pcscd
- $ debuild

Revision history for this message
Märt Suga (mart-suga) wrote :

Seems to work correctly for the moment. Tried a few restarts and pcscd started every time - no crash at login. Just in case I will let it run for a few days to make sure it won't crash anymore.

However, I have noticed a side-effect:
When running "pkcs15-tool --list-certificates" for the first time after login and inserting the card I get this:

Using reader with a card: SCM SCR 3310 (21120518102795) 00 00
Failed to connect to card: Unresponsive card (correctly inserted?)

The second time works correctly. It does not seem to affect anything, but it hasn't happened with previous versions.

Revision history for this message
Märt Suga (mart-suga) wrote :

Looks like we are still in the beginning. Today pcscd does not start at all - neither automatically nor manually.
user.log looks like this:

Apr 28 18:01:11 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/004): No such device
Apr 28 19:43:46 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/005): No such device
Apr 28 19:44:14 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/006): No such device
Apr 28 21:09:38 mart-laptop pcscd: hotplug_libhal.c:562:HPRegisterForHotplugEvents() Could not initialise connection to hald.
Apr 28 21:09:38 mart-laptop pcscd: hotplug_libhal.c:563:HPRegisterForHotplugEvents() Normally this means the HAL daemon (hald) is not running or not ready.
Apr 28 21:09:38 mart-laptop pcscd: pcscdaemon.c:531:main() SVCServiceRunLoop returned
Apr 28 22:29:08 mart-laptop pcscd: hotplug_libhal.c:562:HPRegisterForHotplugEvents() Could not initialise connection to hald.
Apr 28 22:29:08 mart-laptop pcscd: hotplug_libhal.c:563:HPRegisterForHotplugEvents() Normally this means the HAL daemon (hald) is not running or not ready.
Apr 28 22:29:08 mart-laptop pcscd: pcscdaemon.c:531:main() SVCServiceRunLoop returned
Apr 28 23:59:25 mart-laptop pcscd: pcscdaemon.c:438:main() cannot create /var/run/pcscd/pcscd.pid: Permission denied
Apr 28 23:59:25 mart-laptop pcscd: pcscdaemon.c:454:main() cannot create /var/run/pcscd/pcscd.events: Permission denied
Apr 29 09:03:11 mart-laptop pcscd: hotplug_libhal.c:562:HPRegisterForHotplugEvents() Could not initialise connection to hald.
Apr 29 09:03:11 mart-laptop pcscd: hotplug_libhal.c:563:HPRegisterForHotplugEvents() Normally this means the HAL daemon (hald) is not running or not ready.
Apr 29 09:03:11 mart-laptop pcscd: pcscdaemon.c:531:main() SVCServiceRunLoop returned
Apr 29 09:56:04 mart-laptop pcscd: commands.c:2045:SetParameters Card absent or mute
Apr 29 09:56:50 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/004): No such device
Apr 29 09:56:50 mart-laptop pcscd: ifdwrapper.c:469:IFDStatusICC() Card not transacted: 617
Apr 29 09:56:51 mart-laptop pcscd: eventhandler.c:333:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 (21120518102795) 00 00
Apr 29 09:56:51 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/004): No such device
Apr 29 09:59:44 mart-laptop pcscd: commands.c:2045:SetParameters Card absent or mute
Apr 29 10:59:51 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/004): No such device
Apr 29 10:59:51 mart-laptop pcscd: ifdwrapper.c:469:IFDStatusICC() Card not transacted: 617
Apr 29 10:59:52 mart-laptop pcscd: eventhandler.c:333:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 (21120518102795) 00 00
Apr 29 10:59:53 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/004): No such device

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

Your pcscd is using libhal. You were supposed to recompile version 1.5.5 with libusb instead.
Have you rebuild and installed the packages for 1.5.5?

Revision history for this message
Märt Suga (mart-suga) wrote :

Here is the part of my debian/rules I used:

 ./configure $(confflags) \
  --enable-confdir=/var/lib/pcscd \
  --prefix=/usr \
  --disable-libhal \
  --enable-usbdropdir=/usr/lib/pcsc/drivers \
  INSTALL_PROGRAM="$(INSTALL_PROGRAM)" \
  CFLAGS="${CFLAGS}" \
  LDFLAGS="-lpthread"

I do not understand why the --disable-libhal did not work.

Revision history for this message
Märt Suga (mart-suga) wrote :

Here is what i did:
Completely removed libhal-dev
Here is bit of my build log:

...
PTHREAD_CFLAGS:
PTHREAD_LIBS:
PCSC_ARCH: Linux

libhal support: no
libusb support: yes
SCF reader support: false
USB drop directory: /usr/lib/pc
...

Completely reinstalled pcscd, libpsclite1
And still, here is my "pcscd -v" output

$ pcscd -v
pcsc-lite version 1.5.5.
Copyright (C) 1999-2002 by David Corcoran <email address hidden>.
Copyright (C) 2001-2008 by Ludovic Rousseau <email address hidden>.
Copyright (C) 2003-2004 by Damien Sauveron <email address hidden>.
Report bugs to <email address hidden>.
Enabled features: Linux libhal usbdropdir=/usr/local/pcsc/drivers confdir=/etc ipcdir=/var/run/pcscd

How is it possible, that libhal is enabled even if I even do not have the libhal-dev package?

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

I guess you have 2 pcscd installed on your system.
Try:
$ type -a pcscd

Revision history for this message
Märt Suga (mart-suga) wrote :

Looks like thats the problem:

pcscd on /usr/local/sbin/pcscd
pcscd on /usr/sbin/pcscd

I will try to remove the "bad" one.

Revision history for this message
Märt Suga (mart-suga) wrote :

Ok, no I removed the faulty one and installed the right one:
$ pcscd -v
pcsc-lite version 1.5.5.
Copyright (C) 1999-2002 by David Corcoran <email address hidden>.
Copyright (C) 2001-2008 by Ludovic Rousseau <email address hidden>.
Copyright (C) 2003-2004 by Damien Sauveron <email address hidden>.
Report bugs to <email address hidden>.
Enabled features: Linux libusb usbdropdir=/usr/lib/pcsc/drivers confdir=/var/lib/pcscd ipcdir=/var/run/pcscd

But here is the new problem. Pcscd does not start anymore. Instead I get this:
syslog:

May 3 16:50:25 mart-laptop kernel: [ 358.792351] pcscd[2566]: segfault at 5006080e ip 00ab1c58 sp b78de840 error 4 in libusb-0.1.so.4.4.4[ab0000+6000]

kern.log
mart-laptop kernel: [ 358.792351] pcscd[2566]: segfault at 5006080e ip 00ab1c58 sp b78de840 error 4 in libusb-0.1.so.4.4.4[ab0000+6000]

messages:
mart-laptop kernel: [ 358.792351] pcscd[2566]: segfault at 5006080e ip 00ab1c58 sp b78de840 error 4 in libusb-0.1.so.4.4.4[ab0000+6000]

Revision history for this message
Märt Suga (mart-suga) wrote :

It seems to throw different errors every time I try to start pcscd:

user.log:
May 4 09:39:50 mart-laptop pcscd: commands.c:1010:CmdGetSlotStatus error on byte 32
May 4 09:39:50 mart-laptop pcscd: ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
May 4 09:39:50 mart-laptop pcscd: eventhandler.c:180:EHSpawnEventHandler() Initial Check Failed on SCM SCR 3310 (21120518102795) 00 00
May 4 09:39:50 mart-laptop pcscd: readerfactory.c:257:RFAddReader() SCM SCR 3310 (21120518102795) init failed.
May 4 09:39:50 mart-laptop pcscd: eventhandler.c:111:EHDestroyEventHandler() Thread never started (reader init failed?)

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

I do not have enough logs.
Edit the file /etc/libccid_Info.plist and change the value of ifdLogLevel from 0x0003 to 0x000f

This will generate "much more" of logs in user.log
Send me the logs from the start of pcscd, not just the latest lines.

Revision history for this message
Märt Suga (mart-suga) wrote :

Doesn't seem to help. Only thing in user.log is:

May 4 16:21:23 mart-laptop pcscd: ccid_usb.c:596:WriteUSB() usb_bulk_write(003/005): No such device
May 4 16:21:23 mart-laptop pcscd: ifdwrapper.c:469:IFDStatusICC() Card not transacted: 617
May 4 16:21:24 mart-laptop pcscd: eventhandler.c:333:EHStatusHandlerThread() Error communicating to: SCM SCR 3310 (21120518102795) 00 00

Revision history for this message
Märt Suga (mart-suga) wrote :

Is there a command to start pcscd in foreground with all log levels enabled?

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

pcscd --foreground --debug --apdu

See http://pcsclite.alioth.debian.org/ccid.html#support

Revision history for this message
Märt Suga (mart-suga) wrote :

Here is exactly what I did:

mart@mart-laptop:~$ LIBCCID_ifdLogLevel=0x0007
mart@mart-laptop:~$ export LIBCCID_ifdLogLevel
mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.c:224:DebugLogSetLevel() debug level=debug
00000029 debuglog.c:253:DebugLogSetCategory() Debug options: APDU
00000336 pcscdaemon.c:505:main() pcsc-lite 1.5.3 daemon ready.
00136403 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival
00000026 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5
00000007 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5
00000038 winscard_svc.c:133:ContextThread() Thread is started: 5
00000031 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5
00000008 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
00000063 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5
00000022 winscard.c:242:SCardEstablishContext() Establishing Context: 17000575
00000264 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 003:004
00005073 readerfactory.c:1024:RFInitializeReader() Attempting startup of SCM SCR 3310 (21120518102795) 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000153 readerfactory.c:877:RFBindFunctions() Loading IFD Handler 3.0
00000034 ifdhandler.c:1532:init_driver() Driver version: 1.3.11
00000333 ifdhandler.c:1545:init_driver() LogLevel: 0x000F
00000290 ifdhandler.c:1565:init_driver() DriverOptions: 0x0000
00000011 ifdhandler.c:82:IFDHCreateChannelByName() lun: 0, device: usb:04e6/5116:libusb:003:004
00000013 ccid_usb.c:162:OpenUSBByName() Reader index: 0, Device: usb:04e6/5116:libusb:003:004
Segmentation fault
mart@mart-laptop:~$

Revision history for this message
Märt Suga (mart-suga) wrote :
Download full text (5.2 KiB)

The previous output was when reader was plugged
...and here is output when reader is NOT plugged...

mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.c:224:DebugLogSetLevel() debug level=debug
00000029 debuglog.c:253:DebugLogSetCategory() Debug options: APDU
00000334 pcscdaemon.c:505:main() pcsc-lite 1.5.3 daemon ready.
00139695 hotplug_libusb.c:403:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000018 hotplug_libusb.c:412:HPEstablishUSBNotifications() Polling forced every 1 second(s)
00570934 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival
00000065 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5
00000019 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5
00000146 winscard_svc.c:133:ContextThread() Thread is started: 5
00000068 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5
00000019 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
00000115 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5
00000057 winscard.c:242:SCardEstablishContext() Establishing Context: 17023955
*** glibc detected *** pcscd: free(): invalid pointer: 0x08d26098 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xe0f591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xe10de8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xe13ecd]
/lib/libusb-0.1.so.4(usb_destroy_configuration+0xdb)[0x673c6b]
/lib/libusb-0.1.so.4(usb_free_dev+0x22)[0x6733a2]
/lib/libusb-0.1.so.4(usb_find_devices+0xe0)[0x673820]
pcscd[0x804d871]
pcscd[0x804e08a]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0x11596e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xe71a0e]
======= Memory map: ========
00110000-00125000 r-xp 00000000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
00125000-00126000 r--p 00014000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
00126000-00127000 rw-p 00015000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
00127000-00129000 rw-p 00000000 00:00 0
00390000-003ab000 r-xp 00000000 08:03 788317 /lib/ld-2.11.1.so
003ab000-003ac000 r--p 0001a000 08:03 788317 /lib/ld-2.11.1.so
003ac000-003ad000 rw-p 0001b000 08:03 788317 /lib/ld-2.11.1.so
00672000-00678000 r-xp 00000000 08:03 788248 /lib/libusb-0.1.so.4.4.4
00678000-00679000 r--p 00005000 08:03 788248 /lib/libusb-0.1.so.4.4.4
00679000-0067b000 rw-p 00006000 08:03 788248 /lib/libusb-0.1.so.4.4.4
00931000-00933000 r-xp 00000000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00933000-00934000 r--p 00001000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00934000-00935000 rw-p 00002000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
009c4000-009c5000 r-xp 00000000 00:00 0 [vdso]
00da4000-00ef7000 r-xp 00000000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00ef7000-00ef8000 ---p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00ef8000-00efa000 r--p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00efa000-00efb000 rw-p 00155000 0...

Read more...

Revision history for this message
Märt Suga (mart-suga) wrote :
Download full text (6.9 KiB)

These where 1.5.3 version logs.

I will now show 1.5.5 version logs, but it looks pretty much the same:

Reader unplugged:

mart@mart-laptop:~$ sudo pcscd --foreground --debug --apdu
00000000 debuglog.c:230:DebugLogSetLevel() debug level=debug
00000030 debuglog.c:259:DebugLogSetCategory() Debug options: APDU
01000847 pcscdaemon.c:512:main() pcsc-lite 1.5.5 daemon ready.
00146083 hotplug_libusb.c:403:HPEstablishUSBNotifications() Driver ifd-ccid.bundle does not support IFD_GENERATE_HOTPLUG. Using active polling instead.
00000018 hotplug_libusb.c:412:HPEstablishUSBNotifications() Polling forced every 1 second(s)
00346049 winscard_msg_srv.c:239:SHMProcessEventsServer() Common channel packet arrival
00000070 winscard_msg_srv.c:248:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 5
00000018 pcscdaemon.c:147:SVCServiceRunLoop() A new context thread creation is requested: 5
00000125 winscard_svc.c:133:ContextThread() Thread is started: 5
00000075 winscard_msg_srv.c:317:SHMProcessEventsContext() command CMD_VERSION received by client 5
00000019 winscard_svc.c:189:ContextThread() Client is protocol version 3:0
00000107 winscard_msg_srv.c:317:SHMProcessEventsContext() command ESTABLISH_CONTEXT received by client 5
00000057 winscard.c:242:SCardEstablishContext() Establishing Context: 16994815
*** glibc detected *** pcscd: free(): invalid pointer: 0x08ffcee8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x17b591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x17cde8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x17fecd]
/lib/libusb-0.1.so.4(usb_destroy_configuration+0xdb)[0x819c6b]
/lib/libusb-0.1.so.4(usb_free_dev+0x22)[0x8193a2]
/lib/libusb-0.1.so.4(usb_find_devices+0xe0)[0x819820]
pcscd[0x804d841]
pcscd[0x804e05a]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0x38b96e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0x1dda0e]
======= Memory map: ========
00110000-00263000 r-xp 00000000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00263000-00264000 ---p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00264000-00266000 r--p 00153000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00266000-00267000 rw-p 00155000 08:03 789221 /lib/tls/i686/cmov/libc-2.11.1.so
00267000-0026a000 rw-p 00000000 00:00 0
00386000-0039b000 r-xp 00000000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039b000-0039c000 r--p 00014000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039c000-0039d000 rw-p 00015000 08:03 789235 /lib/tls/i686/cmov/libpthread-2.11.1.so
0039d000-0039f000 rw-p 00000000 00:00 0
00483000-00485000 r-xp 00000000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00485000-00486000 r--p 00001000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
00486000-00487000 rw-p 00002000 08:03 789224 /lib/tls/i686/cmov/libdl-2.11.1.so
004c4000-004c5000 r-xp 00000000 00:00 0 [vdso]
005a6000-005c3000 r-xp 00000000 08:03 794261 /lib/libgcc_s.so.1
005c3000-005c4000 r--p 0001c000 08:03 794261 /lib/libgcc_s.so.1
005c4000-005c5000 rw-p 0001d000 08:03 794261 /lib/libgcc_s.so.1
00818000-0081e000 r-xp 00000000 08:03 788248 /lib/libusb-0.1.so.4.4.4
0081e000-0081f000 r--p 00005000...

Read more...

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

It looks like a bug in /lib/libusb-0.1.so.4 now, not in pcsc-lite.

You will need to use gdb to have a better backtrace.

Changed in libusb:
status: Unknown → New
Revision history for this message
Märt Suga (mart-suga) wrote :

Seems that libusb-0.1 is unsupported for a very long time now. Here is the answer from libusb developers:

It seems that you are using libusb-0.1 which is not maintained since a long time and is not really supported.

Please uninstall libusb-0.1 and instead install libusb-1.0 (version 1.0.8 released yesterday) and also install libusb-compat-0.1 (version 1.0.3) which provides backwards compatibility for programs that were linked against libusb-0.1.

---
So if it is not supported anymore why does Ubuntu use it?

Revision history for this message
Ludovic Rousseau (ludovic-rousseau+ubuntu-one) wrote :

libusb worked great in previous Ubuntu versions. Something changed in Ubuntu 10.04 that makes libusb 0.1 fails.

Note that pcsc-lite should use libhal instead of libusb but libhal has been deprecated in Ubuntu 10.04.
The long term plan is to migrate to libudev. But I have not yet started to work on it.

Changed in libusb:
status: New → Confirmed
Revision history for this message
Märt Suga (mart-suga) wrote :

It has not crashed for a long time now. I suspect it has something to do with bug https://bugs.launchpad.net/libusb/+bug/427805

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.