URL: <http://savannah.cern.ch/bugs/?99720> Summary: krb5 authentication crashes on Solaris 10 Project: XROOTD Submitted by: ljanyst Submitted on: 2013-01-09 15:51 Report Type: Bug Priority: 5 - Normal Severity: 3 - Normal Status: None Privacy: Public Assigned to: ganis Originator Email: Open/Closed: Open Discussion Lock: Any Fixed by commit(s): _______________________________________________________ Details: Hello, I have observed a crash while using krb5 on Solaris 10: [2013-01-09 15:37:48 +0100][Debug ][PostMaster ] Creating new channel to: castorpublic:1094 1 stream(s) [2013-01-09 15:37:48 +0100][Debug ][TaskMgr ] Registering task: "TickGeneratorTask for: castorpublic:1094" to be run at: [2013-01-09 15:38:03 +0100] [2013-01-09 15:37:48 +0100][Dump ][PostMaster ] [castorpublic:1094 #0] Sending message kXR_locate (path: */, flags: none) through substream 0 expecting answer at 0 [2013-01-09 15:37:48 +0100][Debug ][PostMaster ] [castorpublic:1094] Found 1 address(es): [::128.142.184.247]:1094 [2013-01-09 15:37:48 +0100][Debug ][AsyncSock ] [castorpublic:1094 #0.0] Attempting connection to [::128.142.184.247]:1094 [2013-01-09 15:37:48 +0100][Debug ][Poller ] Adding socket 0x8099078 to the poller [2013-01-09 15:37:48 +0100][Debug ][AsyncSock ] [castorpublic:1094 #0.0] Async connection call returned [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Sending out the initial hand shake + kXR_protocol [2013-01-09 15:37:48 +0100][Dump ][AsyncSock ] [castorpublic:1094 #0.0] Wrote a message of 44 bytes [2013-01-09 15:37:48 +0100][Dump ][XRootDTransport ] <[::192.168.155.31]:38163><--><[::128.142.184.247]:1094> Read message 0x8099118, size: 16, stream [0, 0] [2013-01-09 15:37:48 +0100][Dump ][AsyncSock ] [castorpublic:1094 #0.0] Received a message of 16 bytes [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Got the server hand shake response (type: manager [], protocol version 297) [2013-01-09 15:37:48 +0100][Dump ][XRootDTransport ] <[::192.168.155.31]:38163><--><[::128.142.184.247]:1094> Read message 0x8099118, size: 16, stream [0, 0] [2013-01-09 15:37:48 +0100][Dump ][AsyncSock ] [castorpublic:1094 #0.0] Received a message of 16 bytes [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] kXR_protocol successful (type: manager [], protocol version 297) [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Sending out kXR_login request [2013-01-09 15:37:48 +0100][Dump ][AsyncSock ] [castorpublic:1094 #0.0] Wrote a message of 24 bytes [2013-01-09 15:37:48 +0100][Dump ][XRootDTransport ] <[::192.168.155.31]:38163><--><[::128.142.184.247]:1094> Read message 0x8099140, size: 101, stream [0, 0] [2013-01-09 15:37:48 +0100][Dump ][AsyncSock ] [castorpublic:1094 #0.0] Received a message of 101 bytes [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Logged in [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Authentication is required: &P=krb5,[log in to unmask]&P=gsi,v:10300,c:ssl,ca:1d879c6c.0 [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Sending authentication data [2013-01-09 15:37:48 +0100][Debug ][XRootDTransport ] [castorpublic:1094 #0.0] Trying to authenticate using krb5 zsh: segmentation fault (core dumped) ./xrdfs castorpublic The stack trace: ]==> mdb core Loading modules: [ libc.so.1 libuutil.so.1 ld.so.1 ] > ::stack mech_krb5.so.1`asn1_encode_krb5_authdata_elt+0x20(80cafc0, c3c95b, fe53d4cc) mech_krb5.so.1`asn1_encode_authorization_data+0x49(80cafc0, 807994d, fe53d4f0) mech_krb5.so.1`encode_krb5_authdata+0x43(807994d, fe53d5b0) mech_krb5.so.1`krb5_send_tgs+0xbb(80ccdc0, 40810008, fe53d968, 0, 8099280, 80cd398) mech_krb5.so.1`krb5_get_cred_via_tkt+0xc2(80ccdc0, fe53d660, 40810008, 80cd398, fe53d940, 80ccd78) mech_krb5.so.1`krb5_get_cred_from_kdc_opt+0x22e(80ccdc0, 80caf48, fe53d940, 80ccd78, fe53d834, 0) mech_krb5.so.1`krb5_get_cred_from_kdc+0x19(80ccdc0, 80caf48, fe53d940, 80ccd78, fe53d834) mech_krb5.so.1`krb5_get_credentials+0xe5(80ccdc0, 0, 80caf48, fe53d940, 80ccd78, 80caf48) libXrdSeckrb5.so.1.0.0`__1cSXrdSecProtocolkrb5OgetCredentials6MpnMXrdSecBuffer_pnNXrdOucErrInfo__p1_+0x4bc(80ccc20, 0, fe53da20, 0) libXrdCl.so.0.0.1`__1cFXrdClPXRootDTransportOGetCredentials6MrpnMXrdSecBuffer_pn0ANHandShakeData_pn0ARXRootDChannelInfo__n0AGStatus__+0x14b(fe53e2c0, 80bb1d8, fe53e2b8, 80ca8a8, 80c9000, 80cb7e0) libXrdCl.so.0.0.1`__1cFXrdClPXRootDTransportQDoAuthentication6Mpn0ANHandShakeData_pn0ARXRootDChannelInfo__n0AGStatus__+0x4d6(fe53eb90, 80bb1d8, 80ca8a8) libXrdCl.so.0.0.1`__1cFXrdClPXRootDTransportNHandShakeMain6Mpn0ANHandShakeData_rn0AJAnyObject__n0AGStatus__+0x288(fe53ebf8, 80bb1d8, 80ca8a8) libXrdCl.so.0.0.1`__1cFXrdClPXRootDTransportJHandShake6Mpn0ANHandShakeData_rn0AJAnyObject__n0AGStatus__+0x39e(fe53ec58, 80bb1d8, 80ca8a8) libXrdCl.so.0.0.1`__1cFXrdClSAsyncSocketHandlerWOnReadWhileHandshaking6M_v_+0x6d(80c9310, fe53ed5c, fe9ce640, fef549d9) libXrdCl.so.0.0.1`__1cFXrdClSAsyncSocketHandlerFEvent6MCpn0AGSocket__v_+0xfc(80c9310, 1, 8099078, fef6152f) libXrdCl.so.0.0.1`ReadEventCallback+0x30e(e, 2, 809bd78) libevent-2.0.so.5.1.8`event_persist_closure+0x26d(80c89f8, 80caa98) libevent-2.0.so.5.1.8`event_process_active_single_queue+0x13d(80c89f8, 80c6af8) libevent-2.0.so.5.1.8`event_process_active+0x87(80c89f8, 0) libevent-2.0.so.5.1.8`event_base_loop+0x2a6(80c89f8, 0) libevent-2.0.so.5.1.8`event_base_dispatch+0x2c(80c89f8, 0, 0, fef6ca6c) libXrdCl.so.0.0.1`RunPollerThread+0x14f(80c91f0) libc.so.1`_thr_setup+0x4e(fe1e0200) libc.so.1`_lwp_start(fe1e0200, 0, 0, fe53eff8, fe957c30, fe1e0200) _______________________________________________________ Reply to this item at: <http://savannah.cern.ch/bugs/?99720> _______________________________________________ Message sent via/by LCG Savannah http://savannah.cern.ch/ ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-DEV list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1