Repository navigation
[wasm][tests][aot] Tests failing due to stacktrace not supported #50957
Copy link
Copy link
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Codegen-AOT-monodisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuewasm-aot-testWebAssembly AOT TestWebAssembly AOT Test
Milestone
Description
Tests failing due to stacktrace APIs not being supported. The relevant tests are disabled.
System.Diagnostics.TestsSystem.Runtime.Extensions.TestsSystem.IO.Pipelines.Tests([wasm][tests][aot] System.IO.Pipelines.Tests - failing tests #50959)
-- System.Diagnostics.Tests
Logs
[19:39:33] fail: [FAIL] System.Diagnostics.Tests.StackFrameExtensionsTests.HasMethod_Invoke_ReturnsExpected(stackFrame: <null>
[19:39:33] info: , expected: True)
[19:39:33] info: Assert.Equal() Failure
[19:39:33] info: Expected: True
[19:39:33] info: Actual: False
[19:39:33] info:
[19:39:33] info: , expected: False)
[19:39:33] info: )
[19:39:33] info: )
[19:39:33] info: )
[19:39:33] info: )
[19:39:33] info: )
[19:39:33] info: )
[19:39:33] info: , expected: False)
[19:39:33] info: , expected: True)
[19:39:33] info: , expected: False)
[19:39:33] fail: [FAIL] System.Diagnostics.Tests.StackFrameExtensionsTests.HasILOffset_Invoke_ReturnsExpected(stackFrame: <null>
[19:39:33] info: , expected: True)
[19:39:33] info: Assert.Equal() Failure
[19:39:33] info: Expected: True
[19:39:33] info: Actual: False
[19:39:33] info:
[19:39:33] info: , expected: False)
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_Bool_ThrownException_GetFramesReturnsExpected(fNeedFileInfo: True)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_Bool_ThrownException_GetFramesReturnsExpected(fNeedFileInfo: False)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames(skipFrames: 0)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames(skipFrames: 1)
[19:39:34] info: Assert.Equal() Failure
[19:39:34] info: Expected: -1
[19:39:34] info: Actual: 0
[19:39:34] info:
[19:39:34] info: )
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_Default
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_ThrownException_GetFramesReturnsExpected
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_FNeedFileInfo(fNeedFileInfo: True)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_FNeedFileInfo(fNeedFileInfo: False)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames_FNeedFileInfo(skipFrames: 0, fNeedFileInfo: True)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames_FNeedFileInfo(skipFrames: 1, fNeedFileInfo: True)
[19:39:34] info: Assert.Equal() Failure
[19:39:34] info: Expected: -1
[19:39:34] info: Actual: 0
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames_FNeedFileInfo(skipFrames: 0, fNeedFileInfo: False)
[19:39:34] info: Assert.True() Failure
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackTraceTests.Ctor_SkipFrames_FNeedFileInfo(skipFrames: 1, fNeedFileInfo: False)
[19:39:34] info: Assert.Equal() Failure
[19:39:34] info: Expected: -1
[19:39:34] info: Actual: 0
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.SkipFrames_CallMethod_ReturnsExpected
[19:39:34] info: Assert.Equal() Failure
[19:39:34] info: Expected: Void SkipFrames_CallMethod_ReturnsExpected()
[19:39:34] info: Actual: (null)
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_Default
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_FNeedFileInfo(fNeedFileInfo: True)
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_FNeedFileInfo(fNeedFileInfo: False)
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_Filename_LineNumber(fileName: null, lineNumber: -1)
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_Filename_LineNumber(fileName: "", lineNumber: 0)
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
[19:39:34] info:
[19:39:34] fail: [FAIL] System.Diagnostics.Tests.StackFrameTests.Ctor_Filename_LineNumber(fileName: "FileName", lineNumber: 1)
[19:39:34] info: Expected GetILOffset() -1 for <null>
[19:39:34] info: to be greater or equal to zero.
[19:39:34] info: Expected: True
[19:39:34] info: Actual: False
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Codegen-AOT-monodisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuewasm-aot-testWebAssembly AOT TestWebAssembly AOT Test
Activity
BrzVlad commentedon May 7, 2021
I don't see how it would be possible to implement this, unless we would be manually linking frames with each call, which sounds like a bad idea.
lewing commentedon May 7, 2021
yeah I think we should probably just skip these with platform detection on AOT
radical commentedon May 7, 2021
Only the failing tests, or the entire library?
lewing commentedon May 7, 2021
Don't skip the library. Leave them active issue for now. We may want to consider an AOT analyzer for cases like this too. Thoughts @marek-safar
[-][wasm][tests][aot] System.Diagnostics.StackTrace[/-][+][wasm][tests][aot] Stacktrace not supported: `System.Diagnostics.StackTrace`[/+][-][wasm][tests][aot] Stacktrace not supported: `System.Diagnostics.StackTrace`[/-][+][wasm][tests][aot] Tests failing due to stacktrace not supported[/+]radical commentedon Jun 16, 2021
Merging #51676 with this.
BrzVlad commentedon Jun 29, 2021
Having stack traces on wasm is a bit complicated and I think we should revisit this for .net 7. @lewing Any thoughts on moving the milestone ?
SamMonoRT commentedon Jul 16, 2021
Moving to 7.0.0
ilonatommy commentedon Jun 15, 2022
@BrzVlad, did you hit into any blocker in the part of #63399 targeting prev 2?
BrzVlad commentedon Jun 15, 2022
That approach was abandoned. I'm not sure what is the best way to support stack traces with wasm code, maybe there will be some additions to the spec that will allow to implement this more easily.
lewing commentedon Jun 16, 2022
we're getting enough diagnostic info from the current stacks that this isn't urgent, we'll go over it again when planning for 8
pavelsavara commentedon Apr 22, 2026
For coreCLR this may be solved by enabling
<StackTraceLineNumberSupport>true</StackTraceLineNumberSupport>for the tests.Enable StackTrace tests on browser now that line number support is en…