[11325] in Athena Bugs
sun4 7.6P: attach
daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Tue Nov 2 11:19:37 1993
From: jweiss@MIT.EDU
To: bugs@MIT.EDU
Cc: jweiss@MIT.EDU
Date: Tue, 02 Nov 93 11:19:14 EST
System name: the-other-woman
Type and version: SPARC/Classic 7.6P (1 update(s) to same version)
Display type: cgthree
What were you trying to do?
I tried to attach the locker aeneas:ftp with the following
command line:
attach -m /mit/athena-dist -e aeneas:ftp
What's wrong:
Well besides the fact that I was a bonehead and inserted
a '-e' in the following command where there shouldn't have been one,
attach shouldn't have considered this an excuse to dump core.
the-other-woman:/var/tmp: attach -m /mit/athena-dist -e aeneas:ftp
attach: Illegal explicit definition "aeneas:ftp" for type Segmentation fault
Note that attach is setuid so it will only dump core if you run it as root.
What should have happened:
I should have gotten an error message that didn't cause attach
to dump core.
Please describe any relevant documentation references:
the-other-woman# gdb `where attach` 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 (sparc-sun-solaris2.1), Copyright 1993 Free Software Foundation, Inc...
Core was generated by `attach -m /mit/athena-dist -e aeneas:ftp'.
Program terminated with signal 11, Segmentation fault.
procfs (find_procinfo): Couldn't locate pid 0
#0 0xef6e3350 in __My_length ()
(gdb) where
#0 0xef6e3350 in __My_length ()
#1 0xef715d88 in __My_length ()
#2 0xef716e5c in __My_length ()
#3 0x1a574 in nfs_explicit ()
#4 0x164f8 in build_hesiod_line ()
#5 0x18750 in attach ()
#6 0x159e4 in attachcmd ()
#7 0x14bfc in main ()