I did find some apparent leaks in Wt: and ASIO, although they are pretty small. This occurred with
Wt:
commit 792fda688292be10756dea1607581a7dc10f8e61
Author: Koen Deforche <[email protected]>
Date:   Tue Jun 2 16:54:40 2009 +0200

and  boost_1_39_0 on CentOS 5.

==31342== 8 bytes in 1 blocks are still reachable in loss record 1 of 2
==31342==    at 0x4005A88: malloc (vg_replace_malloc.c:207)
==31342== by 0x46C3556: boost::detail::get_once_per_thread_epoch() (once.cpp:43) ==31342== by 0x80C604F: void boost::call_once<void (*) ()>(boost::once_flag&, void (*)()) (once.hpp:50) ==31342== by 0x46BAB19: boost::detail::get_current_thread_data() (thread.cpp:108) ==31342== by 0x46C2841: boost ::detail::interruption_checker::interruption_checker(pthread_cond_t*) (thread_data.hpp:81) ==31342== by 0x46C29DA: boost::condition_variable::wait(boost::unique_lock<boost::mutex>&) (condition_variable.hpp:19)
==31342==    by 0x46BB544: boost::thread::join() (thread.cpp:225)
==31342==    by 0x4458C8B: Wt::WServer::stop() (WServer.C:238)
==31342== by 0x4459C57: Wt::WRun(int, char**, Wt::WApplication* (*) (Wt::WEnvironment const&)) (WServer.C:310)
==31342==    by 0x8052D53: main (radarcontrol.C:456)
==31342

==31342== 48 bytes in 3 blocks are still reachable in loss record 2 of 2
==31342==    at 0x4005A88: malloc (vg_replace_malloc.c:207)
==31342==    by 0x47C0FCD: (within /lib/libcrypto.so.0.9.8e)
==31342==    by 0x47C167E: CRYPTO_malloc (in /lib/libcrypto.so.0.9.8e)
==31342==    by 0x4750BF6: sk_new (in /lib/libcrypto.so.0.9.8e)
==31342==    by 0x40F35C: (within /lib/libssl.so.0.9.8e)
==31342== by 0x40F5B6: SSL_COMP_get_compression_methods (in /lib/ libssl.so.0.9.8e)
==31342==    by 0x4152F4: SSL_library_init (in /lib/libssl.so.0.9.8e)
==31342== by 0x4406578: boost::asio::ssl::detail::openssl_init<true>::do_init::instance() (openssl_init.hpp:50) ==31342== by 0x445A877: __static_initialization_and_destruction_0(int, int) (openssl_init.hpp: 123) ==31342== by 0x445D405: (within /net/opt_lnx/local_el5/lib/ libwthttp.so.2.99.2) ==31342== by 0x43E61D8: (within /net/opt_lnx/local_el5/lib/ libwthttp.so.2.99.2)
==31342==    by 0x307202: call_init (in /lib/ld-2.5.so)

On Jun 17, 2009, at 4:53 AM, Pieter Libin wrote:

Dear Joseph,

You can simply stop your application with ctr-c,
Wt will catch this, and properly shut down.

There should be no memory leaks in Wt or asio,
so these suppression files are not necessary.

You might find one reported error in zlib related to uninitialized memory, but you can avoid this error by running your Wt app with the option --no-compression.

Kind regards,

Pieter





2009/6/17 Joseph VanAndel <[email protected]>
I'm trying to use valgrind to examine dynamic memory usage of my Wt
based application.  I'm using the built-in http server.  As you know,
valgrind is most useful when you get the program to exit normally, so
all destructors get called.

What's the best way of shutting down a Wt application cleanly?

Any other suggestions on using valgrind with Wt?

Has anyone built valgrind suppression files for memory leaks inside Wt
or the asio library?

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to