All,
My program run ok under debug mode without Purify integration.But dump under
release build when produce PRNG.
When I use the Purify to check the memory leak of my SSL project,which in
debug build,once I call RAND_screen() to generate PRNG(same like s_server.c).The
purify indicate
error and can't work. Result window is :
[W] PAR: UnmapViewOfFile(0x3120001) arg #1 (lpBaseAddress) not identical to value
returned by MapViewOfFile (3120000) {1 occurrence}
Call location
UnmapViewOfFile [KERNEL32.dll]
DllUnregisterServer [rsaenh.dll]
DllUnregisterServer [rsaenh.dll]
CPReleaseContext [rsaenh.dll]
DllUnregisterServer [rsaenh.dll]
RtlCharToInteger [ntdll.dll]
RtlCharToInteger [ntdll.dll]
LdrLoadDll [ntdll.dll]
LoadLibraryExA [KERNEL32.dll]
LoadLibraryA [KERNEL32.dll]
CryptAcquireContextA [advapi32.dll]
RAND_poll [LIBEAY32.dll]
app_RAND_load_file [app_rand.c:133]
#ifdef WINDOWS
BIO_printf(bio_e,"Loading 'screen' into random state -");
BIO_flush(bio_e);
=> RAND_screen();
BIO_printf(bio_e," done\n");
#endif
InitSSL [gextern.cpp:1130]
if(WinSocket_init() <0) {
return -2;
}
=> if (!app_RAND_load_file(NULL, bio_err, 1) && !RAND_status()){
fprintf(stderr,"warning, not much extra random data,
consider using the -rand option\n");
goto err;
}
main [main.cpp:120]
I see block at RAND_screen().So my first program is whether only in debug build,if
purify tool useful to check SSL memory bounds.But how about it,can anyone help me?
And another,I have read lot of problem about memory leak in openssl-users forum. I
think I had comply some experienced
conduct ,such as noticing session cache mode,call some free function like
ERR_remove_state(0),SSL_CTX_flush_sessions(ctx,time(NULL)) when end the SSL session.
Sometimes it's like ok.but after some successed communication,when create a new
SSL,memory tools display the memory grow,minsize is 4k,sometimes is 8k,12k.Again it
run ok some times,but after some times, it loop grow memory again.What happen about
it? Please take me some advice.
Thanks.
����������������������������Stevens.Wang
����������������������������[EMAIL PROTECTED]
����������������������������������2002-03-08
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]