From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 11:51:04 2010 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 7F73F106566B for ; Thu, 7 Oct 2010 11:51:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3D54E8FC21 for ; Thu, 7 Oct 2010 11:51:04 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:f586:565f:fda1:7015] (unknown [IPv6:2001:7b8:3a7:0:f586:565f:fda1:7015]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 71B905C43; Thu, 7 Oct 2010 13:51:03 +0200 (CEST) Message-ID: <4CADB42A.2000605@FreeBSD.org> Date: Thu, 07 Oct 2010 13:51:06 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.12pre) Gecko/20101001 Lanikai/3.1.5pre MIME-Version: 1.0 To: Dmitry Krivenok References: <4CAD986B.6010107@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: c++: Internal error: Killed: 9 (program ld) 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: Thu, 07 Oct 2010 11:51:04 -0000 On 2010-10-07 12:51, Dmitry Krivenok wrote: > I run ld under gdb and found the place where it fails: ... > Program received signal SIGKILL, Killed. > 0x000000000042e093 in bfd_elf_final_link (abfd=0x800915140, info=0x66c900) > at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.c:7247 > 7247 ext_size = elf_section_data > (sec)->rel_hdr.sh_size; Since you are getting SIGKILL, not SIGSEGV, it suggests that you may be running out of memory, and ld is killed. Can you check memory/swap usage during this linking? You should also see messages in the system logs, if programs are killed because of memory exhaustion.