Re: Tracking down memory leaks



Hello Don,

I got the following tips when I asked the same question a while back:

"Consider something like the valgrind port or dlmalloc.

---Chuck "

I ran them and gdb and I'm still hunting that memory leak. In my case I first suspected threads (software) to be the cause however as the chase has gone further it's narrowing down to the playing of ogg files.

I might be biased though. In my opinion memory leaks are always caused by software.

Good luck!



Don O'Neil skrev:
My setup seems to have a memory leak of some kind and I'm not sure how to
track it down....

When I first start up the system and all the processes start the machine has
1GB in free memory... After running for 20-30 minutes the free memory drops
to somewhere around 20MB... The longer it runs, the more it chews up free
memory until it eventually kernel panics and then reboots and the process
starts all over again.

I originally thought the reboot was from bad RAM, so I swapped it out, but
that didn't help. I ran a memory check and everything checks out ok.

Any ideas where to look (Hardware? Bad CPU? Software?). Temperature is ok,
lots of fans in the box and round cables so there is good air flow. I'm
stumpted.

Thanks!

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Random restarts after upgrade
    ... memory leak. ... Upgrading to the latest version stopped the reboots. ... I suspect hardware but it was ...
    (microsoft.public.windows.server.sbs)
  • Re: cisco ASA 5520 crashes with 7.1(2) and 7.2(1)
    ... Just before the ASA5520 reboots itself, ... to perform show command" - then the unit reboots. ... The cause was a bug in the "inspect http" code. ... If so and you suspect a memory leak then you ...
    (comp.dcom.sys.cisco)
  • Re: 3034 Error with c00000e5 status code
    ... there is a memory leak condition which can occur in LSASS.exe ... which could be causing the reboots and the 3034s (along with some other ... event IDs). ... Please call Microsoft at 1-800-936-4900 and request the hotfix for the KB ...
    (microsoft.public.win2000.security)
  • Re: segmentation fault (core dumped)
    ... >> Now you can work on iptemp. ... >> prevent a memory leak. ... in the same veign, is it possible to find these types of errors using gdb, ...
    (comp.lang.c)