|
From: Brian M. <br...@zw...> - 2009-10-10 19:22:31
|
2009/10/10 Susan Margulies <baj...@ho...>: > Hello, everyone! I am certain that I have a memory leak somewhere in my > code, because it eats all of the memory on my machine and then crashes. :) > I've compiled my code with the -g option, and when I run valgrind with the > following options > > valgrind --tool=memcheck --leak-check=yes --show-reachable=yes > --num-callers=20 --track-fds=yes > > The following error message appears: > > ==6049== Warning: set address range perms: large range 112786496 (undefined) > > I've looked into this error message, and I understand that it is trying to > tell me that I have allocated a very large block of memory. But I really > would like to know the line number in my code, or even the function, where > this is happening. Regretfully, this is all the information that valgrind is > giving me. I can trace it by putting print messages in my code, but I'm not > even sure if the valgrind message appears sequentially. > > Does anyone have any suggestions? Maybe its happening too deep into some library not compiled -g. you could try --db-attach=yes --db-command=gdb > > Thank you as always, > Susan > > ________________________________ > Hotmail: Trusted email with powerful SPAM protection. Sign up now. > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa http://www.zwartberg.com/ |