bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/12658] ld: potential infinite loop and memory leaks when l


From: dongsheng.song at gmail dot com
Subject: [Bug binutils/12658] ld: potential infinite loop and memory leaks when link many object files
Date: Thu, 14 Apr 2011 01:32:33 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12658

--- Comment #12 from Dongsheng Song <dongsheng.song at gmail dot com> 
2011-04-14 01:32:17 UTC ---
(In reply to comment #11)
> (In reply to comment #10)
> > Hi Dongsheng,
> > 
> >  Please could you try the latest FSF mainline sources with Kai's patch in 
> > them,
> > and see if this has any affect on your problem ?
> > 
> > Cheers
> >   Nick
> 
> In 32bit Linux, still out of memory:

It seems that Kai's patch save about 300M+ memory on 64 bit Linux box (My new
Scientific Linux 6 VM, 1G physical memory).

But it seems that still do a infinite loop:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  DATA COMMAND
15602 dongshen  20   0 4246m 768m  144 D  4.3 77.0  47:49.43 4.1g ld

VmPeak:  4348140 kB
VmSize:  4348140 kB
VmLck:         0 kB
VmHWM:    892440 kB
VmRSS:    787316 kB
VmData:  4341348 kB
VmStk:       100 kB
VmExe:       928 kB
VmLib:      1620 kB
VmPTE:      8508 kB
VmSwap:  3554152 kB

# pmap -d 15602
15602:  
/home/dongsheng/gcc-4.6-windows-linux/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/bin/ld
--sysroot=/home/dongsheng/gcc-4.6-windows-linux -m i386pe --shared -Bstatic -e
address@hidden --enable-auto-image-base -o
/home/dongsheng/tmp/wx/lib/wxmsw28u_gcc.dll -s -s
/home/dongsheng/gcc-4.6-windows-linux/lib/gcc/i686-w64-mingw32/4.6.1/../../../../i686-w64-mingw32/lib/../lib/dllcrt2.o
/home/dongsheng/gcc-4.6-windows-linux/lib/gcc/i686-w64-mingw32/4.6.1/crtbegin.o
-L/home/dongsheng/tmp/wx/lib
Address           Kbytes Mode  Offset           Device    Mapping
0000000000400000     928 r-x-- 0000000000000000 0fd:00000 ld
00000000006e7000      12 rw--- 00000000000e7000 0fd:00000 ld
00000000006ea000      20 rw--- 0000000000000000 000:00000   [ anon ]
0000000000801000 3494196 rw--- 0000000000000000 000:00000   [ anon ]
00007f016d265000    1052 rw--- 0000000000000000 000:00000   [ anon ]
00007f016d38c000  835028 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0302000    1832 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a04cd000    1816 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0694000    1848 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0863000    1848 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0a32000    1908 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0c10000     420 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0c79000    1492 r-x-- 0000000000000000 0fd:00000 libc-2.12.so
00007f01a0dee000    2048 ----- 0000000000175000 0fd:00000 libc-2.12.so
00007f01a0fee000      16 r---- 0000000000175000 0fd:00000 libc-2.12.so
00007f01a0ff2000       4 rw--- 0000000000179000 0fd:00000 libc-2.12.so
00007f01a0ff3000      20 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a0ff8000       8 r-x-- 0000000000000000 0fd:00000 libdl-2.12.so
00007f01a0ffa000    2048 ----- 0000000000002000 0fd:00000 libdl-2.12.so
00007f01a11fa000       4 r---- 0000000000002000 0fd:00000 libdl-2.12.so
00007f01a11fb000       4 rw--- 0000000000003000 0fd:00000 libdl-2.12.so
00007f01a11fc000     120 r-x-- 0000000000000000 0fd:00000 ld-2.12.so
00007f01a1225000      20 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a126a000    1724 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a1419000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f01a141a000       4 r---- 000000000001e000 0fd:00000 ld-2.12.so
00007f01a141b000       4 rw--- 000000000001f000 0fd:00000 ld-2.12.so
00007f01a141c000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007fffc12ad000      96 rw--- 0000000000000000 000:00000   [ stack ]
00007fffc13c4000       4 r-x-- 0000000000000000 000:00000   [ anon ]
ffffffffff600000       4 r-x-- 0000000000000000 000:00000   [ anon ]
mapped: 4348536K    writeable/private: 4341860K    shared: 0K

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]