Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-26 Thread Ludovic Rousseau
Le 24/03/11 23:23, Harald Welte a écrit : So as a summary, I think there are still two separate, problems: 1) the fact that pcscd does not handle the case that devpath == NULL, which can be worked around using your patch Can you try the snapshot version available at

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-26 Thread Ludovic Rousseau
Le 26/03/11 20:41, Ludovic Rousseau a écrit : 2) the question why pcscd is trying to use _only_ the OpenCT ifd_handler, even when openct is not started (which it detects!) I will work on it. Done in revision 5675 available from http://ludovic.rousseau.free.fr/softwares/pcsc-lite/ -- Dr.

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-24 Thread Harald Welte
Hi Ludovic, this is the backtrace from the original debian package pccsd 1.7.0-2 at the time I plug in the reader: (gdb) run -f -d -a Starting program: /usr/sbin/pcscd -f -d -a [Thread debugging using libthread_db enabled] debuglog.c:277:DebugLogSetLevel() debug level=debug 0046

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-24 Thread Ludovic Rousseau
Le 24/03/11 21:35, Harald Welte a écrit : With your patch, pcscd no longer crashes at hot-plug time... but it also fails to use the reader: I am not surprised. The devpath is really used by the code. So, as it seems, somehow, if openct is installed (and not running), pcscd will not try to

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-24 Thread Harald Welte
Hi Ludovic, I really appreciate your quick feedback. I only hope I could have that kind of quick response for bugreports against my own free software projects. On Thu, Mar 24, 2011 at 10:59:36PM +0100, Ludovic Rousseau wrote: So, as it seems, somehow, if openct is installed (and not running),

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-23 Thread Ludovic Rousseau
Le 22/03/11 11:08, Harald Welte a écrit : Package: pcscd Version: 1.7.0-2 Severity: normal Tags: sid As soon as any of my CCID readers is hot-plugged, pcscd crashes. I've tried this with * Omnikey 3121 * Omnikey 5121 * Omnikey 5321 * Cherry ST-1000 U * Reiner SCT CyberJack USB Log file:

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-23 Thread Harald Welte
Hi Ludovic, thanks for your response. On Wed, Mar 23, 2011 at 02:18:46PM +0100, Ludovic Rousseau wrote: Can you rebuild pcscd in debug mode and run it inside gdb to get a backtrace? I already did that and I already sent another message to this bug indicating where exactly it crashes and

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-23 Thread Ludovic Rousseau
Le 23/03/11 16:31, Harald Welte a écrit : Hi Ludovic, thanks for your response. On Wed, Mar 23, 2011 at 02:18:46PM +0100, Ludovic Rousseau wrote: Can you rebuild pcscd in debug mode and run it inside gdb to get a backtrace? I already did that and I already sent another message to this bug

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-22 Thread Harald Welte
Package: pcscd Version: 1.7.0-2 Severity: normal Tags: sid As soon as any of my CCID readers is hot-plugged, pcscd crashes. I've tried this with * Omnikey 3121 * Omnikey 5121 * Omnikey 5321 * Cherry ST-1000 U * Reiner SCT CyberJack USB Log file: nataraja:~# pcscd -f -a -d

Bug#619241: pcscd crashes at time CCID reader is hot-plugged

2011-03-22 Thread Harald Welte
Trying to debug this further resulted in the following preliminary analysis: In function HPRescanUsbBus(): parent = udev_device_get_devnode(parent); udev_device_get_devnode() returns NULL (which is possible, according to