Selon Mark Brown <[EMAIL PROTECTED]>:
> Console output:
>
> pcscdaemon.c:297:main() pcscd set to foreground with debug send to stderr
> debuglog.c:213:DebugLogSetLevel() debug level=debug
> pcscdaemon.c:500:main() pcsc-lite 1.4.2 daemon ready.
> [New Thread 813900992 (LWP 30547)]
> hotplug_libusb.c:454:HPAddHotPluggable() Adding USB device: 002:003
> readerfactory.c:1113:RFInitializeReader() Attempting startup of GemPC430 00
> 00 using
> /usr/lib/pcsc/drivers/ifd-GemPC430.bundle/Contents/Linux/libGemPC430.so.1.0.1
> readerfactory.c:980:RFBindFunctions() Loading IFD Handler 3.0
> ifdhandler.c:51:IFDHCreateChannelByName() lun: 0, device:
> usb:08e6/0430:libusb:002:003
> libusb_wrap.c:93:OpenUSB() Lun: 0, Device: usb:08e6/0430:libusb:002:003
> libusb_wrap.c:183:OpenUSB() Trying to open USB device: 002/003
> libusb_wrap.c:210:OpenUSB() Using USB device: 002/003
> GCCmds.c:406:GCCmdSetMode()
> -> 000000 03 01 00 01
> <- 000000 02 00 01
> GCCmds.c:415 GCCmdSetMode (null)
> GCCmds.c:328:GCCmdGetOSVersion()
> -> 000000 05 22 05 3F E0 10
> <- 000000 11 00 47 65 6D 55 73 62 2D 52 31 2E 30 34 2D 47 4D 20
> GCCmds.c:340 GCCmdGetOSVersion (null)

The last 16 bytes are the firmware version string. So the reader is working
correctly.

> Program received signal SIGSEGV, Segmentation fault.

But the program do not execute the line 53 of GemPC430/GemPC430Utils.c

    DEBUG_CRITICAL2("OS string: %s", os_version);

And I have no idea why.

> Backtrace:
>
> #0  0x00000010 in ?? ()
> #1  0x0fdde2e8 in IFDHCreateChannelByName (Lun=0, lpcDevice=0x0)
>     at ifdhandler.c:63
> #2  0x100077f0 in IFDOpenIFD (rContext=0x100b0008) at ifdwrapper.c:158
> #3  0x1000a9fc in RFInitializeReader (rContext=0x0) at readerfactory.c:1147
> #4  0x1000b3f8 in RFAddReader (lpcReader=0x100b6cf0 "GemPC430",
>     dwPort=2097152,
>     lpcLibrary=0x100b7a08
>
"/usr/lib/pcsc/drivers/ifd-GemPC430.bundle/Contents/Linux/libGemPC430.so.1.0.1",
> lpcDevice=0x30831b10 "usb:08e6/0430:libusb:002:003")
>     at readerfactory.c:243
> #5  0x10006a44 in HPAddHotPluggable (dev=0x100c6878,
>     bus_device=0x30831c4c "002:003", driver=0x100bdfa0) at
> hotplug_libusb.c:498
> #6  0x10006bd0 in HPRescanUsbBus () at hotplug_libusb.c:303
> #7  0x10006da8 in HPEstablishUSBNotifications () at hotplug_libusb.c:391
> #8  0x0ffcc7b4 in start_thread () from /lib/libpthread.so.0
> #9  0x0fee29e4 in clone () from /lib/libc.so.6
>
> Looks rather like something trampled over the stack...  I'll try to
> investigate further.

frame #0 is corrupted so not very helpful :-(

I don't really know what to suggest next. You can try to execute the function
OpenGemPC430ByName() from GemPC430/GemPC430Utils.c step by step.

thanks

PS: I am the Debian maintainer and also the upstream author.

--
Ludovic Rousseau                           [EMAIL PROTECTED]
-- Normaliser Unix c'est comme pasteuriser le Camembert, L.R. --

Reply via email to