From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 11:57:14 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 1576C106566B; Thu, 7 Oct 2010 11:57:14 +0000 (UTC) (envelope-from krivenok.dmitry@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id AE8408FC0A; Thu, 7 Oct 2010 11:57:13 +0000 (UTC) Received: by gyg4 with SMTP id 4so283854gyg.13 for ; Thu, 07 Oct 2010 04:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Co4uaJvUft/XXguDUsefaT9Le+0F5TqjUk4liS8xfxw=; b=byD1n8iqHg1caakBPGJaaSCmcZ6K4nWsYcIT2IRVIJckXDZHlm9q2srLteethwFem/ emxLCXXeE9VMkaxM4sxS2ub9XOMYUMW21+868dSVNdZyRWHMe9O9u26xapapVGTj3anv fjnat/K6WkGGukZt4RdeluUkbDw5CBzJRU88s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nTqjIeqRJbI/orTeOYNxtEtAy3e0HjzOH/iZMeY9BdvukN26FYn9rE/UGiWj6H4Gd1 gWRax0dhkKX23FmvYDy990Amu6bZN8uM7SNToMx2gD79bi+MO4DMQdGySiASDgyaBfgC 47+x+X6UXbqcgDFuZkf+d2wKFvaKGroIiu7ao= MIME-Version: 1.0 Received: by 10.90.90.20 with SMTP id n20mr551146agb.201.1286452632840; Thu, 07 Oct 2010 04:57:12 -0700 (PDT) Received: by 10.220.193.77 with HTTP; Thu, 7 Oct 2010 04:57:12 -0700 (PDT) In-Reply-To: <4CADB42A.2000605@FreeBSD.org> References: <4CAD986B.6010107@FreeBSD.org> <4CADB42A.2000605@FreeBSD.org> Date: Thu, 7 Oct 2010 15:57:12 +0400 Message-ID: From: Dmitry Krivenok To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:57:14 -0000 Yes, you are right. I see a lot of messages like below in dmesg output: swap_pager_getswapspace(5): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed pid 50038 (ld), uid 0, was killed: out of swap space pid 60947 (sshd), uid 1001, was killed: out of swap space swap_pager: out of swap space swap_pager_getswapspace(16): failed pid 50872 (ld), uid 0, was killed: out of swap space swap_pager: out of swap space swap_pager_getswapspace(2): failed pid 51222 (ld), uid 0, was killed: out of swap space swap_pager: out of swap space swap_pager_getswapspace(16): failed pid 51240 (ld), uid 0, was killed: out of swap space Perhaps I just need to add more swap and memory: krived@csx-spb-freebsd9 15:54:47 ~ $ [0] swapinfo Device 1K-blocks Used Avail Capacity /dev/da0s1b 500000 499992 8 100% krived@csx-spb-freebsd9 15:54:49 ~ $ [0] Thanks! On Thu, Oct 7, 2010 at 3:51 PM, Dimitry Andric wrote: > 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=3D0x800915140, info=3D0x6= 6c900) >> =A0 =A0 at >> /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/el= flink.c:7247 >> 7247 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ext_size =3D 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. =A0Can you check memory/swap > usage during this linking? =A0You should also see messages in the system > logs, if programs are killed because of memory exhaustion. > --=20 Sincerely yours, Dmitry V. Krivenok e-mail: krivenok.dmitry@gmail.com skype: krivenok_dmitry jabber: krivenok_dmitry@jabber.ru icq: 242-526-443