Looklike issue is at ORANGE color text code in linux_usbfs.c file, it need a
cheque before memcpy "if (!priv->dev_desc) return error"
static int usbfs_get_device_descriptor(struct libusb_device *dev,
unsigned char *buffer) { 265 struct linux_device_priv *priv =
__device_priv(dev); /* return cached copy */ memcpy(
buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH); return 0; }
# gdb /pfrm2.0/bin/pcscd
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
GNU gdb (GDB) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /pfrm2.0/bin/pcscd...done.
(gdb) set args --foreground
(gdb) set verbose
(gdb) run
Starting program: /pfrm2.0/bin/pcscd --foreground
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
td_ta_new failed: application not linked with libthread
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
found)...done.
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
td_ta_new failed: application not linked with libthread
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from system-supplied DSO at 0xffffe000...(no debugging
symbols found)...done.
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
td_ta_new failed: application not linked with libthread
Symbols already loaded for /lib/ld-linux.so.2
Symbols already loaded for /lib/ld-linux.so.2
Reading symbols from /pfrm2.0/lib/libusb-0.1.so.4...done.
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
td_ta_new failed: application not linked with libthread
Loaded symbols for /pfrm2.0/lib/libusb-0.1.so.4
Reading symbols from ./libdl.so.2...(no debugging symbols found)...done.
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
td_ta_new failed: application not linked with libthread
Loaded symbols for ./libdl.so.2
Reading symbols from ./libpthread.so.0...done.
Trying host libthread_db library: libthread_db.so.1.
Host libthread_db.so.1 resolved to: ./libthread_db.so.1.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "./libthread_db.so.1".
Loaded symbols for ./libpthread.so.0
Reading symbols from ./libc.so.6...(no debugging symbols found)...done.
Loaded symbols for ./libc.so.6
Reading symbols from /pfrm2.0/lib/libusb-1.0.so.0...done.
Loaded symbols for /pfrm2.0/lib/libusb-1.0.so.0
Reading symbols from ./librt.so.1...(no debugging symbols found)...done.
Loaded symbols for ./librt.so.1
[New Thread 0xb7e78b90 (LWP 10560)]
Reading in symbols for os/linux_usbfs.c...done.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e78b90 (LWP 10560)]
0xb7e9af7d in usbfs_get_device_descriptor (dev=0x80e8d48,
buffer=0xb7e75eba "]", host_endian=0xb7e75ecc) at os/linux_usbfs.c:265
265 os/linux_usbfs.c: No such file or directory.
in os/linux_usbfs.c
(gdb) bt
Reading in symbols for core.c...done.
Reading in symbols for core.c...done.
Reading in symbols for hotplug_libusb.c...done.
#0 0xb7e9af7d in usbfs_get_device_descriptor (dev=0x80e8d48,
buffer=0xb7e75eba "]", host_endian=0xb7e75ecc) at os/linux_usbfs.c:265
#1 op_get_device_descriptor (dev=0x80e8d48, buffer=0xb7e75eba "]",
host_endian=0xb7e75ecc) at os/linux_usbfs.c:323
#2 0xb7e95149 in usbi_sanitize_device (dev=0x80e8d48) at core.c:534
#3 0xb7e9b402 in enumerate_device (ctx=0x80e8d88, _discdevs=0xb7e77ff0,
busnum=<value optimized out>, devaddr=2 '\002', sysfs_dir=0x0)
at os/linux_usbfs.c:804
#4 0xb7e9b988 in usbfs_get_device_list (ctx=0x80e8c28,
_discdevs=0xb7e78038)
at os/linux_usbfs.c:856
#5 op_get_device_list (ctx=0x80e8c28, _discdevs=0xb7e78038)
at os/linux_usbfs.c:1033
#6 0xb7e956ab in libusb_get_device_list (ctx=0x80e8c28, list=0xb7e78088)
at core.c:605
#7 0xb7fe3007 in find_busses () at core.c:180
#8 usb_find_busses () at core.c:253
#9 0x0804d171 in HPRescanUsbBus () at hotplug_libusb.c:254
#10 0x0804d6c2 in HPEstablishUSBNotifications () at hotplug_libusb.c:393
#11 0xb7fcc283 in start_thread () from ./libpthread.so.0
#12 0xb7f5bc6e in clone () from ./libc.so.6
(gdb)
On Thu, Jan 21, 2010 at 12:39 PM, Ludovic Rousseau <
[email protected]> wrote:
> 2010/1/21 Vasanta <[email protected]>:
> > Loaded latest pcsc-lite 1.5.5, getting seg fault and complaining
> > "Info.plist" not available, any idea how can I generate?
> >
> > #
> > # /pfrm2.0/bin/pcscd -f
> > tokenparser.l:170:LTPBundleFindValueWithKey() Could not open bundle file
> > /usr/local/pcsc/drivers/ifdokccid_lnx-3.4.0.bundle/Contents/Info.plist:
> No
> > such file or directory
> > Segmentation fault
>
> Please run pcscd inside gdb to generate a backtrace and use the
> arguments "--foreground --debug" instead of just "-f"
>
> Thanks
>
> --
> Dr. Ludovic Rousseau
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle