Date: Thu, 7 Oct 2010 15:57:12 +0400 From: Dmitry Krivenok <krivenok.dmitry@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: c++: Internal error: Killed: 9 (program ld) Message-ID: <AANLkTi==QnEXSneWnFssdZHgR20=dR87ZqwoP9=XrwRq@mail.gmail.com> In-Reply-To: <4CADB42A.2000605@FreeBSD.org> References: <AANLkTina9-oWOj4L-sFcYTWAfS8y%2B9Y=WWwTEk53Ghdz@mail.gmail.com> <4CAD986B.6010107@FreeBSD.org> <AANLkTikoSU%2B1P%2BMK39QP-ALOU%2BiQhNrdsCRgeg0v2D%2BN@mail.gmail.com> <4CADB42A.2000605@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dim@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi==QnEXSneWnFssdZHgR20=dR87ZqwoP9=XrwRq>