harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4261) [drlvm][finalization] Race conditions at "finalizer_thread.cpp":(68-77) at set_fin_thread_attached() and clear_fin_thread_attached() function on reliability test ClassReflectionTest
Date Thu, 02 Aug 2007 11:48:54 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gregory Shimansky updated HARMONY-4261:
---------------------------------------

    Summary: [drlvm][finalization] Race conditions at "finalizer_thread.cpp":(68-77) at set_fin_thread_attached()
and clear_fin_thread_attached() function on reliability test ClassReflectionTest  (was: [drlvm][finalizer]
Race conditions at "finalizer_thread.cpp":(68-77) at set_fin_thread_attached() and clear_fin_thread_attached()
function on reliability test ClassReflectionTest)

> [drlvm][finalization] Race conditions at "finalizer_thread.cpp":(68-77) at set_fin_thread_attached()
and clear_fin_thread_attached() function on reliability test ClassReflectionTest
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4261
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4261
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Leviev
>            Assignee: Xiao-Feng Li
>         Attachments: SourceViewScreenshot-1.jpg
>
>
> Race conditions at "finalizer_thread.cpp":(68-77) at set_fin_thread_attached() and clear_fin_thread_attached()
functions while reliability test ClassReflectionTest execution
> TC report on thread unsafe access that result in race condition that occur during concurrent
execution of set_fin_thread_attached() and clear_fin_thread_attached() function
> if it low priority issue I will mark it as expected race condition. 
> Write -> Write data-race Memory write at "finalizer_thread.cpp":77 conflicts with
a prior memory write at "finalizer_thread.cpp":68
> Stack Trace: 
> Context
> 	Function EntryPoint "dllcrt0.c":323
> 	Function EntryPoint "crtexe.c":202
> 	Function EntryPoint "crtexe.c":398
> 	Function main "cmain.c":146
> 	Function gpProtectedMain "main.c":391
> 	Function invocation "main.c":668
> 	Function JNI_CreateJavaVM "jni.cpp":531
> 	Function finalizer_threads_init "finalizer_thread.cpp":125
> 	Function clear_fin_thread_attached "finalizer_thread.cpp":77
> Definition
> 	Function EntryPoint "crtexe.c":398
> 	Function main "cmain.c":146
> 	Function gpProtectedMain "main.c":391
> 	Function invocation "main.c":668
> 	Function JNI_CreateJavaVM "jni.cpp":531
> 	Function finalizer_threads_init "finalizer_thread.cpp":96
> 	Function malloc "dbgheap.c":139
> 	Function nh_malloc_dbg "dbgheap.c":260
> 	Function heap_alloc_dbg "dbgheap.c":397
> 	Function heap_alloc_base "malloc.c":211
> 1st Access
> 	Function finalizer_threads_init "finalizer_thread.cpp":126
> 	Function hythread_create "thread_native_basic.c":165
> 	Function hythread_create_with_group "thread_native_basic.c":136
> 	Function os_thread_create "os_thread.c":37
> 	Function beginthreadex "threadex.c":145
> 	Function EntryPoint "dllcrt0.c":323
> 	Function threadstartex "threadex.c":241
> 	Function thread_start_proc "thread_native_basic.c":711
> 	Function finalizer_thread_func "finalizer_thread.cpp":228
> 	Function set_fin_thread_attached "finalizer_thread.cpp":68
> 	"67"	""	" static void set_fin_thread_attached(void)"
> 	"68"	"*"	" { fin_thread_info->thread_attached = 1; }"
> 2nd Access
> 	Function EntryPoint "dllcrt0.c":323
> 	Function EntryPoint "crtexe.c":202
> 	Function EntryPoint "crtexe.c":398
> 	Function main "cmain.c":146
> 	Function gpProtectedMain "main.c":391
> 	Function invocation "main.c":668
> 	Function JNI_CreateJavaVM "jni.cpp":531
> 	Function finalizer_threads_init "finalizer_thread.cpp":125
> 	Function clear_fin_thread_attached "finalizer_thread.cpp":77
> 	"76"	""	" static void clear_fin_thread_attached(void)"
> 	"77"	"*"	" { fin_thread_info->thread_attached = 0; }"
> See also Source View screenshots. 

-- 
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