You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tempThr is a local variable in initializeTrace(). thr is the first argument for initializeTrace(). The address of tempThr is used by J9VMDllMain() in trcengine.c, the caller of initializeTrace().
The memory region for tempThr in the stack can be overwritten by other functions.
I think J9VMDllMain() should prepare the memory region for UtThreadData, as J9VMDllMain() seems to be the only caller of initializeTrace().
The text was updated successfully, but these errors were encountered:
This commit stops storing the address of a local variable, to fix a
build error with runtime/rastrace/trcmain.c.
Fixes: eclipse-openj9#20171
Signed-off-by: KONNO Kazuhiro <konno@jp.ibm.com>
Building OpenJ9 Java 17 with GCC 13.2.0 on Ubuntu 24.04.1 generates the following error:
openj9/runtime/rastrace/trcmain.c
Line 1045 in 0985ff3
tempThr
is a local variable ininitializeTrace()
.thr
is the first argument forinitializeTrace()
. The address oftempThr
is used byJ9VMDllMain()
in trcengine.c, the caller ofinitializeTrace()
.openj9/runtime/rastrace/trcengine.c
Line 363 in 0985ff3
The memory region for
tempThr
in the stack can be overwritten by other functions.I think
J9VMDllMain()
should prepare the memory region forUtThreadData
, asJ9VMDllMain()
seems to be the only caller ofinitializeTrace()
.The text was updated successfully, but these errors were encountered: