Segmentation faults on second plugin invocation.

Dr. Greg Wettstein greg at
Sun Dec 14 13:16:50 EST 2014

Hi, I hope the weekend has gone well for everyone.

We are in the process of doing an upgrade to our Hurdo utility which
allows remote sudo privilege escalations to be authenticated by
transmission of an AP-REQ packet via an SSH channel.  The previous
version is available at the following site if anyone wants to come up
to speed on it:

We are adding PKINIT support to allow the short lived TGT used to
authenticate the AP-REQ to be requested via a cert/key held in a
process specific keyring attached to the ssh client process.  It all
works as it should until a second sudo attempt is requested at which
time the client crashes with a segmentation fault which appears to
originate in the bowels of the plugin code, ie:

#0  0xf738766c in malloc_consolidate () from /lib/
#1  0xf738982d in _int_malloc () from /lib/
#2  0xf738b3f7 in calloc () from /lib/
#3  0xf777435a in _dl_new_object () from /lib/
#4  0xf776fcd1 in _dl_map_object_from_fd () from /lib/
#5  0xf7771d6b in _dl_map_object () from /lib/
#6  0xf777c205 in dl_open_worker () from /lib/
#7  0xf7777dd2 in _dl_catch_error () from /lib/
#8  0xf777bb6e in _dl_open () from /lib/
#9  0xf75eac3f in dlopen_doit () from /lib/
#10 0xf7777dd2 in _dl_catch_error () from /lib/
#11 0xf75eb10c in _dlerror_run () from /lib/
#12 0xf75eab5c in dlopen@@GLIBC_2.1 () from /lib/
#13 0xf73125f8 in krb5int_open_plugin ()
   from /usr/local/krb5/lib/
#14 0x09b0af38 in ?? ()
#15 0x00000002 in ?? ()
#16 0xffadb214 in ?? ()
#17 0x00000000 in ?? ()

Is it a known limitation that the PKINIT authentication cannot be
requested from the same process twice?  If so does anyone have any
pointers/ideas on what needs to be done to fix this.

We are currently doing this work against 1.12.1.

Thanks in advance for any pointers/suggestions.

Have a good week.

As always,
Dr. G.W. Wettstein, Ph.D.   Enjellic Systems Development, LLC.
4206 N. 19th Ave.           Specializing in information infra-structure
Fargo, ND  58102            development.
PH: 701-281-1686
FAX: 701-281-3949           EMAIL: greg at
"Artifical Intelligence stands no chance against Natural Stupidity."
                                -- John Henders

More information about the krbdev mailing list