Re: [opensc-devel] Segmentation fault in pkcs11-tool

2012-12-20 Thread Anna Pavlova
Hi Douglas, >Something completely different to try is to test use your libPkcs11.so >module with FireFox or Thunderbird: it runs fine under Firefox - it shows the slots and the slotInfo. Thunderbird I don't have so I didn't try it. >Can you do a ldd pkcs11-tool >and ldd libPkcs11.so yes, for so

Re: [opensc-devel] Segmentation fault in pkcs11-tool

2012-12-19 Thread Anna Pavlova
Hello Douglas, >It sounds like opensc is compiled with the -g but not your module. you're right I didn't use the -g option while compiling my module, I added the -g option into my project and now when I compile my module I do (simplified): gcc -fpermissive -Wall -g -c -O2 -I../foo/includes -fP

Re: [opensc-devel] Segmentation fault in pkcs11-tool

2012-12-18 Thread Anna Pavlova
Hello Douglas and Anthony, sorry for late reply and cool, thanks you for helping me with gdb :-). Thanks to you help I was able to run with my loaded library in debug mode. Anyway, the crash (in the debug mode) looks as follows: Program received signal SIGSEGV, Segmentation fault. 0xd810b787 in

Re: [opensc-devel] Segmentation fault in pkcs11-tool

2012-12-17 Thread Anna Pavlova
ike a shared library. I thought what's written as 'module' in the code and 'shared library' are the same things. Thanks, Anna On Mon, Dec 17, 2012 at 4:18 PM, Douglas E. Engert wrote: > > > On 12/17/2012 7:01 AM, Anna Pavlova wrote: > > Hello, > > >

[opensc-devel] Segmentation fault in pkcs11-tool

2012-12-17 Thread Anna Pavlova
Hello, I am new to OpenSC but I was looking for a 3rd party tool with which I could test my self-developed pkcs11 library and I came across the OpenSC pkcs11-tool. I installed OpenSC under Ubuntu11.10, following http://www.gooze.eu/howto/smartcard-quickstarter-guide/opensc-installation-under-gnu-