Gentoo Archives: gentoo-hardened

From: "Tóth Attila" <atoth@××××××××××.hu>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] /bin/ld: failed to set dynamic section sizes: Memory exhausted
Date: Fri, 07 Sep 2012 15:05:33
Message-Id: 4a1ffc708fe9b0459de1dbc20e3a5b8e.squirrel@atoth.sote.hu
In Reply to: [gentoo-hardened] /bin/ld: failed to set dynamic section sizes: Memory exhausted by "Tóth Attila"
1 I also started to be afraid. I have only 8Gb in my 64bit laptop and I'm
2 currently replacing the server (not because of the symptoms) to core-i7
3 with 16Gb of RAM. How long will it be enough if 3.6Gb on a 32bit already
4 too small?
5 --
6 dr Tóth Attila, Radiológus, 06-20-825-8057
7 Attila Toth MD, Radiologist, +36-20-825-8057
8
9 2012.Szeptember 7.(P) 14:16 időpontban "Tóth Attila" ezt írta:
10 > I have a 32-bit (Athlon MP) machine running Hardened Gentoo. The system
11 > has 4Gb of RAM, but it only sees around 3.6Gb due to hardware reasons.
12 >
13 > Recently I couldn't upgrade either thunderbird or seamonkey, because a the
14 > most important linking dies with this error message:
15 > /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld:
16 > failed to set dynamic section sizes: Memory exhausted
17 >
18 > The linker process consumes nearly one third of the system memory. The top
19 > virtual memory consumption is around 35.9% for a moment before
20 > termination, but I couldn't capture it. Here is how it stays for a minute
21 > before the process dies (taken from top):
22 > 10263 root 20 0 1176m 1.1g 2668 R 100 31.9 1:11.82 ld
23 >
24 > In the mean time, top also shows, that we have still a lot of memory to
25 > use:
26 > Mem: 3606828k total, 3164612k used, 442216k free, 110976k buffers
27 > Swap: 4530136k total, 0k used, 4530136k free, 1109312k cached
28 > No swapping.
29 >
30 > I tried it right after a fresh reboot.
31 >
32 > ulimit -a:
33 > core file size (blocks, -c) 0
34 > data seg size (kbytes, -d) unlimited
35 > scheduling priority (-e) 0
36 > file size (blocks, -f) unlimited
37 > pending signals (-i) 28178
38 > max locked memory (kbytes, -l) 64
39 > max memory size (kbytes, -m) unlimited
40 > open files (-n) 1024
41 > pipe size (512 bytes, -p) 8
42 > POSIX message queues (bytes, -q) 819200
43 > real-time priority (-r) 0
44 > stack size (kbytes, -s) 8192
45 > cpu time (seconds, -t) unlimited
46 > max user processes (-u) 28178
47 > virtual memory (kbytes, -v) unlimited
48 > file locks (-x) unlimited
49 >
50 > Omitting "-pipe" from CFLAGS didn't help. What else can I try to compile
51 > these binaries? Are there any PaX or Grsec kernel options with a potential
52 > influence?
53 > Should I accept, that I cannot compile thunderbird or seamonkey on a 32bit
54 > architecture having 4G of RAM these days?
55 >
56 > If anybody have an idea, please don't hesitate.
57 >
58 > Regards:
59 > Dwokfur
60 > --
61 > dr Tóth Attila, Radiológus, 06-20-825-8057
62 > Attila Toth MD, Radiologist, +36-20-825-8057
63 >
64 >
65 >