Sponsored Content
Full Discussion: Memory leaks on compilations
Homework and Emergencies Emergency UNIX and Linux Support Memory leaks on compilations Post 302459576 by remi75 on Tuesday 5th of October 2010 04:27:56 AM
Old 10-05-2010
Quote:
Originally Posted by teresaejunior
Oh, I think I will have to compile it! Smilie

Thanks anyway!
Compile what ( the kernel ) ? most probably the compiler is alredy buggy !

do an apt-get update style thingy , if one of the packages to update is a compiler (gcc***) go ahead .

otherwise please give me more infos on your distro and gcc -V etc

Regards

---------- Post updated at 09:45 AM ---------- Previous update was at 09:44 AM ----------

Quote:
Originally Posted by vkca
Try debugging by using IBM Rational purify
debug what, the compiler ? it has to be a debug version of gcc besides
i doubt it the user (no effence) will able to ...

Regards

---------- Post updated at 10:27 AM ---------- Previous update was at 09:45 AM ----------

Quote:
Originally Posted by teresaejunior
Hello, remi75!

I tried it with 3 different kernels: the Debian Kernel, the Zen Kernel, and the Grml Kernel. The output of "sysctl -a | grep vm. | sort" is from the Debian Kernel. The Zen Kernel sets swappiness to 0, but the Debian sets it to 60, so... and the Grml is similar to the Debian one.

I'd like to try, but don't know how to use other compiler. I'm compiling from Debian sources, so it is just "debuild -k$GPGKEY", and it calls the compiler probably from debian/rules.

If it is a faulty driver, how could I debug it (without freezing again the system and killing it)?

I don't think the problem is in the sources. I have compiled the Debian kernel a few months ago and hadn't noticed anything wrong.

I suspect of some problem in my partitions? Though when I succeeded in compiling the kernel, I had no swap at all (already tried "swapoff -a", and it just started killing many procs...)

Thanks for your help!
Teresa e Junior
yes but its a definition of a bug - otherwise it will be called a nonworking prog Smilie

you compiler worked with sourceX.c but might not with sourY.c
thats why it would be called a bug ...

i am still waiting on your details .

regards
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SNACC-CONFIG(1) 						  [FIXME: manual]						   SNACC-CONFIG(1)

NAME
snacc-config - script to get information about the installed version of snacc SYNOPSIS
snacc-config [--version] [--prefix=DIR] [--exec-prefix=DIR] [--uninstalled=DIR] [--libtool] [--cflags] [--libs] [--compiler] [--asn1specs] [--language=LANG (C or C++)] [BUFFERTYPE (one of ebuf, mbuf, sbuf, or tbl)] DESCRIPTION
snacc-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link programs that use snacc. OPTIONS
--version Print the currently installed version of snacc. --prefix=PREFIX If specified, use PREFIX instead of the installation prefix that snacc was built with when computing the output for the --cflags and --libs options. This option is normally not needed in Debian GNU/Linux. --exec-prefix=PREFIX If specified, use PREFIX instead of the installation exec prefix that snacc was built with when computing the output for the --cflags and --libs options. This option is normally not needed in Debian GNU/Linux. --libtool If you understand this option, please file a bug against snacc. --cflags Print the compiler flags that are necessary to compile a snacc based program. --libs Print the linker flags that are necessary to link a snacc based program. --compiler Prints the filename of snacc. On Debian GNU/Linux, it's /usr/bin/snacc. --asn1specs Print the location of the snacc-specific ASN.1 files. On Debian GNU/Linux, it's /usr/include/snacc/asn1/. --language=LANG (C or C++) This option determines, wether --cflags and --libs print the flags for C or C++. On Debian GNU/Linux this is e.g. /usr/include/snacc/c/ or /usr/include/snacc/c++/. BUFFERTYPE This option determines the output of --cflags and --libs. BUFFERTYPE must be one of ebuf, mbuf, sbuf, or tbl. SEE ALSO
snacc (1), mkchdr(1), ptbl(1), pval(1), berdecode(1). Please install the snacc-doc package for more information on snacc. AUTHOR
This manual page was written by W. Martin Borgert (debacle@debian.org) for the Debian GNU/Linux system. Parts of it are taken from the glib-config(1) manual page - I hope that nothing is inaccurate for snacc-config. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. AUTHOR
W. Martin Borgert Author. COPYRIGHT
Copyright (C) 2001 W. Martin Borgert [FIXME: source] 2001-02-17 SNACC-CONFIG(1)
All times are GMT -4. The time now is 06:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy