Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault when trying to dump objects on cardos smartcard #656

Closed
ziermmar opened this issue Jan 11, 2016 · 0 comments
Closed

segfault when trying to dump objects on cardos smartcard #656

ziermmar opened this issue Jan 11, 2016 · 0 comments

Comments

@ziermmar
Copy link

opensc 0.15.0-1 (amd64) / Archlinux

pkcs15-tool -v -D
Using reader with a card: OMNIKEY CardMan (076B:3021) 3021 00 00
Connecting to card in reader OMNIKEY CardMan (076B:3021) 3021 00 00...
Using card driver Siemens CardOS.
Trying to find a PKCS#15 compatible card...
[1] 30663 segmentation fault (core dumped) pkcs15-tool -v -D

       PID: 30663 (pkcs15-tool)
       UID: 1001 (ziermmar)
       GID: 1001 (ziermmar)
    Signal: 11 (SEGV)
 Timestamp: Mon 2016-01-11 14:13:40 CET (1min 18s ago)

Command Line: pkcs15-tool -v -D
Executable: /usr/bin/pkcs15-tool
Control Group: /user.slice/user-1001.slice/session-c2.scope
Unit: session-c2.scope
Slice: user-1001.slice
Session: c2
Owner UID: 1001 (ziermmar)
Boot ID: ***
Machine ID: ***
Hostname: ***
Coredump: /var/lib/systemd/coredump/core.pkcs15-tool.1001.afc3e317df1e4f94a3ac6b3463c8b800.30663.1452518020000000.lz4
Message: Process 30663 (pkcs15-tool) of user 1001 dumped core.

            Stack trace of thread 30663:
            #0  0x00007fd2859a511d __strstr_sse2_unaligned (libc.so.6)
            #1  0x00007fd285f011d3 fix_starcos_pkcs15_card (libopensc.so.3)
            #2  0x0000000000402b47 main (pkcs15-tool)
            #3  0x00007fd28592b610 __libc_start_main (libc.so.6)
            #4  0x0000000000404399 _start (pkcs15-tool)

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `pkcs15-tool -v -D'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fd2859a511d in __strstr_sse2_unaligned () from /usr/lib/libc.so.6

(gdb) bt
#0 0x00007fd2859a511d in __strstr_sse2_unaligned () from /usr/lib/libc.so.6
#1 0x00007fd285f011d3 in fix_starcos_pkcs15_card (p15card=0x1d99400, p15card=0x1d99400) at pkcs15.c:427
#2 sc_pkcs15_bind (card=0x1dab5f0, aid=aid@entry=0x0, p15card_out=p15card_out@entry=0x60c550 ) at pkcs15.c:1246
#3 0x0000000000402b47 in main (argc=, argv=0x7fffe6a3ded8) at pkcs15-tool.c:2037

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant