PAM issue related to ix86 machine - Unix

This is a discussion on PAM issue related to ix86 machine - Unix ; Hi All, I am using pam-0.80 to autheticate the webs service. It's working fine with all architecture other than ix386. Problem is when I tried to authenticate the user with wrong password, my webs server got killed due to seg-fault(only ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: PAM issue related to ix86 machine

  1. PAM issue related to ix86 machine

    Hi All,

    I am using pam-0.80 to autheticate the webs service. It's working fine
    with all architecture other than ix386. Problem is when I tried to
    authenticate the user with wrong password, my webs server got killed
    due to seg-fault(only when compiled for x386 architecture). Following
    is the backstrace where does it crashes.

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 7858)]
    0xb7e6f44c in _unix_verify_password () from /lib/pam_unix.so
    (gdb) bt
    #0 0xb7e6f44c in _unix_verify_password () from /lib/pam_unix.so
    #1 0xb7e6b5c5 in pam_sm_authenticate () from /lib/pam_unix.so
    #2 0xb7f8e10d in _pam_dispatch_aux () from /lib/libpam.so.0
    #3 0xb7f8e4f9 in _pam_dispatch () from /lib/libpam.so.0
    #4 0xb7f90560 in pam_authenticate () from /lib/libpam.so.0
    #5 0x0804f30f in authHandler (wp=0x8060ab0, path=0xbfe986c0
    "authHandler", query=0x80626b8
    "username=root&password=root123&role=") at ../authHandler.c:119

    If I autheticate for correct user then it's working fine.
    Can anybody help me for same?
    Thanks in advance.

    jkwagh


  2. Re: PAM issue related to ix86 machine

    On Jun 4, 11:21 am, Talktoitu wrote:
    > Hi All,
    >
    > I am using pam-0.80 to autheticate the webs service. It's working fine
    > with all architecture other than ix386. Problem is when I tried to
    > authenticate the user with wrong password, my webs server got killed
    > due to seg-fault(only when compiled for x386 architecture). Following
    > is the backstrace where does it crashes.
    >
    > Program received signal SIGSEGV, Segmentation fault.
    > [Switching to Thread 1024 (LWP 7858)]
    > 0xb7e6f44c in _unix_verify_password () from /lib/pam_unix.so
    > (gdb) bt
    > #0 0xb7e6f44c in _unix_verify_password () from /lib/pam_unix.so
    > #1 0xb7e6b5c5 in pam_sm_authenticate () from /lib/pam_unix.so
    > #2 0xb7f8e10d in _pam_dispatch_aux () from /lib/libpam.so.0
    > #3 0xb7f8e4f9 in _pam_dispatch () from /lib/libpam.so.0
    > #4 0xb7f90560 in pam_authenticate () from /lib/libpam.so.0
    > #5 0x0804f30f in authHandler (wp=0x8060ab0, path=0xbfe986c0
    > "authHandler", query=0x80626b8
    > "username=root&password=root123&role=") at ../authHandler.c:119
    >
    > If I autheticate for correct user then it's working fine.
    > Can anybody help me for same?
    > Thanks in advance.
    >
    > jkwagh


    One more thing I found is when I build the pam with --enable-debug
    (configure option) it's working fine. It's not crashing. So did anyone
    face such problem while building PAM. Now I am going through complete
    code flow.

    Thanks in Advance.

    jkwagh


+ Reply to Thread