From owner-svn-src-head@FreeBSD.ORG Wed Jan 25 05:55:18 2012 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1F21065670; Wed, 25 Jan 2012 05:55:18 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 84E308FC14; Wed, 25 Jan 2012 05:55:17 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id q0P5nP3M021873; Wed, 25 Jan 2012 06:49:26 +0100 (CET) (envelope-from andreast@FreeBSD.org) Message-ID: <4F1F9941.5040608@FreeBSD.org> Date: Wed, 25 Jan 2012 06:55:13 +0100 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Garrett Cooper References: <201201200138.q0K1cLZP016695@svn.freebsd.org> <4F1F3585.8060802@FreeBSD.org> <20120125.094001.163024621361318219.hrs@allbsd.org> <4F1F94B3.6020803@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Hiroki Sato , eadler@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r230353 - head/usr.sbin/makefs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2012 05:55:18 -0000 On 25.01.12 06:50, Garrett Cooper wrote: > On Tue, Jan 24, 2012 at 9:35 PM, Andreas Tobler wrote: >> > > ... > >> It is actually r230354, this is the commit which shows the failure. >> And I reverted back to 230353 and onfirmed that it 'works'. >> >> I additionally built with -O0 -g, see below. >> >> If you need more details, I'll be out the next 15h but later on I can >> continue. >> >> Thank you very much! >> Andreas >> >> Here the output from the binary built with "-g": >> ------ >> [andreast@tcx58] /export/home/andreast/> printf "run -t cd9660 -o chrp-boot >> -o rockridge -o label=pseries -B4321 p.iso /export/netboot/powerpc64/\nbt\nf >> 1\n f 2\n" | gdb -x /dev/stdin -batch /usr/sbin/makefs > > ... > >> delete_chars); > > 1. What does 'list' say for that frame (the line numbers are misleading)? > 2. What compiler are you using to compile the binary? 1.) Starting program: /usr/sbin/makefs -t cd9660 -o chrp-boot -o rockridge -o label=pseries -B4321 p.iso /export/netboot/powerpc64 Program received signal SIGSEGV, Segmentation fault. 0x0000000800b781d6 in memcpy () from /lib/libc.so.7 (gdb) l 85 struct stat sb; 86 struct timeval start; 87 fstype_t *fstype; 88 fsinfo_t fsoptions; 89 fsnode *root; 90 int ch, len; 91 char *subtree; 92 char *specfile; 93 94 setprogname(argv[0]); (gdb) up #1 0x00000000004045f8 in cd9660_rename_filename (iter=0x0, num=36, delete_chars=2) at /export/devel/fbsd/src/usr.sbin/makefs/cd9660.c:1120 1120 memcpy(tmp, (iter->o_name), numbts); (gdb) l 1115 } 1116 } 1117 */ 1118 1119 /* (copying just the filename before the '.' */ 1120 memcpy(tmp, (iter->o_name), numbts); 1121 1122 /* adding the appropriate number following the name */ 1123 temp = i; 1124 while (digits > 0) { 2.) gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] Thanks! Andreas