Git Product home page Git Product logo

Comments (5)

LudovicRousseau avatar LudovicRousseau commented on July 17, 2024

What PKCS#11 library do you use?

Can you run the "su" command inside gdb and generate a backtrace?

from pam_pkcs11.

srujansrs avatar srujansrs commented on July 17, 2024

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.

srujansrs avatar srujansrs commented on July 17, 2024

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.

LudovicRousseau avatar LudovicRousseau commented on July 17, 2024

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.

srujansrs avatar srujansrs commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.