logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Memory Leak in Apache 2.2.29 API :ap_run_post_config
Author
Ishan



Joined: 30 Mar 2016
Posts: 5

PostPosted: Wed 30 Mar '16 13:49    Post subject: Memory Leak in Apache 2.2.29 API :ap_run_post_config Reply with quote

Hi ,
I am using apache and ran Dr. Memory Tool [WIndows]
and getting these memory leaks. Can someone tell how to fix this.
Apache : 2.2.29 Platform : WIndows

Error #84: LEAK 172 direct bytes 0x04e9cc58-0x04e9cd04 + 540 indirect bytes
# 0 replace_malloc [d:\drmemory_package\common\alloc_replace.c:2576]
# 1 LIBEAY32.dll!CRYPTO_get_new_dynlockid +0x1da (0x009f1fab <LIBEAY32.dll+0x1fab>)
# 2 LIBEAY32.dll!CRYPTO_malloc +0x41 (0x009f23f2 <LIBEAY32.dll+0x23f2>)
# 3 LIBEAY32.dll!EC_GROUP_new +0x56 (0x00a21217 <LIBEAY32.dll+0x31217>)
# 4 LIBEAY32.dll!EC_GROUP_new_curve_GFp +0xb (0x00a24dbc <LIBEAY32.dll+0x34dbc>)
# 5 LIBEAY32.dll!ERR_load_EC_strings +0x141 (0x00a261a2 <LIBEAY32.dll+0x361a2>)
# 6 LIBEAY32.dll!EC_GROUP_new_by_curve_name +0x4f (0x00a26400 <LIBEAY32.dll+0x36400>)
# 7 ssl_tmp_key_init_ec [d:\2.2.29_win\httpd-2.2.29\modules\ssl\ssl_engine_init.c:156]
# 8 ssl_tmp_keys_init [d:\2.2.29_win\httpd-2.2.29\modules\ssl\ssl_engine_init.c:201]
# 9 ap_run_post_config [d:\2.2.29_win\httpd-2.2.29\server\config.c:94]
#10 main [d:\src\httpd\main.c:778]

Code :
if (ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) {
ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR,
0, NULL, "Configuration Failed");
destroy_and_exit_process(process, 1);
}

apr_pool_destroy(ptemp);
apr_pool_lock(pconf, 1);

ap_run_optional_fn_retrieve();
#ifdef WIN32
SetConsoleCtrlHandler((PHANDLER_ROUTINE)ConsoleControlHandlers, TRUE);
#endif
// store process in the file scopw s otaht we can clean it up
//stat_process = process;
s_process = process;
if (ap_mpm_run(pconf, plog, server_conf))
break;

apr_pool_lock(pconf, 0);
}
apr_pool_lock(pconf, 0);
destroy_and_exit_process(process, 0);

return 0; /* Termination 'ok' */
}
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 31 Mar '16 12:08    Post subject: Reply with quote

is apache running out of memory? Does apache crash?
Back to top
Ishan



Joined: 30 Mar 2016
Posts: 5

PostPosted: Thu 31 Mar '16 16:27    Post subject: Reply with quote

No Apache isn't running out of memory or crashing. But If left for months or years(which is intention for future) with those memory leaks , i think it will create problem.
Back to top


Reply to topic   Topic: Memory Leak in Apache 2.2.29 API :ap_run_post_config View previous topic :: View next topic
Post new topic   Forum Index -> Apache