Memory leaks on compilations


 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Memory leaks on compilations
# 8  
Old 10-05-2010
Quote:
Originally Posted by teresaejunior
Hello! Here are some details.

Code:
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-2'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-2)

Code:
uname -a
Linux localhost 2.6.35-grml #1 SMP PREEMPT Sat Sep 4 10:58:14 UTC 2010 i686 GNU/Linux

But I tried also with kernels 2.6.35-6.dmz.2-liquorix-686 and 2.6.32-5-686 from Debian

After talking to you I tried a couple of different things, including "ulimit -v NUMBER" and "ulimit -m NUMBER" before compiling, but these don't seem to be respected, but I got to kill it before it killed me, so the build log is attached. You will notice that right in the beginning of the build it goes mad.

This one also looks problematic, the BSD daemon doesn't look so evil:
Code:
         (__) 
         (oo) 
   /------\/ 
  / |    ||   
 *  /\---/\ 
    ~~   ~~   
...."Have you mooed today?"...

Any more information you might need, I'll be glad to give.

Best regards,
Teresa e Junior

I forgot to mention, I have done a dist-upgrade this morning, but still no results.
Accourding to the log, you are trying to compile the kernel ?

Your issue started with compiling icecat right ?

Fisrt, is your machine 64bit capable ?

..

ulimit has nothing to do with it Smilie you would have had an out of memory message ...

but you can try to copile under root just in case .

and during this morning's upgrade, was gcc abd glibc upgraded ?

regards

---------- Post updated at 01:55 PM ---------- Previous update was at 01:49 PM ----------

yes a couple of more things:

plase check on icecat's doc, make sure you have all the right dependencies (gcc version/kernel/glibc...) some softwares require a certain version of compilers /kernles etc ...

and if u can, i log of compiling icecat.

regards
# 9  
Old 10-05-2010
Quote:
Accourding to the log, you are trying to compile the kernel ?

Your issue started with compiling icecat right ?
I can't compile Icecat nor the kernel.

Quote:
Fisrt, is your machine 64bit capable ?
Yes, but since alsa doesn't work right in the 64 kernel for me (don't ask me why), and I had to install a lot of 32 libs on it, I stayed with i686.

Quote:
but you can try to copile under root just in case .
compile as root user? I think debuild uses fakeroot when needed.

Quote:
and during this morning's upgrade, was gcc abd glibc upgraded?
gcc was, but I browsed Debian bugs and couldn't find anything related, and the changelogs don't show anything important.

Quote:
plase check on icecat's doc, make sure you have all the right dependencies (gcc version/kernel/glibc...) some softwares require a certain version of compilers /kernles etc ...
"sudo apt-get build-dep icecat" installs everything. I had a look at the docs, they say libpango libpangoxft libpangoft2 libfreetype libxft libgtk2 libx11, which I have.

Quote:
and if u can, i log of compiling icecat.
It is attached. This one I left for about five hours before killing the machine. The one from the kernel build I killed when started going mad.

Thanks for your help so far! I hope we'll get there!
Teresa e Junior

Last edited by teresaejunior; 10-05-2010 at 09:21 AM..
# 10  
Old 10-05-2010
Is this a dedicated machine or a VPS?

(Sorry, I did not read the entire thread... VPS? Dedicated machine?)

Last edited by Neo; 10-05-2010 at 09:23 AM.. Reason: update
# 11  
Old 10-05-2010
ok, the 4.4.5 version of GCC must be buggy because on gnu.org its not even listed as a release .

can you please do an apt-cache search "^gcc*" or something, just to list available gcc versions that you can put on your machine .

not to get too personal Smilie what CPU do you have ? and the exact version of your distro ?

I see 2G of ram already .

regards
# 12  
Old 10-05-2010
Quote:
Is this a dedicated machine or a VPS?
It's a dedicated machine

Quote:
can you please do an apt-cache search "^gcc*" or something, just to list available gcc versions that you can put on your machine .
I could try the older 4.1.2-29 or 4.3.5-4, or the experimental 4.5.1-8

