Bug 1348586
| Summary: | pcscd killed by SIGSEV after reconnecting Smartcard | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Radek Duda <rduda> | ||||
| Component: | pcsc-lite | Assignee: | Bob Relyea <rrelyea> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Asha Akkiangady <aakkiang> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.4 | CC: | rduda, spice-qe-bugs | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-03-21 19:03:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Radek Duda
2016-06-21 13:50:37 UTC
Please describe the issue more clearly. Do you mean 'programatically reconnect to the smart card' or do you mean reinserting the smart card. If the latter a code fragment would be preferable. I'm currently running pcsc-lite-1.8.8-6.el7.x86_64 on my system and I'm able to access and use the smart card without load issues or crashing pcsc-lite. Also, what pkcs #11 module are you using to access the smart card? bob Yes I see it is not clear enought.I mean unplugging USB connector of smartcard reader from computer and then plugging it back. It does not matter if a smartcard is inserted into reader or not during replugging. SIGSEGV is always there. IMHO this bug is dependent on bug 1286320. I am using on my system (rhel7.3 nightly): pcsc-lite-libs-1.8.8-6.el7.x86_64 pcsc-lite-1.8.8-6.el7.x86_64 pcsc-lite-ccid-1.4.10-11.el7.x86_64 coolkey-1.1.0-34.el7.x86_64 pam_pkcs11-0.6.2-24.el7.x86_64 kernel-3.10.0-455.el7.x86_64 so I am using CoolKey PKCS #11 Module and Gemalto Pc Twin Smart Card Reader. I am adding gdb backtrace (not from abrt) here: (gdb) c Continuing. [Thread 0x7f820f8c2700 (LWP 20353) exited] <- unplugged the SmartCard reader here Program received signal SIGSEGV, Segmentation fault. <- plugged SmartCard reader here [Switching to Thread 0x7f82100c3700 (LWP 20352)] 0x00007f82100d382c in ?? () (gdb) t a a bt Thread 5 (Thread 0x7f82100c3700 (LWP 20352)): #0 0x00007f82100d382c in ?? () #1 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f820f0c1700 (LWP 20354)): #0 0x00007f82119b2b53 in select () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f82124de283 in HPEstablishUSBNotifications (udev=0x7f8213d8bf00) at hotplug_libudev.c:570 #2 0x00007f8211c8cdc5 in start_thread (arg=0x7f820f0c1700) at pthread_create.c:308 #3 0x00007f82119bb6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 2 (Thread 0x7f820e8c0700 (LWP 20397)): #0 0x00007f82119b2b53 in select () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f82124e0af1 in MessageReceive (buffer_void=buffer_void@entry=0x7f820e89fd30, buffer_size=buffer_size@entry=8, filedes=filedes@entry=12) at winscard_msg.c:442 #2 0x00007f82124e183f in ContextThread (newContext=0x7f8213da6ab0) at winscard_svc.c:304 #3 0x00007f8211c8cdc5 in start_thread (arg=0x7f820e8c0700) at pthread_create.c:308 #4 0x00007f82119bb6ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7f8212494740 (LWP 20351)): #0 0x00007f82119b2b53 in select () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f82124e0e77 in ProcessEventsServer (pdwClientID=pdwClientID@entry=0x7ffe47bbe90c) at winscard_msg_srv.c:202 #2 0x00007f82124d2ae5 in SVCServiceRunLoop () at pcscdaemon.c:89 #3 main (argc=3, argv=<optimized out>) at pcscdaemon.c:630 OK, this sound like the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1286320 I'll keep it open for RHEL 7.4 in case the it' not. If you can test the coolkey build to see if it fixes your issue if it does, go ahead and close it. I wasn't seeing a crash, but I was seeing pcsc-lite got to max CPU with I did this on my machine. does updating to coolkey-1.1.0-35.el7 fix your problem? see comment 4 (In reply to Bob Relyea from comment #5) > does updating to coolkey-1.1.0-35.el7 fix your problem? see comment 4 Yes it solves the problem. Thanks Radek, closing as a duplication of bug 1286320 *** This bug has been marked as a duplicate of bug 1286320 *** |