Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: profiler/unittest/releaseondetach/releaseondetach.sh #45338

Closed
v-haren opened this issue Nov 30, 2020 · 4 comments · Fixed by #46739
Closed

Test failure: profiler/unittest/releaseondetach/releaseondetach.sh #45338

v-haren opened this issue Nov 30, 2020 · 4 comments · Fixed by #46739
Assignees
Milestone

Comments

@v-haren
Copy link

v-haren commented Nov 30, 2020

failed in job: https://dev.azure.com/dnceng/public/_build/results?buildId=902349&view=ms.vss-test-web.build-test-results-tab&runId=28814242&resultId=105067&paneView=debug

CoreCLR Linux x64 Checked gcstress0x3 @ Ubuntu.1804.Amd64.Open

Error message

Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
   at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 146
   at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 101
   at Profiler.Tests.ReleaseOnShutdown.Main(String[] args) in /__w/1/s/src/tests/profiler/unittest/releaseondetach.cs:line 88
/home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/releaseondetach.sh: line 372: 17224 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/Reports/profiler.unittest/releaseondetach/releaseondetach.output.txt
Raw output:
BEGIN EXECUTION
/home/helixbot/work/B95C0A07/p/corerun releaseondetach.dll ''
Profiler path: /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/libProfiler.so
Attaching profiler /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/libProfiler.so to self.
Profiler.dll!DllGetClassObject
Profiler.dll!Profiler::Initialize
Initialize for attach started
RequestProfilerDetach successful
Profiler detach succeeded
PROFILER TEST PASSES
Gathering state for process 17234 corerun
Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/coredump.17234.dmp

Written 76800000 bytes (18750 pages) to core file
Dump successfully written
Test failed: Profilee returned exit code 139 instead of expected exit code 100.
Gathering state for process 17224 corerun
Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/coredump.17224.dmp
Written 100392960 bytes (24510 pages) to core file
Dump successfully written
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/home/helixbot/work/B95C0A07/p
> /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/releaseondetach.sh
Expected: True
Actual:   False

Stack trace
   at profiler_unittest._releaseondetach_releaseondetach_._releaseondetach_releaseondetach_sh() in /__w/1/s/artifacts/tests/coreclr/Linux.x64.Checked/TestWrappers/profiler.unittest/profiler.unittest.XUnitWrapper.cs:line 367
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Diagnostics-coreclr untriaged New issue has not been triaged by the area owner labels Nov 30, 2020
@ghost
Copy link

ghost commented Nov 30, 2020

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

Issue Details

failed in job: https://dev.azure.com/dnceng/public/_build/results?buildId=902349&view=ms.vss-test-web.build-test-results-tab&runId=28814242&resultId=105067&paneView=debug

CoreCLR Linux x64 Checked gcstress0x3 @ Ubuntu.1804.Amd64.Open

Error message

Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
   at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 146
   at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 101
   at Profiler.Tests.ReleaseOnShutdown.Main(String[] args) in /__w/1/s/src/tests/profiler/unittest/releaseondetach.cs:line 88
/home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/releaseondetach.sh: line 372: 17224 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/Reports/profiler.unittest/releaseondetach/releaseondetach.output.txt
Raw output:
BEGIN EXECUTION
/home/helixbot/work/B95C0A07/p/corerun releaseondetach.dll ''
Profiler path: /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/libProfiler.so
Attaching profiler /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/libProfiler.so to self.
Profiler.dll!DllGetClassObject
Profiler.dll!Profiler::Initialize
Initialize for attach started
RequestProfilerDetach successful
Profiler detach succeeded
PROFILER TEST PASSES
Gathering state for process 17234 corerun
Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/coredump.17234.dmp