Quote:
not to get too personal what CPU do you have ? and the exact version of your distro ?
Code:
$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Pentium(R) Dual  CPU  T3400  @ 2.16GHz
stepping	: 13
cpu MHz		: 2161.400
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips	: 4324.91
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Pentium(R) Dual  CPU  T3400  @ 2.16GHz
stepping	: 13
cpu MHz		: 2161.400
cache size	: 1024 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips	: 4324.59
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

My distro is a Debian squeeze netinst iso, which comes with just a bootstrap. (To be clearer, Debian sid/squeeze)

Best regards!
Teresa e Junior
# 13  
Old 10-05-2010
from gnu.org here are the "official" releases
July 31, 2010GCC 4.5.1 has been released.May 22, 2010GCC 4.3.5 has been released.April 29, 2010GCC 4.4.4 has been released.April 14, 2010GCC 4.5.0 has been released.Sid an unstable almost as an experimental ...
does your repository includes one of these versions ?
# 14  
Old 10-05-2010
Quote:
Originally Posted by remi75
from gnu.org here are the "official" releases
July 31, 2010GCC 4.5.1 has been released.May 22, 2010GCC 4.3.5 has been released.April 29, 2010GCC 4.4.4 has been released.April 14, 2010GCC 4.5.0 has been released. does your repository includes one of these versions ?
4.3.5-4 in testing, and 4.5.1-8 in experimental. I'll try 4.3.5-4 now to see if it helps, and then 4.5.1-8 from experimental, but without enabling the experimental repositories. There is also 4.1.2-29, which already hit stable (maybe should be the wisest choice).

Quote:
Sid an unstable almost as an experimental...
Actually, I find it more stable than testing!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Memory Leaks

Suppose I have a main() function with only one malloc statement allocating say some 1 gb memory. Also say my system has 1 gb of ram. main() { malloc(1gb) return(0) } The program above exits without freeing the memory. In this case will the 1 gb of heap memory be returned... (9 Replies)
Discussion started by: rupeshkp728
9 Replies

2. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

3. AIX

valgrind - pthread memory leaks on AIX

Hi all, I have written a small code just to invoke main and return immediately. When built with libpthread on AIX box, valgrind throws lots of memory leak errors. But when built without libpthread, no issues at all. Here is the sample run for your look. Any idea where I might be going wrong?... (3 Replies)
Discussion started by: visionofarun
3 Replies

4. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

5. UNIX and Linux Applications

Looking for memory leaks freeware tools

Hello all Is there good free ware tools to check software memory leaks ? Some thing like purify on unix platforms sun/hp/linux Thanks (3 Replies)
Discussion started by: umen
3 Replies

6. Shell Programming and Scripting

Find memory leaks shell script ???

Hi all, Has anyone out there a shell script to detect memory leaks on unix machines? And if so what way did they go about it .? (5 Replies)
Discussion started by: nano2
5 Replies

7. UNIX for Advanced & Expert Users

strange problem with memory leaks

Hi Unix lovers, I am facing a strange problem about memory leak. One component of our product show memory leak at customer's end but not in development environment. The memory used by the exe goes on increasing at customer end but not in dev. customer has same m/c(HP unix 11i) , the same... (1 Reply)
Discussion started by: shriashishpatil
1 Replies

8. Programming

Tool for finding memory leaks

hi, i am a c++ programmer working on linux(redhat linux8.0) environment, i need to find out the memory leaks, so far i didn't used any tools, so what are the tools are available, and whic one is good to use. plz provide with a small example. (1 Reply)
Discussion started by: sarwan
1 Replies

9. HP-UX

Memory leaks on HP-UX 11i

Hi folks, We are using following listed configurations for a particular application. HP-UX 11i Sun Java 2 SDK Standard Edition 1.4.1 (version shipped with WebLogic 8) Oracle 9i Release 2 (Oracle 9.2.0) BEA WebLogic Server 8.1 SP3 It seems a memory leak when we use above configurations.... (1 Reply)
Discussion started by: gimhan90
1 Replies

10. UNIX for Advanced & Expert Users

memory leaks

Hi!! Experts, Any ideas how to check for the memory leaks in a process during performance testing?? I dont use purify.. Any way of finding it out using default S/W in HP UX-11 Can U gimme pointers to site having good scripts/tutorials on performance testing?? Thanx in Advance.. :) (3 Replies)
Discussion started by: jyotipg
3 Replies
Login or Register to Ask a Question