From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 28 21:50:04 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71B7E106564A for ; Sun, 28 Dec 2008 21:50:04 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id F36D58FC1A for ; Sun, 28 Dec 2008 21:50:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5FC559CB1A8; Sun, 28 Dec 2008 22:44:51 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2GLEYlFzK+dp; Sun, 28 Dec 2008 22:44:39 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id D4A709CB2A1; Sun, 28 Dec 2008 22:44:38 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id mBSLicgq083623; Sun, 28 Dec 2008 22:44:38 +0100 (CET) (envelope-from rdivacky) Date: Sun, 28 Dec 2008 22:44:38 +0100 From: Roman Divacky To: "Arno J. Klaassen" Message-ID: <20081228214438.GA83007@freebsd.org> References: <20081227220645.GA13295@freebsd.org> <20081228175745.GA56640@freebsd.org> <20081228202526.GA74948@freebsd.org> <20081228211505.GA80323@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: Re: 7-stable: linux_dist-gentoo-stage3 wonn't bootstrap X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 21:50:04 -0000 On Sun, Dec 28, 2008 at 10:42:44PM +0100, Arno J. Klaassen wrote: > Roman Divacky writes: >=20 > > On Sun, Dec 28, 2008 at 09:38:09PM +0100, Arno J. Klaassen wrote: > > >=20 > > > Roman Divacky writes: > > >=20 > > > > > >=20 > > > > > > does this patch fix the hang?=20 > > > > > >=20 > > > > > > www.vlakno.cz/~rdivacky/linprocfs.patch > > > > >=20 > > > > > nope, though it does fix the lock order reversal=20 > > > > > (I attach the slightly modified patch for linprocfs.c to > > > > > make it compile) > > > > =20 > > > > the LOR is probably harmless.... dont bother with that patch :) > > > >=20 > > > > > funny enough, it again hangs in compiling gconv_simple.c=20 > > > > > with cc1 in pipewr state and no assembler showing up in > > > > > ps(1) after having succesfully compiled a bunch of other > > > > > files. > > > >=20 > > > > you mean native cc1? or linux one? > > >=20 > > > linux : > > >=20 > > > # ps axuww | fgrep 1129 > > > root 11290 0.0 0.1 2296 1432 0 D 8:29PM 0:00.01 [i= 486-pc-linux-gnu-g] > > > root 11291 0.0 0.8 18152 16808 0 I 8:29PM 0:00.96 [c= c1] > > >=20 > > > and no trace of gconv_simple.o > > >=20 > > > last line of log-file is : > > >=20 > > > i486-pc-linux-gnu-gcc gconv_simple.c -c -std=3Dgnu99 -O2 -Wall -Winl= ine -Wwrite-strings -fmerge-all-constants -fno-strict-aliasing -mtune=3Di68= 6 -pipe -Wstrict-prototypes -mpreferred-stack-boundary=3D2 -I../include= -I/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i486-pc-linux-g= nu-nptl/iconv -I/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i4= 86-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linu= x/i386/i486 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/l= inux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../= sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/l= inux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../= sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/= i386 -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/= unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../ports/sysdeps/= unix -I../sysdeps/unix! > -I.! > > > ./sysdeps/posix -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/i486 -= I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/= wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../s= ysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sy= sdeps/generic -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem = /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/include -isystem /usr/lib/gcc/i486-pc-= linux-gnu/4.1.2/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -incl= ude ../include/libc-symbols.h -o /var/tmp/portage/sys-libs/glibc-2.6= .1/work/build-default-i486-pc-linux-gnu-nptl/iconv/gconv_simple.o -MD -MP -= MF /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i486-pc-linux-g= nu-nptl/iconv/gconv_simple.o.dt -MT /var/tmp/portage/sys-libs/glibc-2.6.1/w= ork/build-default-i486-pc-linux-gnu-nptl/iconv/gconv_simple.o > > >=20 > > >=20 > > > ++, Arno > > > =20 > >=20 > > can you break into DDB and extract a backtrace of the stuck process? >=20 > OK, I'll hook up a serconsole tomorrow .. >=20 > for now some good old quick n dirty copy paste by pen and paper : >=20 > 11290 (i486-pc-linux-gnu-gcc] >=20 > sched_switch > mi_switch > sleepq_switch > sleepq_wait > _sleep > linux_vfork > ia32_syscall > Xint0x80_syscall > syscall (190, Linux ELF32, linux_vfork) >=20 >=20 > 11291 (cc1) >=20 > sched_switch > mi_switch > sleepq_switch > sleepq_catch_signals > sleepq_wait_sig > _sleep > pipe_write > dofilewrite > kern_writev > write > ia32_syscall > Xint80_syscall > syscall (4, Linux ELF32, write) I dont see anything obvious.. can you do "ps axl" and see what the MWCHAN i= s? that might shed some light to this...