runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM/Linux] undefined symbol s_forcedGCInProgress

Open parjong opened this issue 10 years ago • 7 comments

On ARM/Linux, running "Hello, world" app shows the following error message if I use CoreCLR built from 3a4711b18816:

dlopen failed to open the libcoreclr.so with error /mnt/dotnet-latest/Linux.arm.Debug/libcoreclr.so: undefined symbol: s_forcedGCInProgress

parjong avatar Jun 07 '16 00:06 parjong

Looks like the problem is a combination of:

if(CLR_CMAKE_PLATFORM_LINUX AND CLR_CMAKE_TARGET_ARCH_AMD64)
  set(FEATURE_EVENT_TRACE 1)
endif()

(https://github.com/dotnet/coreclr/blob/master/clrdefinitions.cmake#L10)

and

if(FEATURE_EVENT_TRACE)
    list(APPEND VM_SOURCES_WKS
        eventtrace.cpp
        )
endif(FEATURE_EVENT_TRACE)

(https://github.com/dotnet/coreclr/blob/master/src/vm/CMakeLists.txt#L253)

and the fact that that variable is defined in eventtrace.cpp.

@davmason Looks like you added this in https://github.com/dotnet/coreclr/commit/223256668d2c73d2ca2a54a1373742b905755ee3. Can you take a look?

adityamandaleeka avatar Jun 07 '16 01:06 adityamandaleeka

@adityamandaleeka @davmason It seems that FEATURE_EVENT_TRACE is not set on ARM/Linux, but 223256668d2c73d2ca2a54a1 introduces the reference on s_forcedGCInProgress in vm/finalizerthread.cpp. Is it possible to disable those changes if FEATURE_EVENT_TRACE is not set?

parjong avatar Jun 07 '16 01:06 parjong

@adityamandaleeka @davmason I can run "Hello, World" app on ARM/Linux with PR dotnet/coreclr#5550. Please take a look.

parjong avatar Jun 07 '16 02:06 parjong

@prajwal-aithal , Please take a look. It seems that we have still been experiencing the regression issues because of the lack of the Linux/ARM CI. \CC: @myungjoo

leemgs avatar Jun 07 '16 04:06 leemgs

@leemgs ARM CI can only prevent build errors. As I gather from the information posted above, this is not a build error (rather a runtime error). This cannot be prevented using CI check.

prajwal-aithal avatar Jun 07 '16 06:06 prajwal-aithal

https://github.com/dotnet/coreclr/pull/5550

Acked-by: Geunsik Lim [email protected]

  • Before 5550:
arm-emnul# time ./corerun ../../example/hello.exe/runtime-arm-u1404-release-mode-201606
dlopen failed to open the libcoreclr.so with error /nfs/runtime-collect-ubuntu-arm/runtime-arm-u1404-release-mode-20160607/libcoreclr.so: undefined symbol: s_forcedGCInProgress

real    0m1.122s
user    0m0.070s
sys 0m0.050s
  • After 5550:
arm-emnul# time ./corerun ../../example/hello.exe/runtime-arm-u1404-release-mode-201606
Hello World

real    0m5.070s
user    0m2.250s
sys 0m0.330s

leemgs avatar Jun 07 '16 06:06 leemgs

@prajwal-aithal to catch runtime errors ARM CI shall execute tests

mkborg avatar Jun 07 '16 11:06 mkborg