Date: Thu, 2 Aug 2001 20:47:51 +0300 (EEST) From: Maxim Sobolev <sobomax@FreeBSD.org> To: iedowse@maths.tcd.ie Cc: current@FreeBSD.org Subject: rpc.umtall dumps core on each startup/shutdown Message-ID: <200108021748.f72HmW846514@vega.vega.com>
next in thread | raw e-mail | index | archive | help
--%--multipart-mixed-boundary-1.46498.996774471--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
I found that the rpc.umntall program from time to time starts dumping a core
at each startup/shutdown. Removal of /var/db/mountab helps for certain
period of time, but eventually the problem reoccurs. Attached please find
backtrace of two cores (sig11 on shutdown and sig6 on startup) and
mountab from the affected machine. Please fix.
I am observing this problem on two 5-CURRENT machines updated today.
-Maxim
--%--multipart-mixed-boundary-1.46498.996774471--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ASCII text
Content-Disposition: attachment; filename="mounttab.bad"
996754211 gate /usr/ports
996754212 gate /shares/UF/distfiles
996754212 gate /shares/UF/packages
996754212 gate /usr/tmp/MyPorts
996768844 b /usr/obj
996768846 gate /usr/current/src
996768860 b /usr/obj
996770226 gate /usr/current/src
996770235 b /usr/obj
996772013 gate /usr/current/src
996772416 gate /usr/current/src
996772830 gate /usr/current/src
996773283 gate /usr/current/src
996773503 gate /usr/current/src
996773577 gate /tmp
--%--multipart-mixed-boundary-1.46498.996774471--%
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: ASCII English text, with CRLF, LF line terminators
Content-Disposition: attachment; filename="rpc.umntall.log"
Script started on Thu Aug 2 20:33:15 2001
root@notebook# gdb /usr/sbin/rpc.umntall /tmp/rpc.umntall.343.core
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 "i386-unknown-freebsd"...
Core was generated by `rpc.umntall'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.5...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x280f0d31 in isatty () from /usr/lib/libc.so.5
(gdb) bt
#0 0x280f0d31 in isatty () from /usr/lib/libc.so.5
#1 0x280f111a in free () from /usr/lib/libc.so.5
#2 0x280bd44c in clnt_dg_create () from /usr/lib/libc.so.5
#3 0x8049128 in do_umount (hostname=0x8054004 "gate", dirp=0x8054103 "/usr/current/src")
at rpc.umntall.c:217
#4 0x8048dcc in main (argc=0, argv=0xbfbffdd8) at rpc.umntall.c:129
#5 0x8048ad5 in _start ()
(gdb) up
#1 0x280f111a in free () from /usr/lib/libc.so.5
(gdb) up
#2 0x280bd44c in clnt_dg_create () from /usr/lib/libc.so.5
(gdb) up
#3 0x8049128 in do_umount (hostname=0x8054004 "gate", dirp=0x8054103 "/usr/current/src")
at rpc.umntall.c:217
217 clnt_destroy(clp);
(gdb) list
212 clp->cl_auth = authsys_create_default();
213 try.tv_sec = 3;
214 try.tv_usec = 0;
215 clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, xdr_dir, dirp,
216 xdr_void, (caddr_t)0, try);
217 clnt_destroy(clp);
218 if (clnt_stat != RPC_SUCCESS) {
219 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMOUNT"));
220 return (0);
221 }
(gdb) q
root@notebook# gdb /usr/sbin/rpc.umntall /tmp/rpc.umntall.167.core
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 "i386-unknown-freebsd"...
Core was generated by `rpc.umntall'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libc.so.5...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x280a3e58 in kill () from /usr/lib/libc.so.5
(gdb) bt
#0 0x280a3e58 in kill () from /usr/lib/libc.so.5
#1 0x280f146a in abort () from /usr/lib/libc.so.5
#2 0x280f0061 in isatty () from /usr/lib/libc.so.5
#3 0x280f0dc8 in isatty () from /usr/lib/libc.so.5
#4 0x280f111a in free () from /usr/lib/libc.so.5
#5 0x280dfe69 in fclose () from /usr/lib/libc.so.5
#6 0x280c4b9f in endnetconfig () from /usr/lib/libc.so.5
#7 0x280c28d0 in __rpc_endconf () from /usr/lib/libc.so.5
#8 0x280bbd15 in clnt_create () from /usr/lib/libc.so.5
#9 0x804908c in do_umount (hostname=0x8050004 "gate", dirp=0x8050103 "/shares/UF/packages")
at rpc.umntall.c:207
#10 0x8048dcc in main (argc=0, argv=0xbfbffdd4) at rpc.umntall.c:129
#11 0x8048ad5 in _start ()
(gdb) up 9
#9 0x804908c in do_umount (hostname=0x8050004 "gate", dirp=0x8050103 "/shares/UF/packages")
at rpc.umntall.c:207
207 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp");
(gdb) l
202 do_umount(char *hostname, char *dirp) {
203 enum clnt_stat clnt_stat;
204 struct timeval try;
205 CLIENT *clp;
206
207 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp");
208 if (clp == NULL) {
209 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT"));
210 return (1);
211 }
(gdb) q
root@notebook# exit
Script done on Thu Aug 2 20:34:09 2001
--%--multipart-mixed-boundary-1.46498.996774471--%--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108021748.f72HmW846514>
