[SOLVED] plugging in ACR38U device in USB port crashes pcscd

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

[SOLVED] plugging in ACR38U device in USB port crashes pcscd

Postby bertaerts » May 19th, '13, 22:07

(Mageia 3 RC x86_64 plus all updates)

Plug in ACR38U USB (Belgian) identity card reader, makes pcscd service crash:
Code: Select all
dmesg
[18041.844607] usb 1-1: new full-speed USB device number 12 using xhci_hcd
[18041.859146] usb 1-1: New USB device found, idVendor=072f, idProduct=9000
[18041.859152] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[18041.859155] usb 1-1: Product: ACR38 USB Reader         
[18041.859158] usb 1-1: Manufacturer: ACS     
[18041.885018] pcscd[13728]: segfault at 4 ip 00007fef7dca4520 sp 00007fef7dbec8c0 error 6 in libc-2.17.so[7fef7dbef000+1a9000]


Service can not be started again, due to segmentation fault.
When device is plugged out, service pcscd can be started successfully.

Following is installed:

Code: Select all
[bert@Dell7720Mageia3 eid-viewer-4.0.4]$ rpm -aq | grep acr38
lib64acr38u0-1.7.10-4.mga3
lib64acr38u-devel-1.7.10-4.mga3
acr38u-1.7.10-4.mga3

[bert@Dell7720Mageia3 eid-viewer-4.0.4]$ rpm -aq | grep pcs
lib64pcsclite-devel-1.8.7-3.mga3
lib64pcscspy0-1.8.7-3.mga3
pcsc-lite-1.8.7-3.mga3
lib64pcsclite1-1.8.7-3.mga3


Same experiment in Mageia 2 x86_64 (with all updates) works perfectly well !

I wrote bug https://bugs.mageia.org/show_bug.cgi?id=10147
Last edited by bertaerts on May 20th, '13, 20:10, edited 2 times in total.
bertaerts
 
Posts: 181
Joined: Apr 6th, '11, 12:19

Re: plugging in ACR38U device in USB port crashes pcscd serv

Postby bertaerts » May 20th, '13, 20:09

SOLVED
Have a look to the bugreport for an alternative ACR38U driver that works perfectly.
https://bugs.mageia.org/show_bug.cgi?id=10147
bertaerts
 
Posts: 181
Joined: Apr 6th, '11, 12:19

Re: [SOLVED] plugging in ACR38U device in USB port crashes p

Postby Kamloops » Sep 29th, '14, 18:20

Here is some recipe for installing and starting the ACR38U reader for the case of a Belgian identity card, as tried out under Mageia 4.0 and 4.1.
The rationale is
  • that the procedure for linux (Mageia) became not so obvious, given the issue above;
  • also the difficulty to find a comprehensive overview of the needed steps for this case
.

1) install generic pcsc-related packages, including the alternate acr38u-driver:
Code: Select all
urpmi pcsc-lite pcsc-tools lib64pcsclite1 perl-pcsc-perl acsccid


2) try this out and diagnose:
Code: Select all
pcscd -fd
# or :
systemctl start pcscd.service
# next:
pcsc_scan

Connect the card reader and insert an identity or smart card in order to observe proper detection of both by pcsc_scan. So far the non-specific part.

3) Install Belgian eID ("beid")-specific packages:
a) install beid middleware and get rid of the "bad" acr38u packages that beid-middleware depends on. Package beid-middleware will nicely stay in place...
Code: Select all
urpmi --allow-nodeps beid-middleware
urpme lib64acr38u0 acr38u

b) go to eid.belgium.be → "installing eID software" → linux;
download package eid-archive-epel.rpm, which is the one made for Red-Hat-like linux distributions.
To install this rpm, you might for example open the folder in dolphin or konqueror and right click on the package, selecting "Open with→installer".
Now you're done installing. Configuration of a browser like firefox is more straightforward, I refer you to the eID-website and after that, you should be fully operational.

4) Choose between launching pcscd during boot (a) phase or on the fly (b):
a) persistent:
Code: Select all
systemctl enable pcscd.service pcscd.socket

b) volatile
Code: Select all
systemctl disable pcscd.service pcscd.socket

and in case of 4b), running the daemon on the fly is done with the commands under 2)

Not discussed here is the allowed unix user: root or ordinary users. The try-out was done as root, except for the browser configuration of course.

Enjoy the ride.
Kamloops
 
Posts: 1
Joined: Sep 29th, '14, 17:41

Re: [SOLVED] plugging in ACR38U device in USB port crashes p

Postby doktor5000 » Sep 29th, '14, 18:24

Thanks for sharing :) just moved this thread to tips&tricks subforum.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron