harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Leviev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5362) [drlvm][thread] memory leak, apr_pool are not disposed correctly while HWA run
Date Mon, 31 Dec 2007 16:46:43 GMT
[drlvm][thread] memory leak, apr_pool are not disposed correctly while HWA run 
-------------------------------------------------------------------------------

                 Key: HARMONY-5362
                 URL: https://issues.apache.org/jira/browse/HARMONY-5362
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: win32
            Reporter: Ilya Leviev


memory leak, apr_pool are not disposed correctly while HWA run

svn = r607443

While profiling a simple HWA on Harmony using 
BoundsChecker, the tool detected following memory leaks. 


1)apr_pool are not disposed correctly while HWA run. 

Here is stack trace: 

Memory Leak allocated by malloc

allocator_alloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
300

line 300: if ((node = malloc(size)) == NULL)

apr_pool_create_ex	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
801
apr_pool_initialize	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
525
apr_initialize	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\misc\win32\start.c
182
hythread_lib_create	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	85

  line: 85 apr_status = apr_initialize();

2)apr_pool are not disposed correctly while HWA run. 

Here is stack trace: 

Memory Leak allocated by malloc

allocator_alloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
300

 line 300 if ((node = malloc(size)) == NULL)

apr_pool_create_ex	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
801
apr_initialize	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\misc\win32\start.c
185
hythread_lib_create	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	85
DllMain	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	59
 line: 85 apr_status = apr_initialize();

3)apr_pool are not disposed correctly while HWA run. 

Here is stack trace: 

Memory Leak allocated by malloc

allocator_alloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
300

 line 300 if ((node = malloc(size)) == NULL)

apr_pool_create_ex	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
801
hythread_lib_create	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	88

line 88: apr_status = apr_pool_create(&TM_POOL, NULL);

DllMain	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	59
_DllMainCRTStartup	f:\vs70builds\3077\vc\crtbld\crt\src\crtdll.c	272


4)apr_pool are not disposed correctly while HWA run. 

Here is stack trace: 

Memory Leak allocated by malloc

allocator_alloc	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
300

 line 300 if ((node = malloc(size)) == NULL)

apr_pool_create_ex	c:\home\hy\1\trunk\working_vm\build\win_ia32_msvc_debug\semis\extra\apr\src\memory\unix\apr_pools.c
801
hythread_group_create	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_native_groups.c	50

 line 50   apr_status = apr_pool_create(&(group_pool), TM_POOL);

hythread_init	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	157
hythread_lib_create	c:\home\hy\1\trunk\working_vm\vm\thread\src\thread_init.c	94


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message