From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 23:15:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A85916A468 for ; Tue, 27 Nov 2007 23:15:00 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (muon.bluestop.org [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id DC2BF13C4DB for ; Tue, 27 Nov 2007 23:14:59 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.draftnet (unknown [IPv6:2a01:348:10f:1::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id DB0A8C4001; Tue, 27 Nov 2007 23:14:57 +0000 (GMT) Message-ID: <474CA4E7.9060401@cran.org.uk> Date: Tue, 27 Nov 2007 23:14:47 +0000 From: Bruce Cran User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: Pieter de Goeje References: <474C3A12.9040107@gmail.com> <200711271657.00637.pieter@degoeje.nl> In-Reply-To: <200711271657.00637.pieter@degoeje.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andy Greenwood , Aryeh Friedman , freebsd-questions@freebsd.org Subject: Re: Upper limit on make -j ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 23:15:00 -0000 Pieter de Goeje wrote: > On Tuesday 27 November 2007, Andy Greenwood wrote: >> Aryeh Friedman wrote: >>> Before I file a PR I just want to know if it is worth it to file a PR >>> for: >>> >>> make -j1000 buildworld buildkernel installkernel >>> seg faulting >> I thought that the kernel builds couldn't be built using parallel jobs, >> that it might break something. Is that not true? > In my experience parallel kernel builds are fine. I think (wild guess) the OP > is running out of memory and somewhere in make or gcc the return value of > malloc() isn't checked. > > - > Pieter de Goeje I just tried this on my amd64 7.0-BETA3 system with 2GB RAM and swap was never touched but make still segfaulted during 'make -j1000 buildworld': [...] rm -f .depend mkdep -f .depend -a [long list of files] echo libc.so.7: /usr/obj/usr/src/tmp/usr/lib/libgcc.a >> .depend Segmentation fault (core dumped) *** Error code 139 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error > > gdb -core /usr/obj/usr/src/lib/libc/make.core /usr/bin/make GNU gdb 6.1.1 [FreeBSD] [...] This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `make'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000432067 in __vfprintf () (gdb) bt #0 0x0000000000432067 in __vfprintf () #1 0x0000000000435114 in vfprintf () #2 0x000000000042d676 in fprintf () #3 0x0000000000406305 in JobExec (job=0x80123f000, argv=0x7fffffffdb10) at /usr/src/usr.bin/make/job.c:1321 #4 0x000000000040702d in JobStart (gn=0x8006d9120, flags=Variable "flags" is not available. ) at /usr/src/usr.bin/make/job.c:1843 #5 0x000000000040b14c in MakeStartJobs () at /usr/src/usr.bin/make/make.c:621 #6 0x000000000040b34c in Make_Run (targs=0x7fffffffe7f0) at /usr/src/usr.bin/make/make.c:793 #7 0x000000000040a081 in main (argc=0, argv=0x0) at /usr/src/usr.bin/make/main.c:1273 -- Bruce