Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-04-04 Thread Michael Meskes
 The problem is not with pcscd but with the libifd-cyberjack driver.
 This driver is not provided by Debian AFAIKS. You should report the
 problem to the libifd-cyberjack author.

OK, will do.

 The bug is not in pcsc-lite. Closing again.

Sure, this explains the problem. Thanks for investigating.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-04-01 Thread Michael Meskes
 Please try the attached patch

As you probably expected this prevents the segfault, but doesn't make pcscd 
work.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-04-01 Thread Michael Meskes
 Follow http://pcsclite.alioth.debian.org/ccid.html#support

Here's the output:

...
0321 hotplug_libudev.c:258:get_driver() Looking for a driver for VID: 
0x0C4B, PID: 0x0300, path: /dev/bus/usb/002/005
0064 hotplug_libudev.c:258:get_driver() Looking for a driver for VID: 
0x0C4B, PID: 0x0300, path: /dev/bus/usb/002/005
0016 hotplug_libudev.c:309:HPAddDevice() Adding USB device: REINER SCT 
cyberJack pp_a
0089 readerfactory.c:934:RFInitializeReader() Attempting startup of REINER 
SCT cyberJack pp_a (7607602131) 00 00 using 
/usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so


   
3557 readerfactory.c:824:RFBindFunctions() Loading IFD Handler 3.0
CTAPI: Could not open device at 0
00699458 readerfactory.c:965:RFInitializeReader() Open Port 0x20 Failed 
(usb:0c4b/0300:libudev:0:/dev/bus/usb/002/005)
0018 readerfactory.c:275:RFAddReader() REINER SCT cyberJack pp_a 
(7607602131) init failed.
0017 readerfactory.c:985:RFUnInitializeReader() Attempting shutdown of 
REINER SCT cyberJack pp_a (7607602131) 00 00.
0012 readerfactory.c:861:RFUnloadReader() Unloading reader driver.
0200 hotplug_libudev.c:377:HPAddDevice() Failed adding USB device: REINER 
SCT cyberJack pp_a
0421 hotplug_libudev.c:258:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/002/002
...

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-04-01 Thread Michael Meskes
 I guess pcscd logs many other things but you strip it to the 4 last lines.
 Please include the full pcscd log.

It is included. There are no log entries other than the ones in my bug report.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-03-31 Thread Michael Meskes
Package: pcscd
Version: 1.7.1.-1
Severity: important

Here's the log:

Mar 31 11:23:37 feivel pcscd: readerfactory.c:965:RFInitializeReader() Open 
Port 0x20 Failed (usb:0c4b/0300:libudev:0:/dev/bus/usb/002/004)
Mar 31 11:23:37 feivel pcscd: readerfactory.c:275:RFAddReader() REINER SCT 
cyberJack pp_a (7607602131) init failed.
Mar 31 11:23:37 feivel pcscd: hotplug_libudev.c:377:HPAddDevice() Failed adding 
USB device: REINER SCT cyberJack pp_a
Mar 31 11:23:37 feivel kernel: [ 7211.956358] pcscd[28442]: segfault at 10 ip 
0040d22b sp 7fffb3b46fb0 error 4 in pcscd[40+1a000]

Downgrading to 1.7.0-2 results in the same pcscd error messages but without the 
segfault.

Downgrading to 1.6.7-1 makes it work again.

Michael

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pcscd depends on:
ii  hal   0.5.14-5   Hardware Abstraction Layer
ii  libc6 2.11.2-13  Embedded GNU C Library: Shared lib
ii  libccid [pcsc-ifd-handler]1.4.2-2PC/SC driver for USB CCID smart ca
ii  libdbus-1-3   1.4.6-1simple interprocess messaging syst
ii  libhal1   0.5.14-5   Hardware Abstraction Layer - share
ii  lsb-base  3.2-27 Linux Standard Base 3.2 init scrip

pcscd recommends no packages.

pcscd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-03-31 Thread Ludovic Rousseau

Le 31/03/11 12:00, Michael Meskes a écrit :

Package: pcscd
Version: 1.7.1.-1
Severity: important

Here's the log:

Mar 31 11:23:37 feivel pcscd: readerfactory.c:965:RFInitializeReader() Open 
Port 0x20 Failed (usb:0c4b/0300:libudev:0:/dev/bus/usb/002/004)
Mar 31 11:23:37 feivel pcscd: readerfactory.c:275:RFAddReader() REINER SCT 
cyberJack pp_a (7607602131) init failed.
Mar 31 11:23:37 feivel pcscd: hotplug_libudev.c:377:HPAddDevice() Failed adding 
USB device: REINER SCT cyberJack pp_a
Mar 31 11:23:37 feivel kernel: [ 7211.956358] pcscd[28442]: segfault at 10 ip 
0040d22b sp 7fffb3b46fb0 error 4 in pcscd[40+1a000]

Downgrading to 1.7.0-2 results in the same pcscd error messages but without the 
segfault.


Can you rebuild from source in debug more and send me a gdb backtrace 
please? You do not need to install pcscd. Just run it from the build 
directory.


I guess pcscd logs many other things but you strip it to the 4 last lines.
Please include the full pcscd log.

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

Thanks

--
 Dr. Ludovic Rousseau



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#620232: pcscd fails to work with REINER SCT cyberJack

2011-03-31 Thread Ludovic Rousseau

Le 31/03/11 18:39, Ludovic Rousseau a écrit :

Le 31/03/11 12:00, Michael Meskes a écrit :

Package: pcscd
Version: 1.7.1.-1
Severity: important

Here's the log:

Mar 31 11:23:37 feivel pcscd: readerfactory.c:965:RFInitializeReader()
Open Port 0x20 Failed (usb:0c4b/0300:libudev:0:/dev/bus/usb/002/004)
Mar 31 11:23:37 feivel pcscd: readerfactory.c:275:RFAddReader() REINER
SCT cyberJack pp_a (7607602131) init failed.
Mar 31 11:23:37 feivel pcscd: hotplug_libudev.c:377:HPAddDevice()
Failed adding USB device: REINER SCT cyberJack pp_a
Mar 31 11:23:37 feivel kernel: [ 7211.956358] pcscd[28442]: segfault
at 10 ip 0040d22b sp 7fffb3b46fb0 error 4 in
pcscd[40+1a000]

Downgrading to 1.7.0-2 results in the same pcscd error messages but
without the segfault.


Can you rebuild from source in debug more and send me a gdb backtrace
please? You do not need to install pcscd. Just run it from the build
directory.

I guess pcscd logs many other things but you strip it to the 4 last lines.
Please include the full pcscd log.

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


Please try the attached patch

--
 Dr. Ludovic Rousseau
Index: src/hotplug_libudev.c
===
--- src/hotplug_libudev.c   (revision 5678)
+++ src/hotplug_libudev.c   (working copy)
@@ -376,7 +376,7 @@ static void HPAddDevice(struct udev_devi
Log2(PCSC_LOG_ERROR, Failed adding USB device: %s,
driver-readerName);
 
-   if (driver != classdriver)
+   if (classdriver  driver != classdriver)
{
/* the reader can also be used by the a class driver */
ret = RFAddReader(fullname, PCSCLITE_HP_BASE_PORT + i,