[16899] in Athena Bugs
discuss core
daemon@ATHENA.MIT.EDU (John Hawkinson)
Wed Jun 16 15:07:00 1999
Date: Wed, 16 Jun 1999 15:07:29 -0400 (EDT)
Message-Id: <199906161907.PAA14390@jhawk-foo.bbnplanet.com>
To: bugs@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>
I ^C'd an 'ls' in discuss on cvp (8.3.4) and got:
^Cdiscuss (list): Interrupted system call Can't read transaction info
discuss: q
Segmentation fault (core dumped)
contents-vnder-pressvre!jhawk] /var/tmp> gdb discuss core.jhawk
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "sparc-sun-solaris2.6"...
Core was generated by `discuss ipb-ec'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
Reading symbols from /usr/lib/nss_dns.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
#0 0xef6a3374 in realfree () from /usr/lib/libc.so.1
(gdb) where
#0 0xef6a3374 in realfree () from /usr/lib/libc.so.1
#1 0xef6a3bcc in cleanfree () from /usr/lib/libc.so.1
#2 0xef6a2e28 in _malloc_unlocked () from /usr/lib/libc.so.1
#3 0xef6a2d30 in malloc () from /usr/lib/libc.so.1
#4 0x2e9f0 in ds (s=0x93d98 "/mit/jhawk/.meetings") at dsname.c:73
#5 0x2d5fc in setdbent (user_id=0x998b0 "jhawk@ATHENA.MIT.EDU")
at dsname.c:260
#6 0x2e20c in dsc_update_mtg_set (user_id=0x998b0 "jhawk@ATHENA.MIT.EDU",
set=0x8e348, num=1, result=0xeffff57c) at dsname.c:532
#7 0x281bc in leave_mtg () at goto.c:247
#8 0x1fd08 in main (argc=0, argv=0xeffff68c) at discuss.c:204
(gdb) shell attach source
attach: /afs/dev.mit.edu/source/src-current attached to /mit/source for filesystem source
(gdb) shell look dsname.c /mit/source/FILES.look
dsname.c ./athena/bin/discuss/libds/dsname.c
(gdb) dir /mit/source/athena/bin/discuss/libds
Source directories searched: /mit/source/athena/bin/discuss/libds:$cdir:$cwd
(gdb) shell look discuss.c /mit/source/FILES.look
discuss.c ./athena/bin/discuss/client/discuss.c
(gdb) dir /mit/source/athena/bin/discuss/client
Source directories searched: /mit/source/athena/bin/discuss/client:/mit/source/athena/bin/discuss/libds:$cdir:$cwd
(gdb)
(gdb) frame 4
#4 0x2e9f0 in ds (s=0x93d98 "/mit/jhawk/.meetings") at dsname.c:73
73 register char *ns = malloc (len);
(gdb) list
68
69 INLINE static char * ds(s)
70 const char *s;
71 {
72 register int len = strlen (s) + 1;
73 register char *ns = malloc (len);
74 memcpy (ns, s, len);
75 return (ns);
76 }
77
Memory corruption?
--jhawk