|
From: Manish T. <man...@gm...> - 2008-05-27 17:32:07
|
Hi, I was using valgrind to test my prog by giving --leak-check=full option. While exiting valgrind reports some leaks and prints them like this: ==26792== 4 bytes in 1 blocks are definitely lost in loss record 1 of 40 ==26792== at 0x400473F: calloc (vg_replace_malloc.c:279) ==26792== by 0x42DAEDE: ??? ==26792== by 0x42DB0A3: ??? ==26792== by 0x42DC05C: ??? ==26792== by 0x42D9B79: ??? ==26792== by 0x42D980D: ??? ==26792== by 0x42D9321: ??? ==26792== by 0x42D4970: ??? ==26792== by 0x42CEC99: ??? ==26792== by 0x400EF0B: ??? ==26792== by 0x400EA97: ??? ==26792== by 0x805FF39: plugins_call_handle_uri_clean (in /usr/local/sbin/lighttpd) The debugging symbols are properly loaded as I can see them through gdb. I am basically testing a lighttpd plugin. Any ideas on why it is not showing the source information and how I can fix it? Thanks in advance, Manish |
|
From: Rainer G. <rge...@gm...> - 2008-05-27 20:06:21
|
The reason is the the plugins has been dlunload()ed. This prevents valgrind from getting the right symbols. As far as I know, there is no cure against this. I have solved the situation in my project by commenting out dlunload() when running under valgrind. HTH Rainer On Tue, May 27, 2008 at 7:32 PM, Manish Tomar <man...@gm...> wrote: > Hi, > > I was using valgrind to test my prog by giving --leak-check=full > option. While exiting valgrind reports some leaks and prints them like > this: > > ==26792== 4 bytes in 1 blocks are definitely lost in loss record 1 of 40 > ==26792== at 0x400473F: calloc (vg_replace_malloc.c:279) > ==26792== by 0x42DAEDE: ??? > ==26792== by 0x42DB0A3: ??? > ==26792== by 0x42DC05C: ??? > ==26792== by 0x42D9B79: ??? > ==26792== by 0x42D980D: ??? > ==26792== by 0x42D9321: ??? > ==26792== by 0x42D4970: ??? > ==26792== by 0x42CEC99: ??? > ==26792== by 0x400EF0B: ??? > ==26792== by 0x400EA97: ??? > ==26792== by 0x805FF39: plugins_call_handle_uri_clean (in > /usr/local/sbin/lighttpd) > > The debugging symbols are properly loaded as I can see them through > gdb. I am basically testing a lighttpd plugin. Any ideas on why it is > not showing the source information and how I can fix it? > > Thanks in advance, > Manish > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |
|
From: Manish T. <man...@gm...> - 2008-05-29 04:00:40
|
> The reason is the the plugins has been dlunload()ed. This prevents > valgrind from getting the right symbols. As far as I know, there is no > cure against this. I have solved the situation in my project by > commenting out dlunload() when running under valgrind. > Thanks a lot Rainer. By going through lighttpd source I realized there is a --valgrind-support option while configuring which does not dlclose the plugin. I tried that and got rid of the question marks :) Regards, Manish |