On 05/17/2014 04:07 AM, 钱在晨 wrote:
> Hi, I have upgraded the libmicrohttpd from 0.9.9 to the latest version 
> 0.9.35, but when I check the code by valgrind, it reports: ==00:00:00:52.950 
> 14924== Invalid read of size 8
>  ==00:00:00:52.951 14924== at 0x8355398: CHttpRequest::getHttpResponse() 
> (HttpRequest.cpp:300)
>  ==00:00:00:52.951 14924== by 0x835763A: requestCompleted(void*, 
> MHD_Connection*, void**, MHD_RequestTerminationCode) (Httpd.cpp:114)
>  ==00:00:00:52.951 14924== by 0x8779A86: MHD_connection_close 
> (connection.c:281)
>  ==00:00:00:52.951 14924== by 0x877B1AC: MHD_connection_handle_idle 
> (connection.c:2548)
>  ==00:00:00:52.951 14924== by 0x877FEDA: MHD_handle_connection (daemon.c:848)
>  ==00:00:00:52.951 14924== by 0x38EB4077F0: start_thread (in 
> /lib64/libpthread-2.12.so)
>  ==00:00:00:52.951 14924== by 0x38EACE570C: clone (in /lib64/libc-2.12.so)
>  ==00:00:00:52.951 14924== Address 0x915c8e8 is 8 bytes inside a block of 
> size 16 free'd
>  ==00:00:00:52.951 14924== at 0x4A0545F: operator delete(void*) 
> (vg_replace_malloc.c:387)
>  ==00:00:00:52.951 14924== by 0x83547EF: CHttpRequest::~CHttpRequest() 
> (HttpRequest.cpp:64)
>  ==00:00:00:52.951 14924== by 0x835776A: requestCompleted(void*, 
> MHD_Connection*, void**, MHD_RequestTerminationCode) (Httpd.cpp:128)
>  ==00:00:00:52.951 14924== by 0x877B147: MHD_connection_handle_idle 
> (connection.c:2530)
>  ==00:00:00:52.951 14924== by 0x877FEDA: MHD_handle_connection (daemon.c:848)
>  ==00:00:00:52.951 14924== by 0x38EB4077F0: start_thread (in 
> /lib64/libpthread-2.12.so)
>  ==00:00:00:52.951 14924== by 0x38EACE570C: clone (in /lib64/libc-2.12.so)I 
> register the callback function requestCompleted, but it is called twice 
> unexpectedly, does any one have the same problem?Regards,Jason
> 
> 

Should be fixed in SVN 33312, please let me know if not.

Happy hacking!

Christian

Reply via email to