On 25/01/11 11:50, Alain Knaff wrote:
[...]
gdb
/some/place/bin/pkcs15-tool
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /some/place/bin/pkcs15-tool...done.
(gdb) r --list-keys
Starting program: /some/place/bin/pkcs15-tool --list-keys
[Thread debugging using libthread_db enabled]
Using reader with a card: Gemplus GemPC Key 00 00
Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
31 ../sysdeps/x86_64/multiarch/../strlen.S: No such file or directory.
in ../sysdeps/x86_64/multiarch/../strlen.S
(gdb) bt
#0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1 0x00007ffff7216d76 in *__GI___strdup (s=0x0) at strdup.c:42
#2 0x00007ffff77601b6 in sc_dup_app_info (p15card=0x618220,
aid=<value optimised out>) at pkcs15.c:706
#3 sc_pkcs15_bind_internal (p15card=0x618220, aid=<value optimised out>)
at pkcs15.c:749
#4 0x00007ffff77613bb in sc_pkcs15_bind (card=0x60c2d0, aid=0x0,
p15card_out=<value optimised out>) at pkcs15.c:946
#5 0x00000000004055cd in main (argc=2, argv=<value optimised out>)
at pkcs15-tool.c:1781
This segmentation fault not only happens on Ubuntu Lucid 64 bit, but also on
Lucid 32 bit, and on Lenny 32 bit.
alain@hitchhiker:~/Projects/Luxtrust/c3l-lenny/opensc$ gdb /some/place/bin/pkcs15-tool
GNU gdb 6.8-debian
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 "i486-linux-gnu"...
(gdb) r --list-keys
Starting program: /some/place/bin/pkcs15-tool --list-keys
[Thread debugging using libthread_db enabled]
[New Thread 0xf73a86b0 (LWP 9315)]
Using reader with a card: Gemplus GemPC Key 00 00
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf73a86b0 (LWP 9315)]
0xf743b733 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0xf743b733 in strlen () from /lib/libc.so.6
#1 0xf743b455 in strdup () from /lib/libc.so.6
#2 0xf7544b78 in sc_pkcs15_bind_internal (p15card=0x9764508,
aid=<value optimized out>) at pkcs15.c:706
#3 0xf75461ae in sc_pkcs15_bind (card=0x9764118, aid=0x0,
p15card_out=0x8051d48) at pkcs15.c:946
#4 0x0804c6c8 in main (argc=Cannot access memory at address 0x0
) at pkcs15-tool.c:1781
Any ideas?
Thanks,
Alain