runtime: paltest_pal_sxs_test1 failed on SmartOS x64

The following condition is failing on SmartOS x64: https://github.com/dotnet/runtime/blob/0fbd88e4bd00b5f5218a20468e617b3d79d10a1d/src/coreclr/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.cpp#L65-L67

Based on the discussion in https://github.com/dotnet/runtime/issues/5158, I have captured the backtraces and printed the value of ex.GetExceptionRecord()->ExceptionInformation[1], which is different in every run, but never the expected 0x22: https://gist.github.com/am11/0bef90cabb1185d41a93c456e9083b4d.

cc @janvorli, if i try to comment this FAIL line it throws SIGABRT after few lines.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 21 (18 by maintainers)

Most upvoted comments

@JulieLeeMSFT, this is a different OS (illumos), while outerloop failure is in linux-musl-arm. Opened #81113.

@jclulow, if you want to give it a try, you can use my branch with libunwind upgrade commit: feature/solaris/pal-test-fixes. On SmartOS 20200408T231825Z x64 userland, my steps are:

sudo pkgin -y install git mozilla-rootcerts cmake icu py37-expat gcc7 gmake gdb-7

git clone https://github.com/am11/runtime --branch feature/solaris/pal-test-fixes --single-branch --depth 1

# skip everything and only build coreclr with PAL tests
runtime/src/coreclr/build-runtime.sh -skipgenerateversion -nopgooptimize    \
    -cmakeargs -DCLR_CMAKE_BUILD_TESTS=1 -gcc

with seven physical cores, the build took 11m33.128s with clean tree; subsequent runs (without git-clean) are faster.

The test executable paltest_pal_sxs_test1 is in artifacts/obj/coreclr/SunOS.x64.Debug/src/pal/tests/palsuite/exception_handling/pal_sxs/test1 directory.