Some pointers for valgrind + python here:<br><br><a href="http://svn.python.org/projects/python/trunk/Misc/README.valgrind">http://svn.python.org/projects/python/trunk/Misc/README.valgrind</a><br><a href="http://svn.python.org/projects/python/trunk/Misc/valgrind-python.supp">http://svn.python.org/projects/python/trunk/Misc/valgrind-python.supp</a><br>
<br><br><div class="gmail_quote">On Thu, Mar 20, 2008 at 7:36 AM, Steve Lime <<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hasn't been much of a help when the problem could be in code linked to python. I can't get any<br>
output from just wrapping the call to tilecache_seed.py in valgrind. I'm probably using it wrong<br>
though so will have to research more.<br>
<br>
Steve<br>
<br>
>>> On 3/19/2008 at 1:33 PM, in message <<a href="mailto:47E15C82.4020404@saucontech.com">47E15C82.4020404@saucontech.com</a>>, Mark<br>
<div><div></div><div class="Wj3C7c">Deneen <<a href="mailto:mdeneen+tiles@saucontech.com">mdeneen+tiles@saucontech.com</a>> wrote:<br>
> I have not been following this thread very carefully, but valgrind<br>
> (<a href="http://www.valgrind.org" target="_blank">www.valgrind.org</a>) is a wonderful tool for finding leaks. It may be a<br>
> bit more low-level than you want for this purpose... but I would give<br>
> it a shot.<br>
><br>
> Mark<br>
><br>
><br>
> Steve Lime wrote:<br>
>> I just tried rebuilding the mapscript bindings with the latest version of<br>
> Swig and the more<br>
>> advanced interface. No luck.<br>
>><br>
>> In my case the mapfile is made up of a bunch of includes so perhaps there is<br>
> a leak there. I'll<br>
>> try expanding those and see what happens.<br>
>><br>
>> Steve<br>
>><br>
>><br>
>>>>> On 3/19/2008 at 12:58 PM, in message <<a href="mailto:20080319175857.GA23409@metacarta.com">20080319175857.GA23409@metacarta.com</a>>,<br>
>>>>><br>
>> Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> wrote:<br>
>><br>
>>> On Wed, Mar 19, 2008 at 12:34:21PM -0500, Steve Lime wrote:<br>
>>><br>
>>>> The backtrace output is below. I don't think it tells me much. It's dying in<br>
><br>
>>>><br>
>>> MapServer but I think it's because<br>
>>><br>
>>>> there simply isn't any more memory to allocate so a small malloc fails<br>
>>>><br>
>>> (there is no error check) and then the<br>
>>><br>
>>>> fread causes the segfault. The question is why there is no memory. When I<br>
>>>><br>
>>> run the seeding the python<br>
>>><br>
>>>> process the python process memory usage swells to 1.4Gb. I've tried with and<br>
><br>
>>>><br>
>>> without metatiling, same<br>
>>><br>
>>>> result. There must be a leak someplace. Any idea how to debug?<br>
>>>><br>
>>> Yeah, clearly there's a memory leak: I don't hae any idea where it is<br>
>>> though, nor do I have any suggestions on how to debug. Keeping the map<br>
>>> object open might actually help in this case, because if there's a leak<br>
>>> somewhere in the mapObj open (something not gtting freed), it would be<br>
>>> less prominent if we weren't constantly recreating the mapObj, yeah?<br>
>>><br>
>>> Regards,<br>
>>><br>
>><br>
>> _______________________________________________<br>
>> Tilecache mailing list<br>
>> <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
>> <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
>><br>
><br>
> _______________________________________________<br>
> Tilecache mailing list<br>
> <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br>
_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</div></div></blockquote></div><br>