bug-global
[Top][All Lists]
Advanced

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

may be memory leak


From: Hideki IWAMOTO
Subject: may be memory leak
Date: Fri, 29 Jun 2007 01:51:42 +0900

Recent versions of global command uses too much memory. 
And, it is hard to use it on machines with little memory. 
I think that there is memory leak bug from version 5.4.

The following are memory maps of global just before termination.
[linux-2.0.40]$ global --version
5.3
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.3;pwd` global -x '.*' 
> /dev/null
18532:   global -x .*
0000000000400000    128K r-x--  /home/iwamoto/global/bin/global
000000000051f000      4K rw---  /home/iwamoto/global/bin/global
0000000000520000    328K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      8K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007fffffd70000     88K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            11132K
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.3;pwd` global -rx '.*' 
> /dev/null
18542:   global -rx .*
0000000000400000    128K r-x--  /home/iwamoto/global/bin/global
000000000051f000      4K rw---  /home/iwamoto/global/bin/global
0000000000520000    320K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      4K rw---    [ anon ]
00002aaaaaaad000      4K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007fffffcdc000     88K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            11124K
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.3;pwd` global -sx '.*' 
> /dev/null
18555:   global -sx .*
0000000000400000    128K r-x--  /home/iwamoto/global/bin/global
000000000051f000      4K rw---  /home/iwamoto/global/bin/global
0000000000520000    356K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      4K rw---    [ anon ]
00002aaaaaaad000      4K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007fffffb7a000     84K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            11156K

[linux-2.0.40]$ global --version
5.4
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.4;pwd` global -x '.*' 
> /dev/null
22676:   global -x .*
0000000000400000    132K r-x--  /home/iwamoto/global/bin/global
0000000000520000      4K rw---  /home/iwamoto/global/bin/global
0000000000521000   5188K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      8K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007fffffa38000     84K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            15992K
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.4;pwd` global -rx '.*' 
> /dev/null
22683:   global -rx .*
0000000000400000    132K r-x--  /home/iwamoto/global/bin/global
0000000000520000      4K rw---  /home/iwamoto/global/bin/global
0000000000521000  24424K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      4K rw---    [ anon ]
00002aaaaaaad000      4K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007ffffff8a000     84K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            35228K
[linux-2.0.40]$ env GTAGSROOT=`pwd` GTAGSDBPATH=`cd ../5.4;pwd` global -sx '.*' 
> /dev/null
22698:   global -sx .*
0000000000400000    132K r-x--  /home/iwamoto/global/bin/global
0000000000520000      4K rw---  /home/iwamoto/global/bin/global
0000000000521000  26628K rw---    [ anon ]
0000003a2cd00000    104K r-x--  /lib64/ld-2.3.5.so
0000003a2ce19000      4K r----  /lib64/ld-2.3.5.so
0000003a2ce1a000      4K rw---  /lib64/ld-2.3.5.so
0000003a2cf00000   1204K r-x--  /lib64/libc-2.3.5.so
0000003a2d02d000   1020K -----  /lib64/libc-2.3.5.so
0000003a2d12c000     16K r----  /lib64/libc-2.3.5.so
0000003a2d130000      8K rw---  /lib64/libc-2.3.5.so
0000003a2d132000     16K rw---    [ anon ]
00002aaaaaaab000      4K rw---    [ anon ]
00002aaaaaaad000      4K rw---    [ anon ]
00002aaaaaac9000      8K rw---    [ anon ]
00007fffff8a6000     84K rw---    [ stack ]
ffffffffff600000   8192K -----    [ anon ]
 total            37432K

----
Hideki IWAMOTO  address@hidden

Attachment: printmap-for-test.patch
Description: Binary data


reply via email to

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