Written 76800000 bytes (18750 pages) to core file
Dump successfully written
Test failed: Profilee returned exit code 139 instead of expected exit code 100.
Gathering state for process 17224 corerun
Writing minidump with heap to file /home/helixbot/dotnetbuild/dumps/coredump.17224.dmp
Written 100392960 bytes (24510 pages) to core file
Dump successfully written
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/home/helixbot/work/B95C0A07/p
> /home/helixbot/work/B95C0A07/w/BE3009E4/e/profiler/unittest/releaseondetach/releaseondetach.sh
Expected: True
Actual:   False

Stack trace
   at profiler_unittest._releaseondetach_releaseondetach_._releaseondetach_releaseondetach_sh() in /__w/1/s/artifacts/tests/coreclr/Linux.x64.Checked/TestWrappers/profiler.unittest/profiler.unittest.XUnitWrapper.cs:line 367
Author: v-haren
Assignees: -
Labels:

area-Diagnostics-coreclr, untriaged

Milestone: -

@tommcdon tommcdon removed the untriaged New issue has not been triaged by the area owner label Dec 7, 2020
@tommcdon tommcdon added this to the 6.0.0 milestone Dec 7, 2020
@tommcdon
Copy link
Member

tommcdon commented Dec 7, 2020

@davmason

@v-haren
Copy link
Author

v-haren commented Dec 21, 2020

failed again in job: runtime-coreclr outerloop 20201220.3

failed test: profiler/eventpipe/eventpipe/eventpipe.sh

R2R OSX x64 Checked @ OSX.1013.Amd64.Open

Error message

Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
   at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 146
   at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions) in /__w/1/s/src/tests/profiler/common/ProfilerTestRunner.cs:line 101
   at EventPipeTests.EventPipe.Main(String[] args) in /__w/1/s/src/tests/profiler/eventpipe/eventpipe.cs:line 31
MachO coredumps are not supported. To enable ELF coredumps on MacOS, set the COMPlus_DbgEnableElfDumpOnMacOS environment variable to 1.
/private/tmp/helix/working/B4A7099C/w/AC360957/e/profiler/eventpipe/eventpipe/eventpipe.sh: line 379: 63116 Abort trap: 6           (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /private/tmp/helix/working/B4A7099C/w/AC360957/e/profiler/eventpipe/Reports/profiler.eventpipe/eventpipe/eventpipe.output.txt
Raw output:
BEGIN EXECUTION
in takeLock
Microsoft (R) CoreCLR Native Image Generator - Version 6.0.0-ci
Copyright (c) Microsoft Corporation.  All rights reserved.

Native image eventpipe.dll generated successfully.

in ReleaseLock
in takeLock
/tmp/helix/working/B4A7099C/p/corerun eventpipe.dll ''
Profiler path: /private/tmp/helix/working/B4A7099C/w/AC360957/e/profiler/eventpipe/eventpipe/libProfiler.dylib
Profiler.dll!DllGetClassObject
Profiler.dll!Profiler::Initialize
This method being jitted should trigger events firing...
TriggerMethod found! Sending event...
Profiler.dll!Profiler::Shutdown
PROFILER TEST PASSES

Test failed: Profilee returned exit code 139 instead of expected exit code 100.
in ReleaseLock
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/tmp/helix/working/B4A7099C/p
> /private/tmp/helix/working/B4A7099C/w/AC360957/e/profiler/eventpipe/eventpipe/eventpipe.sh
Expected: True
Actual:   False


Stack trace
   at profiler_eventpipe._eventpipe_eventpipe_._eventpipe_eventpipe_sh() in /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Checked/TestWrappers/profiler.eventpipe/profiler.eventpipe.XUnitWrapper.cs:line 153

@davmason
Copy link
Member

davmason commented Jan 7, 2021

I ran releaseondetach in a loop for an hour or so and never saw a failure. It has been long enough that the coredump is gone.

Looking at the history it has only failed once, closing this for now. If it fails again I will investigate then. The second failure here is a different test tracked by #39669.

@davmason davmason closed this as completed Jan 7, 2021
@davmason davmason linked a pull request Jan 8, 2021 that will close this issue
@ghost ghost locked as resolved and limited conversation to collaborators Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants