From owner-freebsd-stable@FreeBSD.ORG Sat Aug 30 00:43:30 2014 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 98E5185C; Sat, 30 Aug 2014 00:43:30 +0000 (UTC) Received: from gw.catspoiler.org (cl-1657.chi-02.us.sixxs.net [IPv6:2001:4978:f:678::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 26D831081; Sat, 30 Aug 2014 00:43:30 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s7U0hIXf073387; Fri, 29 Aug 2014 17:43:22 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201408300043.s7U0hIXf073387@gw.catspoiler.org> Date: Fri, 29 Aug 2014 17:43:18 -0700 (PDT) From: Don Lewis Subject: Re: building an 8.4-STABLE i386 poudriere jail on an 10.0-STABLE amd64 host To: gjb@FreeBSD.org In-Reply-To: <201408292318.s7TNIjMI073287@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: stable@FreeBSD.org, ian@FreeBSD.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2014 00:43:30 -0000 On 29 Aug, Don Lewis wrote: > With the patch below, I get further, but now lint is core getting > SIGBUS. > > ===> usr.bin/xlint/llib (all) > lint -cghapbx -Cposix /var/poudriere/jails/84STABLEi386/usr/src/usr.bin/xlint/llib/llib-lposix > llib-lposix: > lint: /usr/obj/i386/var/poudriere/jails/84STABLEi386/usr/src/tmp/usr/libexec/lint1 got signal 10 > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** [buildworld] Error code 2 > 1 error > ====>> Error: Failed to 'make buildworld' I simplified things a bit and am now just doing normal crossbuilds. I'm still seeing core dumps, even on amd64 -> amd64 crossbuilds. I'm not seeing a reason, though ... # gdb /usr/obj/tmp/stable8/tmp/usr/libexec/lint1 /usr/obj/tmp/stable8/usr.bin/xlint/llib/lint1.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 "amd64-marcel-freebsd"... Core was generated by `lint1'. Program terminated with signal 10, Bus error. #0 0x000000000040b061 in getcnode (tp=0x800c1f400, v=0x800c08160) at /tmp/stable8/usr.bin/xlint/lint1/tree.c:260 260 n->tn_val->v_u = v->v_u; (gdb) list 255 n->tn_op = CON; 256 n->tn_type = tp; 257 n->tn_val = tgetblk(sizeof (val_t)); 258 n->tn_val->v_tspec = tp->t_tspec; 259 n->tn_val->v_ansiu = v->v_ansiu; 260 n->tn_val->v_u = v->v_u; 261 free(v); 262 return (n); 263 } 264 (gdb) print n $1 = (tnode_t *) 0x80068f000 (gdb) print v $2 = (val_t *) 0x800c08160 (gdb) print *n $3 = {tn_op = CON, tn_type = 0x800c1f400, tn_lvalue = 0, tn_cast = 0, tn_parn = 0, tn_u = {tn_s = {_tn_left = 0x80068f028, _tn_right = 0x0}, _tn_sym = 0x80068f028, _tn_val = 0x80068f028, _tn_strg = 0x80068f028}} (gdb) print *v $4 = {v_tspec = INT, v_ansiu = 0, v_u = {_v_quad = 128, _v_ldbl = 4.6658554008095674912363595950328574e-4949}} (gdb) print *n->tn_u._tn_val $5 = {v_tspec = INT, v_ansiu = 0, v_u = {_v_quad = 0, _v_ldbl = 0}} (gdb) print v->v_u $6 = {_v_quad = 128, _v_ldbl = 4.6658554008095674912363595950328574e-4949} (gdb) print n->tn_u._tn_val->v_u $7 = {_v_quad = 0, _v_ldbl = 0} Looks like all the pointers are OK, so why the SIGBUS?