On Wed, Jun 22, 2011 at 1:13 PM, Ludovic Rousseau <
[email protected]> wrote:

> 2011/6/22 Dwi Sasongko Supriyadi <[email protected]>:
> > Hello list,
> > I am building pcsc-lite on our system with buildroot. pcsc-lite compiled
> and
> > installed on the target, but when starting it I got segmentation fault.
> > Following is the log:
> > $ lsusb
> > Bus 001 Device 003: ID 072f:2200
> > Reader: ACR122 P/N: ACR122U-A2NR
> > PCSC-LITE: pcsc-lite-1.7.2
> > configured with: --disable-libudev --enable-libusb --enable-debugatr
> > --disable-serial
> > CCID: ccid-1.4.4
> > # /usr/sbin/pcscd --version
> > pcsc-lite version 1.7.2.
> > Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
> > Copyright (C) 2001-2010 by Ludovic Rousseau <[email protected]>.
> > Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
> > Report bugs to <[email protected]>.
> > Enabled features: Linux arm-unknown-linux-gnu usb libusb
> > usbdropdir=/usr/lib/pcsc/drivers debugatr ipcdir=/var/run/pcscd
> > configdir=/etc/reader.conf.d
> > OS/kernel version:
> > # uname -a
> > Linux srikutil 2.6.28.6 #6 Tue Jun 14 00:54:36 CXT 2011 armv6l GNU/Linux
> > # pcscd --foreground --debug --apdu
> > debuglog.c:277:DebugLogSetLevel() debug level=debug
> > debuglog.c:306:DebugLogSetCategory() Debug options: APDU
> > pcscdaemon.c:550:main() pcsc-lite 1.7.2 daemon ready.
> > Segmentation fault
> > I also enclosed the strace output as reference.
> > Could anyone point me to the root cause of this issue?
>
> A gdb backtrace would help.
>
> Bye
>
>
Ah, seems the issue is with pthread on buildroot toolchain, I will ask
buildroot list, then.

In addition, here is the gdb backtrace.

# gdb /usr/sbin/pcscd
GNU gdb 6.8
Copyright (C) 2008 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 "arm-unknown-linux-gnueabi"...
(no debugging symbols found)
(gdb) run --foreground --debug --apdu
Starting program: /usr/sbin/pcscd --foreground --debug --apdu
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
debuglog.c:277:DebugLogSetLevel() debug level=debug
debuglog.c:306:DebugLogSetCategory() Debug options: APDU
pcscdaemon.c:550:main() pcsc-lite 1.7.2 daemon ready.
[New LWP 1183]

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1183]
0x400624e8 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb)

Thanks for the attention.


> --
>  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

Reply via email to