[15346] in Athena Bugs

home help back first fref pref prev next nref lref last post

Solaris 8.1.7: attach

daemon@ATHENA.MIT.EDU (John Hawkinson)
Sun Aug 3 06:56:37 1997

Date: Sun, 3 Aug 1997 06:56:31 -0400
To: bugs@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>

[portnoy!jhawk] /var/tmp> cp /bin/athena/attach /tmp
[portnoy!jhawk] /var/tmp# /tmp/attach -e sipb-old -m sipb-old
attach: Illegal explicit definition "sipb-old" for type NFS
Segmentation fault (core dumped)
[portnoy!jhawk] /var/tmp# /mit/gnu/bin/gdb /tmp/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.14 (sparc-sun-solaris2.3), 
Copyright 1995 Free Software Foundation, Inc...
Core was generated by `/tmp/attach -e sipb-old -m sipb-old'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/librpcsvc.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2..w.hdone.
Reading symbols from /usr/lib/libsocket.so.1.^U
..done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libelf.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
#0  0x172bc in build_hesiod_line (name=0xeffffaab "sipb-old", count=0xefffe5c0)
    at util.c:261
util.c:261: No such file or directory.
(gdb) where
#0  0x172bc in build_hesiod_line (name=0xeffffaab "sipb-old", count=0xefffe5c0)
    at util.c:261
#1  0x1ab0c in attach (name=0xeffffaab "sipb-old") at attach.c:33
#2  0x15f68 in attachcmd (argc=5, argv=0xeffff984) at main.c:684
#3  0x148cc in main (argc=5, argv=0xeffff984) at main.c:159
(gdb) dir /mit/source-8.1/athena/bin/attach
Source directories searched: /mit/source-8.1/athena/bin/attach:$cdir:$cwd
(gdb) where
#0  0x172bc in build_hesiod_line (name=0xeffffaab "sipb-old", count=0xefffe5c0)
    at util.c:261
#1  0x1ab0c in attach (name=0xeffffaab "sipb-old") at attach.c:33
#2  0x15f68 in attachcmd (argc=5, argv=0xeffff984) at main.c:684
#3  0x148cc in main (argc=5, argv=0xeffff984) at main.c:159
gdb) list build_hesiod_line,265
222     {
223         char **hes, **cpp;
224         struct _fstypes *fsp;
225         int n, i;
226         struct _attachtab *at, *atp;
227         
228         if (!explicit) {
229                 hes = conf_filsys_resolve(name);
230     #ifdef HESIOD
231                 if (!hes || !*hes)
232                         hes = hes_resolve(name, "filsys");
233     #endif
234                 if (!hes || !*hes) {
235                         fprintf(stderr, "%s: Can't resolve name\n", name);
236                         return (NULL);
237                 }
238         } else {
239                 fsp = get_fs(filsys_type ? filsys_type : "NFS");
240                 if (!fsp)
241                         return (NULL);
242                 if (!fsp->explicit) {
243                         fprintf(stderr,
244                                 "Explicit definitions for type %s not allowed\n",
245                                 filsys_type);
246                         return (NULL);
247                 }
248
249                 hes = (fsp->explicit)(name);
250         }
251
252         if (lookup || debug_flag) {
253             printf("%s resolves to:\n", name);
254             for (i=0;hes[i];i++)
255                 printf("%s\n", hes[i]);
256             putchar('\n');
257         }
258
259         /* Count the entries in hes and allocate space to parse them. */
260         n = 0;
261         for (cpp = hes; *cpp; cpp++)
262                 n++;
263         at = malloc(n * sizeof(struct _attachtab));
264         if (!at) {
265                 fprintf(stderr, "Can't malloc attachtab entries.\n");
(gdb) print cpp
$1 = (char **) 0x0
(gdb) print hes
$2 = (char **) 0x0
(gdb) print n
$3 = 0
(gdb) print fsp
$7 = (struct _fstypes *) 0x0

[portnoy!jhawk] /var/tmp# /tmp/attach -v -d -e sipb-old -m sipb-old
attach: Illegal explicit definition "sipb-old" for type NFS
sipb-old resolves to:
Segmentation fault (core dumped)

home help back first fref pref prev next nref lref last post