From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 27 14:50:11 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3351116A4CF for ; Tue, 27 Apr 2004 14:50:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 188F743D45 for ; Tue, 27 Apr 2004 14:50:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3RLoA3n057529 for ; Tue, 27 Apr 2004 14:50:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i3RLoAl3057528; Tue, 27 Apr 2004 14:50:10 -0700 (PDT) (envelope-from gnats) Resent-Date: Tue, 27 Apr 2004 14:50:10 -0700 (PDT) Resent-Message-Id: <200404272150.i3RLoAl3057528@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dariusz Kulinski Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B1C016A4CE for ; Tue, 27 Apr 2004 14:44:26 -0700 (PDT) Received: from freebsd.takeda.tk (node-402413e2.sna.onnet.us.uu.net [64.36.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id A031D43D1D for ; Tue, 27 Apr 2004 14:44:21 -0700 (PDT) (envelope-from takeda@takeda.tk) Received: from freebsd.takeda.tk (takeda@localhost.takeda.tk [127.0.0.1]) by freebsd.takeda.tk (8.12.9p2/8.12.9) with ESMTP id i3RLiKIp089469 for ; Tue, 27 Apr 2004 14:44:20 -0700 (PDT) (envelope-from takeda@takeda.tk) Received: (from takeda@localhost) by freebsd.takeda.tk (8.12.9p2/8.12.9/Submit) id i3RLiJce089468; Tue, 27 Apr 2004 14:44:19 -0700 (PDT) (envelope-from takeda) Message-Id: <200404272144.i3RLiJce089468@freebsd.takeda.tk> Date: Tue, 27 Apr 2004 14:44:19 -0700 (PDT) From: Dariusz Kulinski To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/66036: restore crashes (reproducable, core file and backtrace log available) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dariusz Kulinski List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 21:50:11 -0000 >Number: 66036 >Category: bin >Synopsis: restore crashes (reproducable, core file and backtrace log available) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 27 14:50:10 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Dariusz Kulinski >Release: FreeBSD 4.9-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD freebsd.takeda.tk 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Wed Mar 17 22:05:17 PST 2004 root@freebsd.takeda.tk:/usr/obj/usr/src/sys/TUNED i386 >Description: I booted from 4.9-mini cd, then created slices I went to fixit menu, and went to shell ussing fixit floppy which I found on that CDROM. First two restores (level 0, and next incremental) were succesfuly, restore started crashing on third one. I went to my system, recompiled system restore utility, with DEBUG_FLAGS=-g it crashed too, but I got core files with debug symbols, here is result from bt: root@freebsd:/root/crash# gdb restore -c rst.core GNU gdb 4.18 (FreeBSD) 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"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf warning: core file may not match specified executable file. Core was generated by `rst'. Program terminated with signal 11, Segmentation fault. #0 myname (ep=0x85caa10) at /usr/src/sbin/restore/symtab.c:207 207 for (cp = &namebuf[MAXPATHLEN - 2]; cp > &namebuf[ep->e_namlen]; ) { (gdb) bt #0 myname (ep=0x85caa10) at /usr/src/sbin/restore/symtab.c:207 #1 0x804f632 in removeleaf (ep=0x85caa10) at /usr/src/sbin/restore/utilities.c:196 #2 0x804a084 in removeoldleaves () at /usr/src/sbin/restore/restore.c:194 #3 0x8048520 in main (argc=1, argv=0xbfbff7a0) at /usr/src/sbin/restore/main.c:213 (gdb) p ep->e_namlen Cannot access memory at address 0x88441a0. (gdb) p namebuf $1 = '\000' , "./usr/./usr/X./usr/doc/en_US.ISO8859-1/a../tm/ace+tao/files/patch-Scheduling_Service\000" (gdb) If you need more informations please let me know, I'll try to keep that core file on my HD. This thing worrys me, because when system crashes looks like I won't be able to restore everything. >How-To-Repeat: I can reproduce it each time, but I don't have idea how to produce dump output which would crash restore. >Fix: >Release-Note: >Audit-Trail: >Unformatted: