Date: Fri, 10 Jan 2014 20:05:37 GMT From: Garrett Cooper <yaneurabeya@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/185646: nmtree segfaulst on "malformed mtree files" Message-ID: <201401102005.s0AK5bnC068981@oldred.freebsd.org> Resent-Message-ID: <201401102010.s0AKA0cu069378@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 185646 >Category: bin >Synopsis: nmtree segfaulst on "malformed mtree files" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 10 20:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 11.0-CURRENT >Organization: n/a >Environment: FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r260516+632bcdb(master): Fri Jan 10 03:39:34 PST 2014 root@fbsd-vm.zonarsystems.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: Looks like the memory has already been scrubbed by jemalloc: # mtree -deU -f /usr/src/etc/mtree/BSD.tests.dist -p /var/tmp/temproot/usr/ Segmentation fault (core dumped) [root@ /usr/src]# gdb `which mtree` /var/tmp/temproot/usr/mtree.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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-marcel-freebsd"... Core was generated by `mtree'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libmd.so.6...done. Loaded symbols for /lib/libmd.so.6 Reading symbols from /lib/libutil.so.9...done. Loaded symbols for /lib/libutil.so.9 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x080529b5 in addchild (pathparent=0x5a5a5a5a, centry=0x2885d710) at /usr/src/usr.sbin/nmtree/../../contrib/mtree/spec.c:728 728 cur = pathparent->child; (gdb) x *pathparent Cannot access memory at address 0x5a5a5a5a >How-To-Repeat: fetch https://raw.github.com/yaneurabeya/freebsd/cfc6ad9bc622f4196577ecf38575ca78dfe5c005/etc/mtree/BSD.tests.dist mtree -deU -f /usr/src/etc/mtree/BSD.tests.dist -p /var/tmp/temproot/usr/ >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401102005.s0AK5bnC068981>