pkcs11 library SEGV on x86_64 RHEL5.5

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pkcs11 library SEGV on x86_64 RHEL5.5

Boarman, Christopher L
Requesting help on SEGV issue for PKCS11 Library on RHEL5.5 x86_64:

1.) Successfully configured opensc-0.12.2 as follows:

# ./configure --prefix=/usr --sysconfdir=/etc --enable-pcsc --enable-doc

2.) Performed 'make' and verified built successfully with no errors. There was one warning:

pkcs15-iasecc.c: In function "iasecc_file_convert_acls":
pkcs15-iasecc.c:312: warning: initialization discards qualifiers from pointer target type

3.) Performed 'make install'. There were no errors.

4.) Since this is x86_64, I set LD_LIBRARY_PATH=/usr/lib:/usr/lib64

5.) Used the 'pkcs11-tool' to test the module as follows:

# pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L -I -M -O

The output from the tool is as follows:

Cryptoki version 2.20
Manufacturer     OpenSC (www.opensc-project.org)
Library          Smart card PKCS#11 API (ver 0.0)
Available slots:
Slot 0 (0xffffffffffffffff): Virtual hotplug slot
  (empty)
No slot with a token was found.
Segmentation fault (core dumped)

6.) Performed traceback:

# gdb -se /usr/bin/pkcs11-tool -c core.13364

Core was generated by `pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L -I -M -O'.
Program terminated with signal 11, Segmentation fault.
#0  pcsc_cancel (ctx=0x3d2a6d0) at reader-pcsc.c:593
593             if (gpriv->pcsc_wait_ctx != -1) {
(gdb) where
#0  pcsc_cancel (ctx=0x3d2a6d0) at reader-pcsc.c:593
#1  0x00002b3708ce5282 in C_Finalize (pReserved=<value optimized out>) at pkcs11-global.c:294
#2  0x000000000040ad26 in main (argc=0, argv=<value optimized out>) at pkcs11-tool.c:797


Please advise as to how I should proceed to further debug this issue.
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: pkcs11 library SEGV on x86_64 RHEL5.5

Martin Paljak-4
Hello,

On Wed, Aug 10, 2011 at 01:29, Boarman, Christopher L
<[hidden email]> wrote:
> 4.) Since this is x86_64, I set LD_LIBRARY_PATH=/usr/lib:/usr/lib64
Why? Shouldn't this work as expected without any tricks, as you
compiled it on your native platform?

> 5.) Used the 'pkcs11-tool' to test the module as follows:
>
> # pkcs11-tool --module /usr/lib/pkcs11/opensc-pkcs11.so -L -I -M -O

I don't think specifying so many options in one go should actually
make sense. A crash is nevertheless not warranted.

> No slot with a token was found.
Your smart card reader is not detected. Which reader are you using?

Best,
Martin
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: EXTERNAL: Re: pkcs11 library SEGV on x86_64 RHEL5.5

Boarman, Christopher L
>> 4.) Since this is x86_64, I set LD_LIBRARY_PATH=/usr/lib:/usr/lib64
> Why? Shouldn't this work as expected without any tricks, as you
> compiled it on your native platform?

The libraries get installed in /usr/lib and since this is x86_64, I believe the system default is /usr/lib64 and that is why I need to set LD_LIBRARY_PATH.

>> No slot with a token was found.
> Your smart card reader is not detected. Which reader are you using?

I am doing this on a Dell E6410 using the BCM5880 chip for the onboard smart card reader. I have not figured out how to make the smart card reader to work. Yet.



_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: EXTERNAL: Re: pkcs11 library SEGV on x86_64 RHEL5.5

Martin Paljak-4
Hello,

On Aug 10, 2011, at 6:16 PM, Boarman, Christopher L wrote:
>>> No slot with a token was found.
>> Your smart card reader is not detected. Which reader are you using?
>
> I am doing this on a Dell E6410 using the BCM5880 chip for the onboard smart card reader. I have not figured out how to make the smart card reader to work. Yet.
You need to start with this. http://pcsclite.alioth.debian.org/ccid.html might help
--
@MartinPaljak.net
+3725156495

_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user