leak

Why does this leak?

Why does this leak in Perl ? $ perl -MDevel::LeakTrace::Fast -e 'our @a=(1);our @b=(1)' leaked SV(0x0x84e053c) from -e line 1 $ perl -v This is perl, v5.8.0 built for i386-linux-thread-multi [...] $ uname -a Linux ant1 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux Thanks! ...

How to Test for Memory Leaks?

We have an application with hundreds of possible user actions, and think about how enhancing memory leak testing. Currently, here's the way it happens: When manually testing the software, if it appears that our application consumes too much memory, we use a memory tool, find the cause and fix it. It's a rather slow and not efficient pro...

How do I track down a mod_perl memory leak?

I'm using mod perl 1.3.0 with apache 1.3.41 perl version 5.8.6, and the memory size seems to grow about 4k every 3rd or 4th request. The Perl script we are running is simply: print "Content-type: text/html\n\n"; print "baby"; Yet that apache process just grows and grows when we slam it with apache benchmark. We are hitting it with:...

Trouble Running Leaks Instrument

I'm having trouble running the Leaks Instrument since installing the 3.0 SDK. An NDA disclaimer here I don't think this is a 3.0 SDK issue, just a configuration problem. So I'm looking for advice on configuring the tools in question not the 3.0 SDK per se. Here’s the breakdown of the behavior I am seeing. My Application is compiled to ...

Using Instruments Leaks & Object Alloc: Are autoreleased objects counted as leaks?

I have an iPhone app that's getting memory warnings and so I'm trying to find leaks, make more efficient use of memory, etc., with the help of Instruments. Amongst other things, I'm trying to take out any autoreleased objects and replace with manual alloc/init/release objects. However, some API calls don't appear to have an 'init' versio...

Instruments Leaks - Not showing my source code

I am attempting to analyze an iPhone application using the Leaks application and everything appears to be working fine, except for when I try to view detailed information about a particular memory leak. Leaks does not appear to be loading my source code. Looking at the stack view on the right, I can see calls that reference iPhone frame...

Track down Memory leaks in a Ruby Script

Hello! I have created a Ruby XMPP Framework called babylon. I have then created a few applications with it and even though they run pretty smoothly, it seems that they're eating my computer memory bit by bit. I suspected leaks, so first, I added this at some point in my code : puts `ps -o rss= -p #{Process.pid}`.to_i As suspected, t...

Can someone verify that this is an IE8 memory leak?

The leak is pretty easy to create. Place the HTML below alongside a list of large images named "TestImage0.jpg", "TestImage1.jpg",..."TestImage9.jpg". The page will leak memory (I used sIEve for testing) on every click of the page. If the resize css is removed, the page will not leak. Can anyone confirm that this is an IE8 problem, or th...

How to catch (and hopefully fix) a GDI resource leak

My application logs an exception after running for 6 hours: OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3 (5.1.2600.196608) .NET Version: 2.0.50727.3082 SQL Server Version: 9.00.4035.00 SQL Server Level: SP3 SQL Server Edition: Standard Edition Error Message: Parameter is not valid. Exception type: System.ArgumentExc...

where is leak in my code?

Hello everyone, Here is my code which opens an XML file (old.xml), filter invalid characters and write to another XML file (abc.xml). Finally I will load the XML (abc.xml) again. When executing the followling line, there is exception says the xml file is used by another process, xDoc.Load("C:\\abc.xml"); Does anyone have any ideas wh...

Memory leak (sort of) with a static std::vector

I have a static std::vector in a class. When I use Microsoft's memory leak detection tools: _CrtMemState state; _CrtMemCheckpoint( & state); _CrtMemDumpAllObjectsSince( & state ); it reports a leak after I insert stuff into the vector. This makes sense to me because new space is allocated when something is inserted into the vector. ...

Why do I get this strange Memory Leak when I touch my UIImageView?

It's really strange. I have a blank UIImageView subclass that implements the -touchesEnded:, -touchesMoved, and -touchesBegan: methods. The implementations of these methods are empty. They just do nothing. However, when I run Instruments with "Leaks", and I touch the UIImageView and move my finger outside of that UIImageView while still ...

How to deal with memory leaks in RMagick in Ruby ?

Hey there! Im developing web-application with Merb and im looking for some safe and stable image processing library. I used to work with Imagick in php, then moved to ruby and start using RMagick. But there is a problem. Long running scripts causing memory leaks. There are couple solution exists, but i don't know which one is the most s...

How to find & fix memleaks inside Apache + PHP + Win2k3

Alright folks, We've got Apache 2.2.11 running mod_php 5.2.9-2 on a Windows Server 2003 (Small Business Edition) box, and each request spikes somewhere around 4 to 8MB of RAM, followed by approximately 2 to 6MB of freeing. Basically, the amount Apache releases is always notably less (by megabytes) than the amount it allocates during the...

Memory leak checker for Windows that supports GCC?

Anyone know of a good memory leak checker that supports GCC on Windows? Unfortunately, IBM's Purify only works for GCC on Linux; and of course valgrind doesn't run on Windows. ...

Possible to force Delphi threadvar Memory to be Freed?

I have been chasing down what appears to be a memory leak in a DLL built in Delphi 2007 for Win32. The memory for the threadvar variables is not freed if the threads still exist when the DLL is unloaded (there are no active calls into the DLL when it is unloaded). The question: Is there some way to cause Delphi to free memory associat...

SetWindowSubclass is leaking user objects

I'm using Bear to inspect user objects and the WindowProc count is never decreasing upon RemoveWindowSubclass. So does the total in USER which is the User Objects in Task Manager. I read Raymond's Safer subclassing comment on removing subclassing before destroying the window but my test is done w/o destroying it at all. The same subcla...

[Memory leak] - Not seeing stacktrace in Instruments

Hey Guys, I am using Instruments to find memory leaks in my iPhone application. I saw a few leaks in the application however the extended details view is not showing the stacktrace. It just says "No stack trace available for this block". I am sure I have missed some settings which resulted in this behavior. Any help would be greatly ap...

iPhone Memory Leak JSON Library

I'm getting an instruments Memory Leak with this iPhone 3.0 SDK code. I'm using the JSON from http://code.google.com/p/json-framework/ Here is my code: // .h @property (nontatomic,retain) NSMutableArray *tweets; // .m import" JSON.h" @synthesize tweets; ... tweets = [[NSMutableArray alloc] init]; NSURL *url = [NSURL URLWit...

iphone memory usage

After running with the memory analyzer, my app seems to increase its memory consumption very slowly. The analyzer did detect memory leaks whenever certain events occur, which i quickly fixed. But this slow consumption of memory is occuring when im not doing anything in the app. The app basically just starts. Consumption is more noticeab...