Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[node@centos krbAuth]$ gdb --args /opt/node-debug/bin/node krb_test.js
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /opt/node-debug/bin/node...done.
(gdb) run
Starting program: /opt/node-debug/bin/node krb_test.js
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff6bc6700 (LWP 113247)]
[New Thread 0x7ffff63c5700 (LWP 113248)]
[New Thread 0x7ffff5bc4700 (LWP 113249)]
[New Thread 0x7ffff53c3700 (LWP 113250)]
[New Thread 0x7ffff4bc2700 (LWP 113251)]
[New Thread 0x7ffff7ff8700 (LWP 113252)]
[New Thread 0x7fffde379700 (LWP 113253)]
[New Thread 0x7fffddb78700 (LWP 113254)]
[New Thread 0x7fffdd377700 (LWP 113255)]
[New Thread 0x7fffdcb76700 (LWP 113256)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdcb76700 (LWP 113256)]
0x0000000000000075 in ?? ()
(gdb) bt
#0 0x0000000000000075 in ?? ()
#1 0x00007fffdf165219 in EVP_MD_CTX_cleanup (ctx=ctx@entry=0x7fffd0003858) at digest.c:420
#2 0x00007fffdf0d024f in HMAC_CTX_cleanup (ctx=0x7fffd0003850) at hmac.c:223
#3 0x00007fffdf8c299c in compat_hmac_ctx_free (ctx=<optimized out>) at hmac.c:79
#4 krb5int_hmac_keyblock (hash=hash@entry=0x7fffdfac7da0 <krb5int_hash_md5>, keyblock=keyblock@entry=0x7fffd0001c20,
data=data@entry=0x7fffdcb74fb0, num_data=num_data@entry=1, output=output@entry=0x7fffdcb74fa0) at hmac.c:152
#5 0x00007fffdf8bd518 in usage_key (hash=hash@entry=0x7fffdfac7da0 <krb5int_hash_md5>,
session_keyblock=session_keyblock@entry=0x7fffd0001c20, usage=usage@entry=2, out=<optimized out>, out=<optimized out>,
enc=<optimized out>) at enc_rc4.c:64
#6 0x00007fffdf8bdae4 in krb5int_arcfour_decrypt (ktp=<optimized out>, key=0x7fffd0001c20, usage=2, ivec=0x0, data=0x7fffdcb75100,
num_data=4) at enc_rc4.c:260
#7 0x00007fffdf8b9b1b in krb5_k_decrypt (context=context@entry=0x7fffd0001930, key=0x7fffd0001c20, usage=usage@entry=2,
cipher_state=cipher_state@entry=0x0, input=input@entry=0x7fffd0001cc0, output=output@entry=0x7fffdcb75200) at decrypt.c:78
#8 0x00007fffdf8b9bed in krb5_c_decrypt (context=context@entry=0x7fffd0001930, keyblock=keyblock@entry=0x7fffdcb75378, usage=2,
cipher_state=cipher_state@entry=0x0, input=input@entry=0x7fffd0001cc0, output=output@entry=0x7fffdcb75200) at decrypt.c:98
#9 0x00007fffdfd60115 in krb5_decrypt_tkt_part (context=context@entry=0x7fffd0001930, srv_key=srv_key@entry=0x7fffdcb75378,
ticket=0x7fffd0001cb0) at decrypt_tk.c:56
#10 0x00007fffdfd7d350 in try_one_entry (context=context@entry=0x7fffd0001930, ent=ent@entry=0x7fffdcb75360,
keyblock_out=keyblock_out@entry=0x7fffdcb75320, req=<optimized out>) at rd_req_dec.c:296
#11 0x00007fffdfd7dc76 in decrypt_ticket (keyblock_out=0x7fffdcb75320, keytab=0x7fffd8002310, server=0x7fffd0002430,
req=0x7fffd0001c70, context=0x7fffd0001930) at rd_req_dec.c:423
#12 rd_req_decoded_opt (context=0x7fffd0001930, auth_context=auth_context@entry=0x7fffdcb75568, req=0x7fffd0001c70,
server=0x7fffd0002430, keytab=0x7fffd8002310, ap_req_options=ap_req_options@entry=0x7fffdcb75530, ticket=ticket@entry=0x0,
check_valid_flag=check_valid_flag@entry=1) at rd_req_dec.c:504
#13 0x00007fffdfd7e8ca in krb5_rd_req_decoded (context=<optimized out>, auth_context=auth_context@entry=0x7fffdcb75568,
req=<optimized out>, server=<optimized out>, keytab=<optimized out>, ap_req_options=ap_req_options@entry=0x7fffdcb75530,
ticket=ticket@entry=0x0) at rd_req_dec.c:808
#14 0x00007fffdfaea35c in kg_accept_krb5 (minor_status=minor_status@entry=0x7fffdcb75d20,
context_handle=context_handle@entry=0x7fffd0001040, verifier_cred_handle=0x7fffd8008940, input_token=<optimized out>,
input_chan_bindings=0x0, src_name=0x7fffdcb75998, mech_type=mech_type@entry=0x7fffdcb759a8,
output_token=output_token@entry=0x7fffdcb75b30, ret_flags=ret_flags@entry=0x7fffdcb75984, time_rec=time_rec@entry=0x0,
---Type <return> to continue, or q <return> to quit---
delegated_cred_handle=delegated_cred_handle@entry=0x7fffdcb75990, exts=exts@entry=0x7fffdcb758e0) at accept_sec_context.c:644
#15 0x00007fffdfaeb83a in krb5_gss_accept_sec_context_ext (minor_status=0x7fffdcb75d20, context_handle=0x7fffd0001040,
verifier_cred_handle=<optimized out>, input_token=<optimized out>, input_chan_bindings=<optimized out>,
src_name=<optimized out>, mech_type=mech_type@entry=0x7fffdcb759a8, output_token=output_token@entry=0x7fffdcb75b30,
ret_flags=ret_flags@entry=0x7fffdcb75984, time_rec=time_rec@entry=0x0,
delegated_cred_handle=delegated_cred_handle@entry=0x7fffdcb75990, exts=exts@entry=0x7fffdcb758e0) at accept_sec_context.c:1308
#16 0x00007fffdfaeb999 in krb5_gss_accept_sec_context (minor_status=<optimized out>, context_handle=<optimized out>,
verifier_cred_handle=<optimized out>, input_token=<optimized out>, input_chan_bindings=<optimized out>,
src_name=<optimized out>, mech_type=0x7fffdcb759a8, output_token=0x7fffdcb75b30, ret_flags=0x7fffdcb75984, time_rec=0x0,
delegated_cred_handle=0x7fffdcb75990) at accept_sec_context.c:1337
#17 0x00007fffdfad9056 in gss_accept_sec_context (minor_status=minor_status@entry=0x7fffdcb75d20,
context_handle=context_handle@entry=0x7fffd0001838, verifier_cred_handle=<optimized out>,
input_token_buffer=input_token_buffer@entry=0x7fffd0001010, input_chan_bindings=input_chan_bindings@entry=0x0,
src_name=src_name@entry=0x7fffd0001868, mech_type=mech_type@entry=0x7fffdcb75c38,
output_token=output_token@entry=0x7fffdcb75b30, ret_flags=ret_flags@entry=0x7fffd0001860, time_rec=0x0, d_cred=0x7fffdcb75c20)
at g_accept_sec_context.c:267
#18 0x00007fffdfb067f3 in acc_ctx_call_acc (tokflag=0x7fffdcb75adc, negState=0x7fffdcb75ad8, delegated_cred_handle=<optimized out>,
time_rec=<optimized out>, ret_flags=0x7fffdcb75c14, mechtok_out=0x7fffdcb75b30, mech_type=0x7fffdcb75c38,
mechtok_in=0x7fffd0001010, spcred=<optimized out>, sc=<optimized out>, minor_status=0x7fffdcb75d20) at spnego_mech.c:1560
#19 spnego_gss_accept_sec_context (minor_status=<optimized out>, context_handle=<optimized out>,
verifier_cred_handle=<optimized out>, input_token=<optimized out>, input_chan_bindings=<optimized out>,
src_name=<optimized out>, mech_type=0x7fffdcb75c38, output_token=0x7fffdcb75d00, ret_flags=0x7fffdcb75c14, time_rec=0x0,
delegated_cred_handle=0x7fffdcb75c20) at spnego_mech.c:1726
#20 0x00007fffdfad9056 in gss_accept_sec_context (minor_status=<optimized out>, context_handle=0x7fffd80008e0,
verifier_cred_handle=<optimized out>, input_token_buffer=0x7fffdcb75d10, input_chan_bindings=0x0, src_name=<optimized out>,
mech_type=0x0, output_token=0x7fffdcb75d00, ret_flags=0x0, time_rec=0x0, d_cred=0x7fffd8000900) at g_accept_sec_context.c:267
#21 0x00007ffff41ae38a in authenticate_gss_server_step (state=0x7fffd80008e0,
challenge=0x2570938 "YIIGoAYGKwYBBQUCoIIGlDCCBpCgMDAuBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKwYBBAGCNwICHgYKKwYBBAGCNwICCqKCBloEggZWYIIGUgYJKoZIhvcSAQICAQBuggZBMIIGPaADAgEFoQMCAQ6iBwMFACAAAACjggR5YYIEdTCCBHGgAwIBBaEMGwpET01BSU4u"...) at ../src/unix/kerberos_gss.cc:575
#22 0x00007ffff41b0768 in KerberosServer::__lambda7::operator() (__closure=0x252b870, onFinished=...)
at ../src/unix/kerberos_unix.cc:116
---Type <return> to continue, or q <return> to quit---
#23 0x00007ffff41b2dad in std::_Function_handler<void(std::function<void(std::function<void(KerberosWorker*)>)>), KerberosServer::Step(Nan::NAN_METHOD_ARGS_TYPE)::__lambda7>::_M_invoke(const std::_Any_data &, std::function<void(std::function<void(KerberosWorker*)>)>)
(__functor=..., __args#0=...) at /usr/include/c++/4.8.2/functional:2071
#24 0x00007ffff41b662e in std::function<void (std::function<void (std::function<void (KerberosWorker*)>)>)>::operator()(std::function<void (std::function<void (KerberosWorker*)>)>) const (this=0x2537588, __args#0=...) at /usr/include/c++/4.8.2/functional:2471
#25 0x00007ffff41b5fb1 in KerberosWorker::Execute (this=0x25374e0) at ../src/unix/../kerberos_worker.h:24
#26 0x00007ffff41b59bb in Nan::AsyncExecute (req=0x25374e8) at ../node_modules/nan/nan.h:2194
#27 0x0000000000ad744e in worker (arg=0x0) at ../deps/uv/src/threadpool.c:122
#28 0x00007ffff6f9bdd5 in start_thread (arg=0x7fffdcb76700) at pthread_create.c:307
#29 0x00007ffff6cc4ead in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.