Some more info.  Note that I cannot find iofflush.c anywhere in the
AFS 3.5 source tree.

(gdb) set args 3600 myname
(gdb) run
Starting program: ./reauth 3600 jblaine

Program received signal SIGSEGV, Segmentation fault.
0x40067c7f in _IO_fflush (fp=0x806ea88) at iofflush.c:41
(gdb) where
#0  0x40067c7f in _IO_fflush (fp=0x806ea88) at iofflush.c:41
#1  0x8060742 in des_read_pw_string ()
#2  0x804a3b0 in ka_UserReadPassword ()
#3  0x8049e09 in main ()
#4  0x4002ecb3 in __libc_start_main (main=0x8049d54 <main>, argc=3,
    argv=0xbffffa04, init=0x8049508 <_init>, fini=0x8065984 <_fini>,
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff9fc)
    at ../sysdeps/generic/libc-start.c:78

>Help?  Pretty please?
>
>OS: Red Hat Linux 6.0
>AFS: 3.5
>GCC: 2.95.1
>
>My link stage for building 'reauth' is reporting the following problem:
>
>    gcc -o reauth reauth.o /usr/afsws/lib/afs/libkauth.a \
>    /usr/afsws/lib/libubik.a /usr/afsws/lib/afs/libprot.a \
>    /usr/afsws/lib/librxkad.a /usr/afsws/lib//librx.a \
>    /usr/afsws/lib/afs/libauth.a /usr/afsws/lib/afs/libaudit.a \
>    /usr/afsws/lib/librxkad.a /usr/afsws/lib/libdes.a \
>    /usr/afsws/lib/afs/libcmd.a /usr/afsws/lib/afs/libcom_err.a \
>    /usr/afsws/lib/afs/util.a /usr/afsws/lib/liblwp.a \
>    /usr/afsws/lib/afs/libsys.a 
>    /usr/afsws/lib/afs/libsys.a(rmtsysc.o): In function `pioctl':
>    rmtsysc.o(.text+0x3cb): the `getwd' function is dangerous and should not
>    be used.
>
>and then running the binary gives me a SEGV and a nice core file.  Here's
>the end of a 'strace ./reauth 3600 jblaine':
>
>...
>stat("/usr/vice/etc/CellServDB", {st_mode=0, st_size=0, ...}) = 0
>open("/dev/tty", O_RDWR)                = 3
>SYS_174(0x2, 0xbfffd740, 0xbfffd6b4, 0x8, 0x2) = 0
>ioctl(3, TCGETA, {B38400 opost isig icanon echo ...}) = 0
>ioctl(3, TCSETAF, {B38400 opost isig icanon -echo ...}) = 0
>fstat(1, {st_mode=S_IFREG|S_ISUID|02, st_size=0, ...}) = 0
>mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001
>4000
>ioctl(1, TCGETS, {B38400 opost isig icanon -echo ...}) = 0
>--- SIGSEGV (Segmentation fault) ---
>+++ killed by SIGSEGV +++
>

Reply via email to