Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2004 14:44:19 -0700 (PDT)
From:      Dariusz Kulinski <takeda@takeda.tk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/66036: restore crashes (reproducable, core file and backtrace log available)
Message-ID:  <200404272144.i3RLiJce089468@freebsd.takeda.tk>
Resent-Message-ID: <200404272150.i3RLoAl3057528@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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' <repeats 938 times>, "./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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404272144.i3RLiJce089468>