Comments (5)
What PKCS#11 library do you use?
Can you run the "su" command inside gdb and generate a backtrace?
from pam_pkcs11.
we have created pkcs#11 library in order to perform operations like signing.
And it is working perfectly in thunderbird application..
Now are are using same pkcs#11 library for login to ubuntu os with smart card.
command that we are using log-in through terminal-
"su - username"
then we are facing error - segmentation fault
at syslog - "ubuntu kernel: [11694.542754] su[13543]: segfault at b676048e ip b7586d2f sp bfd0f0bc error 4 in libc-2.19.so[b750c000+1a8000]"
using gdb command result -
Program received signal SIGSEGV, Segmentation fault.
__strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:51
51 ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory.
(gdb) backtrace
#0 __strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:51
#1 0xb7597732 in __GI_fputs_unlocked (
str=0xb678248e <error: Cannot access memory at address 0xb678248e>,
fp=fp@entry=0x8fd4d20) at iofputs_u.c:36
#2 0xb7614789 in __GI___vsyslog_chk (pri=, pri@entry=85,
flag=flag@entry=1, fmt=fmt@entry=0xb76ebb7e "%s %s",
ap=ap@entry=0xbfe56b4c "\270K\375\b\030/\375\b\264\252n\267")
at ../misc/syslog.c:205
#3 0xb7614c27 in __syslog_chk (pri=85, flag=1, fmt=0xb76ebb7e "%s %s")
at ../misc/syslog.c:129
#4 0xb76e8a4c in pam_vsyslog () from /lib/i386-linux-gnu/libpam.so.0
#5 0xb76e8b93 in pam_syslog () from /lib/i386-linux-gnu/libpam.so.0
#6 0xb6884e38 in ?? () from /lib/i386-linux-gnu/security/pam_unix.so
#7 0xb68823d4 in pam_sm_authenticate ()
from /lib/i386-linux-gnu/security/pam_unix.so
#8 0xb76e35af in ?? () from /lib/i386-linux-gnu/libpam.so.0
#9 0xb76e2c7a in pam_authenticate () from /lib/i386-linux-gnu/libpam.so.0
#10 0x0804b3ba in ?? ()
#11 0x08049e66 in ?? ()
#12 0xb7547a83 in __libc_start_main (main=0x8049a50, argc=1, argv=0xbfe56e54,
init=0x804db50, fini=0x804dbc0, rtld_fini=0xb771a180 <_dl_fini>,
stack_end=0xbfe56e4c) at libc-start.c:287
#13 0x0804ab6c in ?? ()
(gdb) frame 10
#10 0x0804b3ba in ?? ()
(gdb) frame 12
#12 0xb7547a83 in __libc_start_main (main=0x8049a50, argc=1, argv=0xbfe56e54,
init=0x804db50, fini=0x804dbc0, rtld_fini=0xb771a180 <_dl_fini>,
stack_end=0xbfe56e4c) at libc-start.c:287
287 libc-start.c: No such file or directory.
(gdb) frame 12
#12 0xb7547a83 in __libc_start_main (main=0x8049a50, argc=1, argv=0xbfe56e54,
init=0x804db50, fini=0x804dbc0, rtld_fini=0xb771a180 <_dl_fini>,
stack_end=0xbfe56e4c) at libc-start.c:287
287 in libc-start.c
(gdb) q
from pam_pkcs11.
If we run -
cmd- 'su - usename'
result- 'authentication succeeded' but then 'Segmentation fault (core dumped)'
If we run -
cmd- 'gdb --args su - usename'
result- 'Program received signal SIGSEGV, Segmentation fault.
__strlen_ia32 () at ../sysdeps/i386/i686/multiarch/../../i586/strlen.S:51
51 ../sysdeps/i386/i686/multiarch/../../i586/strlen.S: No such file or directory'
above comment will be the backtrace result...
from pam_pkcs11.
I can't find pam_pkcs11 in the backtrace. It looks like the bug is in your own code.
Feel free to submit a patch to pam_pkcs11 if you find the bug in this component.
from pam_pkcs11.
yes there is no bug in pam_pkcs11. Cause we have tested that with other token. Its working.
Can you suggest me the process of debugging for this kind of error. Because in this backtrace no file is related to my code...!
from pam_pkcs11.
Related Issues (20)
- C_Sign fails with 0x00000007 after inserting pin HOT 9
- Endless Loop on signature size HOT 10
- pkcs11_make_hash_link util does not work HOT 1
- CRLs online fail to process after download and offline ones cause a segfault HOT 6
- PKCS11 module crashes when no CRL defined for card HOT 2
- EVP_VerifyFinal() failed with EC cert on 0.6.11 HOT 5
- make pkcs11_module option "slot_description" a substring match
- A lot of patches...
- Provide pam-auth-update configuration file?
- cannot build on fedora 32 HOT 1
- Segmentation fault (core dumped) with Estonian ID card HOT 2
- EVP_VerifyFinal() failed: error:0D078079:asn1 encoding routines:asn1_item_embed_d2i:field missing HOT 6
- Possible openssh_mapper error with SSH v1 key
- EVP_VerifyFinal() failed: invalid padding
- pkcs11_make_hash_link fails when file names contain whitespaces HOT 4
- mapper heap-buffer-overflow HOT 2
- ldap_get_certificate(): no matching entries
- Check crl_offline failed when openssl works HOT 1
- Crl_online even if all certificates are available on crl URI
- verify_crl() failed: getting the issuer's public key failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pam_pkcs11.