From owner-freebsd-current@FreeBSD.ORG Sun May 6 00:26:19 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78870106564A; Sun, 6 May 2012 00:26:19 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 915EC8FC0C; Sun, 6 May 2012 00:26:18 +0000 (UTC) Received: by bkvi17 with SMTP id i17so4189866bkv.13 for ; Sat, 05 May 2012 17:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Me8s2RR9EN2TnnDeMecP+5zs1I3WkxbaCVGvanM2C5Y=; b=Qc4zQDIrDTDfd/kLQosBKaxT+dMzpPAXj+wGoUdlOf1c6Np/9A/L9/0VxL09FrNrfj /3XPku6ioI4ScKvBdBUUi/+RvD+YcQwCCj6teE+mHlWxiPqDXD4Jm4exsawdeIyyh9Rf KyNsjTiHueaHO8PKfEicaSZHz6J+EYAIGoWfQUmA7X4xC1wvtLCdFePrafp0JGQzv3no 8DpfGpR7gKPZU78gFnl6rI1kvGocWSs8S6P0Q5R73voA5flLHe4DOMckM/0Yc9ZOuKKr aaLgdlyW16XdHQo4gQOk0lmSO3OmeAt2GpaCSWntyqx2YbQ1t1S3XerxuYaCxyDPUc7q N9Jg== MIME-Version: 1.0 Received: by 10.205.133.210 with SMTP id hz18mr3685064bkc.117.1336263977403; Sat, 05 May 2012 17:26:17 -0700 (PDT) Received: by 10.204.157.11 with HTTP; Sat, 5 May 2012 17:26:17 -0700 (PDT) In-Reply-To: <4FA5BDAD.5090809@gmail.com> References: <4FA58672.1040201@FreeBSD.org> <4FA5BDAD.5090809@gmail.com> Date: Sat, 5 May 2012 20:26:17 -0400 Message-ID: From: Outback Dingo To: davidxu@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: bf1783@gmail.com, Steve Wills , freebsd-current@freebsd.org, "b. f." Subject: Re: ctfmerge core dump X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 00:26:19 -0000 On Sat, May 5, 2012 at 7:54 PM, David Xu wrote: > On 2012/5/6 5:08, b. f. wrote: >> >> On 5/5/12, Steve Wills =A0wrote: >>> >>> On 05/05/12 15:43, b. f. wrote: >>>> >>>> Steve Wills wrote: >>>>> >>>>> After updating from -CURRENT as of April 5 to one built today, I now >>>>> get >>>>> a core dump running ctfmerge on libc: >>>>> >>>>> ctfmerge -L VERSION -g -o libc.so.7 syscall.So fork.So...... >>>>> Bus error (core dumped) >>>>> *** [libc.so.7] Error code 138 >>>>> >>>>> Anyone else seeing this or have any idea how to avoid it? >>>> >>>> Yes, I'm also seeing such problems when attempting to build a r235052 >>>> amd64 kernel on r235035 amd64. (This problem did not occur when >>>> building a r235035 amd64 world and kernel on r234854 amd64.) =A0ctfmer= ge >>>> succeeds for several kernel modules but fails with kgssapi.ko.debug, >>>> linux.ko.debug, or kernel.debug. I'm not yet sure which change has >>>> caused this, or how to avoid it. >>>> >>> Thanks for the info. I took a look at the dump and see this: >>> >>> % sudo gdb /usr/bin/ctfmerge ctfmerge.core >>> [GDB will not be able to debug user-mode threads: Undefined symbol >>> "td_thr_getxmmregs"] >>> GNU gdb 6.1.1 [FreeBSD] >>> Copyright 2004 Free Software Foundation, Inc. >>> GDB is free software, covered by the GNU General Public License, and yo= u >>> 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. =A0Type "show warranty" for >>> details. >>> This GDB was configured as "amd64-marcel-freebsd"... >>> Core was generated by `ctfmerge'. >>> Program terminated with signal 10, Bus error. >>> Reading symbols from /lib/libctf.so.2...done. >>> Loaded symbols for /lib/libctf.so.2 >>> Reading symbols from /usr/lib/libdwarf.so.3...done. >>> Loaded symbols for /usr/lib/libdwarf.so.3 >>> Reading symbols from /usr/lib/libelf.so.1...done. >>> Loaded symbols for /usr/lib/libelf.so.1 >>> Reading symbols from /lib/libz.so.6...done. >>> Loaded symbols for /lib/libz.so.6 >>> Reading symbols from /lib/libthr.so.3...done. >>> Loaded symbols for /lib/libthr.so.3 >>> 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 =A00x00000000004064b0 in fifo_len (f=3D0x801c29070) at >>> >>> /usr/src/cddl/usr.bin/ctfmerge/../../../cddl/contrib/opensolaris/tools/= ctf/cvt/fifo.c:128 >>> 128 =A0 =A0 =A0 =A0 =A0 =A0 for (i =3D 0, fn =3D f->f_head; fn; fn =3D = fn->fn_next, i++); >>> (gdb) bt >>> #0 =A00x00000000004064b0 in fifo_len (f=3D0x801c29070) at >>> >>> /usr/src/cddl/usr.bin/ctfmerge/../../../cddl/contrib/opensolaris/tools/= ctf/cvt/fifo.c:128 >>> #1 =A00x000000000040622c in worker_thread (wq=3D0x610ee0) at >>> >>> /usr/src/cddl/usr.bin/ctfmerge/../../../cddl/contrib/opensolaris/tools/= ctf/cvt/ctfmerge.c:329 >>> #2 =A00x0000000801078da9 in thread_start (curthread=3D0x801c0f800) at >>> /usr/src/lib/libthr/thread/thr_create.c:284 >>> #3 =A00x0000000000000000 in ?? () >>> Cannot access memory at address 0x7fffff5fb000 >>> (gdb) >>> >> After reverting the recent libthr changes in r234947, I am no longer >> encountering this problem. >> >> b. >> > I have fixed it in r235068. hopefully itll fix kernel compilations also halting with signal 10 > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= "