On 29/01/07, Olivier REMY <[EMAIL PROTECTED]> wrote:
Hello,
Hi,
I have a card reader ACS ACR38. I have pcsc lite and the driver
(http://www.acs.com.hk/download/ACR38_LINUX_100709_P.tar.gz)
installed.
When i run pcscd i have an error :
pcscdaemon.c:319:main() pcscd set to foreground with debug send to stderr
pcscdaemon.c:533 pcsc-lite 1.3.3 daemon ready.
hotplug_libusb.c:446:HPAddHotPluggable() Adding USB device:
2:2
readerfactory.c:1108:RFInitializeReader() Attempting startup of ACS ACR38U
00 00 using
/usr/local/pcsc/drivers/ACR38UDriver.bundle/Contents/Linux/ACR38UDriver
readerfactory.c:943:RFBindFunctions() Loading IFD Handler 2.0
Cannot Open USB Path Directory
Segmentation fault
Do you have a solution ?
The "Cannot Open USB Path Directory" error message comes from the ACS driver.
file ./src/driver/usblinux.c:
dir = opendir(PCSCLITE_USB_PATH);
if (!dir)
{
printf("Cannot Open USB Path Directory\n");
}
while ((entry = readdir(dir)) != NULL) {
/* Skip anything starting with a . */
if (entry->d_name[0] == '.')
continue;
The bug is clear. The code test if dir is NULL, prints an error
message and then continue.
readdir() will then fail and entry will be NULL. And entry->d_name will crash.
You should report the bug to ACS or fix it yourself. That will solve
the crash but not your problem.
It looks like the directory /proc/bus/usb is not available on your
system. Do you use Linux?
Bye
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle