[2676] in Kerberos-V5-bugs
krb5-clients/383: klist dumps core if ccache not found
daemon@ATHENA.MIT.EDU (Sam Hartman)
Thu Feb 27 22:03:16 1997
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, hartmans@MIT.EDU
Date: Thu, 27 Feb 1997 21:58:18 -0500 (EST)
From: Sam Hartman <hartmans@MIT.EDU>
Reply-To: hartmans@MIT.EDU
To: krb5-bugs@MIT.EDU
Cc: probe@MIT.EDU
>Number: 383
>Category: krb5-clients
>Synopsis: klist dumps core if ccache not found
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Thu Feb 27 21:59:01 EST 1997
>Last-Modified:
>Originator: Sam Hartman
>Organization:
MIT
>Release: 1.1-development
>Environment:
System: NetBSD luminous 1.2B NetBSD 1.2B (LUMINOUS) #17: Thu Dec 19 02:15:35 EST 1996 hartmans@luminous:/u1/usr/src/sys/arch/i386/compile/LUMINOUS i386
>Description:
I built the current sources and klist dumps core if the ccache cannot be found. I know I am using the right shared libraries.
>How-To-Repeat:
hartmans@luminous:tmp(1)> cd /tmp
hartmans@luminous:/tmp(2)> KRB5CCNAME=/tmp/foobazuu klist
Segmentation fault (core dumped)
hartmans@luminous:/tmp(3)> which klist
/usr/local/bin/klist
hartmans@luminous:/tmp(4)> gdb /usr/local/build/krb5/clients/klist/klist klist.core
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
Core was generated by `klist'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/local/lib/libkrb5.so.1.1...done.
Reading symbols from /usr/local/lib/libcrypto.so.1.1...done.
Reading symbols from /usr/local/lib/libcom_err.so.3.0...done.
Reading symbols from /usr/lib/libc.so.12.10...done.
#0 0xb018680 in end ()
(gdb) bt
#0 0xb018680 in end ()
#1 0x1006942e in com_err_va (whoami=0xf7bfdb74 "klist", code=-1765328189,
fmt=0x21ed "while setting cache flags (ticket cache %s)",
ap=0xf7bfd648 "@`") at ../../../../src/krb5/src/util/et/com_err.c:104
#2 0x1006945a in com_err (whoami=0xf7bfdb74 "klist", code=-1765328189,
fmt=0x21ed "while setting cache flags (ticket cache %s)")
at ../../../../src/krb5/src/util/et/com_err.c:127
#3 0x2462 in do_ccache (name=0x0)
at ../../../../src/krb5/src/clients/klist/klist.c:283
#4 0x1cb2 in main (argc=1, argv=0xf7bfd6d8)
at ../../../../src/krb5/src/clients/klist/klist.c:156
(gdb) up
#1 0x1006942e in com_err_va (whoami=0xf7bfdb74 "klist", code=-1765328189,
fmt=0x21ed "while setting cache flags (ticket cache %s)",
ap=0xf7bfd648 "@`") at ../../../../src/krb5/src/util/et/com_err.c:104
104 (*com_err_hook)(whoami, code, fmt, ap);
(gdb) p com_err_hook
$1 = (void (*)()) 0x63657865 <end+1398322573>
(gdb) down
#0 0xb018680 in end ()
x/i $eip
0xb018680 <end+184632152>: Cannot access memory at address 0xb018680.
(gdb) p $eip
$2 = (void *) 0xb018680
(gdb) quit
hartmans@luminous:/tmp(5)> ldd /usr/local/bin/klist
/usr/local/bin/klist:
-lkrb5.1 => /usr/local/lib/libkrb5.so.1.1 (0x1001a000)
-lcrypto.1 => /usr/local/lib/libcrypto.so.1.1 (0x1005b000)
-lcom_err.3 => /usr/local/lib/libcom_err.so.3.0 (0x10069000)
-lc.12 => /usr/lib/libc.so.12.10 (0x1006b000)
hartmans@luminous:/tmp(6)> rm klist.core
hartmans@luminous:/tmp(7)>
>Fix:
>Audit-Trail:
>Unformatted: