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

LibraryImportGenerator unit test segfault illegal memory access #89054

Closed
carlossanlop opened this issue Jul 17, 2023 · 16 comments
Closed

LibraryImportGenerator unit test segfault illegal memory access #89054

carlossanlop opened this issue Jul 17, 2023 · 16 comments
Labels
area-System.Runtime.InteropServices Known Build Error Use this to report build issues in the .NET Helix tab runtime-coreclr specific to the CoreCLR runtime source-generator Indicates an issue with a source generator feature test-failure

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Jul 17, 2023

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Segmentation fault .+ LibraryImportGenerator",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Console log: 'LibraryImportGenerator.Unit.Tests' from job 70c62cc8-b91f-419a-a157-04f606e76ff0 workitem 374be96f-79af-40b2-a61a-ef0260c53efa (osx.1200.amd64.open) executed on machine dci-mac-build-302.local running macOS-12.4
+ ./RunTests.sh --runtime-path /tmp/helix/working/AB2F0948/p
----- start Mon Jul 17 13:54:31 PDT 2023 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/AB2F0948/p/dotnet exec --runtimeconfig LibraryImportGenerator.Unit.Tests.runtimeconfig.json --depsfile LibraryImportGenerator.Unit.Tests.deps.json xunit.console.dll LibraryImportGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/AB2F0948/w/B0D909D1/e /private/tmp/helix/working/AB2F0948/w/B0D909D1/e
  Discovering: LibraryImportGenerator.Unit.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  LibraryImportGenerator.Unit.Tests (found 183 of 188 test cases)
  Starting:    LibraryImportGenerator.Unit.Tests (parallel test collections = on, max threads = 6)
    LibraryImportGenerator.UnitTests.Compiles.ValidateSnippetsWithMarshalType [SKIP]
      No current scenarios to test.
./RunTests.sh: line 168: 19058 Segmentation fault: 11  "$RUNTIME_PATH/dotnet" exec --runtimeconfig LibraryImportGenerator.Unit.Tests.runtimeconfig.json --depsfile LibraryImportGenerator.Unit.Tests.deps.json xunit.console.dll LibraryImportGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/AB2F0948/w/B0D909D1/e
----- end Mon Jul 17 13:55:17 PDT 2023 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
ulimit -c value: 0
+ export _commandExitCode=139
+ _commandExitCode=139
+ /usr/local/bin/python3 /tmp/helix/working/AB2F0948/p/reporter/run.py https://dev.azure.com/dnceng-public/ public 7153020 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJuYW1laWQiOiJjNzczZjJjMi01MTIwLTQyMDctYWZlMi1hZmFmMzVhOGJjMGEiLCJzY3AiOiJhcHBfdG9rZW4iLCJhdWkiOiJhNzQxMmE5My1hYzA2LTQyZTQtYWVkMi00OWRlNDQwZGQ2ZjAiLCJzaWQiOiJkYTI3MTVjMS01M2MxLTRkNjgtYjg1Ny00MThiNTE5MDMyOTMiLCJCdWlsZElkIjoiY2JiMTgyNjEtYzQ4Zi00YWJiLTg2NTEtOGNkY2I1NDc0NjQ5OzM0MjQxMyIsImpvYnJlZiI6ImRiMDUzZjk4LTYzZTctNDA5Ny1hZjk0LWJjZWU4NzRmNWQ1YTo1ZGE0ZjE2OS1mYWVjLTU4NjMtZmRmMy1hYzAwODU0NWI1ZTYiLCJwcGlkIjoidnN0ZnM6Ly8vQnVpbGQvQnVpbGQvMzQyNDEzIiwib3JjaGlkIjoiZGIwNTNmOTgtNjNlNy00MDk3LWFmOTQtYmNlZTg3NGY1ZDVhLmJ1aWxkLmxpYnJhcmllc190ZXN0X3J1bl9yZWxlYXNlX2NvcmVjbHJfb3N4X3g2NF9kZWJ1Zy5fX2RlZmF1bHQiLCJyZXBvSWRzIjoiIiwiaXNzIjoiYXBwLnZzdG9rZW4udmlzdWFsc3R1ZGlvLmNvbSIsImF1ZCI6ImFwcC52c3Rva2VuLnZpc3VhbHN0dWRpby5jb218dnNvOjZmY2M5MmU1LTczYTctNGY4OC04ZDEzLWQ5MDQ1YjQ1ZmIyNyIsIm5iZiI6MTY4OTYyNjA0MiwiZXhwIjoxNjg5NjM2MjQyfQ.xnAUFQj946LoXOEf-ZAATed5QLFMKT804-D57F50ZBYjIdsMH5Z_r4l8QTu_WA2zI-RjNMqaEVdhMVGcgXYeJ_4gp9jr0xZNGaW9KkvP-OoKP3y46d8mefmeTcB9QIvgCXpAOWLfJ2VBsGTBLT_QJxTqAKCisUODAzrI226VK2y6aYC6tr5JJVdfB_orXynX66vOWtzbxYlf9nitOwYQUu6cSlWMRtravEvMC5U3SowdiWotLOk2ETjBhUb0s7gvtREYrOg0pmX5MG-Rs8WFaLpjzGkrDPPTqOizKsH3prvyjwIvT8sNNTSXwfNhBAVH535dpwB7v-0VOpzwtupI5w
2023-07-17T20:55:17.714Z	INFO   	run.py	run(48)	main	Beginning reading of test results.
2023-07-17T20:55:17.714Z	INFO   	run.py	__init__(42)	read_results	Searching '/private/tmp/helix/working/AB2F0948/w/B0D909D1/e' for test results files
2023-07-17T20:55:17.716Z	INFO   	run.py	__init__(42)	read_results	Searching '/tmp/helix/working/AB2F0948/w/B0D909D1/uploads' for test results files
2023-07-17T20:55:17.716Z	WARNING	run.py	__init__(55)	read_results	No results file found in any of the following formats: xunit, junit, trx
2023-07-17T20:55:17.717Z	INFO   	run.py	packing_test_reporter(30)	report_results	Packing 0 test reports to '/tmp/helix/working/AB2F0948/w/B0D909D1/e/__test_report.json'
2023-07-17T20:55:17.717Z	INFO   	run.py	packing_test_reporter(33)	report_results	Packed 1551 bytes
+ /usr/local/bin/python3 /tmp/helix/working/AB2F0948/p/gen-debug-dump-docs.py -buildid 342413 -workitem LibraryImportGenerator.Unit.Tests -jobid 70c62cc8-b91f-419a-a157-04f606e76ff0 -outdir /tmp/helix/working/AB2F0948/w/B0D909D1/uploads -templatedir /tmp/helix/working/AB2F0948/p -dumpdir /cores -productver 8.0.0
Did not find dumps, skipping dump docs generation.
+ exit 139
['LibraryImportGenerator.Unit.Tests' END OF WORK ITEM LOG: Command exited with 139]

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=466877
Error message validated: Segmentation fault .+ LibraryImportGenerator
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/16/2023 9:57:52 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@carlossanlop carlossanlop added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' untriaged New issue has not been triaged by the area owner runtime-coreclr specific to the CoreCLR runtime source-generator Indicates an issue with a source generator feature test-failure Known Build Error Use this to report build issues in the .NET Helix tab labels Jul 17, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 17, 2023
@vcsjones vcsjones removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 18, 2023
@AaronRobinsonMSFT AaronRobinsonMSFT added area-System.Runtime.InteropServices and removed area-Interop-coreclr untriaged New issue has not been triaged by the area owner labels Aug 14, 2023
@ghost
Copy link

ghost commented Aug 14, 2023

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Error Blob

{
  "ErrorMessage": "exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

Console log: 'LibraryImportGenerator.Unit.Tests' from job 70c62cc8-b91f-419a-a157-04f606e76ff0 workitem 374be96f-79af-40b2-a61a-ef0260c53efa (osx.1200.amd64.open) executed on machine dci-mac-build-302.local running macOS-12.4
+ ./RunTests.sh --runtime-path /tmp/helix/working/AB2F0948/p
----- start Mon Jul 17 13:54:31 PDT 2023 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/AB2F0948/p/dotnet exec --runtimeconfig LibraryImportGenerator.Unit.Tests.runtimeconfig.json --depsfile LibraryImportGenerator.Unit.Tests.deps.json xunit.console.dll LibraryImportGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/AB2F0948/w/B0D909D1/e /private/tmp/helix/working/AB2F0948/w/B0D909D1/e
  Discovering: LibraryImportGenerator.Unit.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  LibraryImportGenerator.Unit.Tests (found 183 of 188 test cases)
  Starting:    LibraryImportGenerator.Unit.Tests (parallel test collections = on, max threads = 6)
    LibraryImportGenerator.UnitTests.Compiles.ValidateSnippetsWithMarshalType [SKIP]
      No current scenarios to test.
./RunTests.sh: line 168: 19058 Segmentation fault: 11  "$RUNTIME_PATH/dotnet" exec --runtimeconfig LibraryImportGenerator.Unit.Tests.runtimeconfig.json --depsfile LibraryImportGenerator.Unit.Tests.deps.json xunit.console.dll LibraryImportGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/AB2F0948/w/B0D909D1/e
----- end Mon Jul 17 13:55:17 PDT 2023 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
ulimit -c value: 0
+ export _commandExitCode=139
+ _commandExitCode=139
+ /usr/local/bin/python3 /tmp/helix/working/AB2F0948/p/reporter/run.py https://dev.azure.com/dnceng-public/ public 7153020 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJuYW1laWQiOiJjNzczZjJjMi01MTIwLTQyMDctYWZlMi1hZmFmMzVhOGJjMGEiLCJzY3AiOiJhcHBfdG9rZW4iLCJhdWkiOiJhNzQxMmE5My1hYzA2LTQyZTQtYWVkMi00OWRlNDQwZGQ2ZjAiLCJzaWQiOiJkYTI3MTVjMS01M2MxLTRkNjgtYjg1Ny00MThiNTE5MDMyOTMiLCJCdWlsZElkIjoiY2JiMTgyNjEtYzQ4Zi00YWJiLTg2NTEtOGNkY2I1NDc0NjQ5OzM0MjQxMyIsImpvYnJlZiI6ImRiMDUzZjk4LTYzZTctNDA5Ny1hZjk0LWJjZWU4NzRmNWQ1YTo1ZGE0ZjE2OS1mYWVjLTU4NjMtZmRmMy1hYzAwODU0NWI1ZTYiLCJwcGlkIjoidnN0ZnM6Ly8vQnVpbGQvQnVpbGQvMzQyNDEzIiwib3JjaGlkIjoiZGIwNTNmOTgtNjNlNy00MDk3LWFmOTQtYmNlZTg3NGY1ZDVhLmJ1aWxkLmxpYnJhcmllc190ZXN0X3J1bl9yZWxlYXNlX2NvcmVjbHJfb3N4X3g2NF9kZWJ1Zy5fX2RlZmF1bHQiLCJyZXBvSWRzIjoiIiwiaXNzIjoiYXBwLnZzdG9rZW4udmlzdWFsc3R1ZGlvLmNvbSIsImF1ZCI6ImFwcC52c3Rva2VuLnZpc3VhbHN0dWRpby5jb218dnNvOjZmY2M5MmU1LTczYTctNGY4OC04ZDEzLWQ5MDQ1YjQ1ZmIyNyIsIm5iZiI6MTY4OTYyNjA0MiwiZXhwIjoxNjg5NjM2MjQyfQ.xnAUFQj946LoXOEf-ZAATed5QLFMKT804-D57F50ZBYjIdsMH5Z_r4l8QTu_WA2zI-RjNMqaEVdhMVGcgXYeJ_4gp9jr0xZNGaW9KkvP-OoKP3y46d8mefmeTcB9QIvgCXpAOWLfJ2VBsGTBLT_QJxTqAKCisUODAzrI226VK2y6aYC6tr5JJVdfB_orXynX66vOWtzbxYlf9nitOwYQUu6cSlWMRtravEvMC5U3SowdiWotLOk2ETjBhUb0s7gvtREYrOg0pmX5MG-Rs8WFaLpjzGkrDPPTqOizKsH3prvyjwIvT8sNNTSXwfNhBAVH535dpwB7v-0VOpzwtupI5w
2023-07-17T20:55:17.714Z	INFO   	run.py	run(48)	main	Beginning reading of test results.
2023-07-17T20:55:17.714Z	INFO   	run.py	__init__(42)	read_results	Searching '/private/tmp/helix/working/AB2F0948/w/B0D909D1/e' for test results files
2023-07-17T20:55:17.716Z	INFO   	run.py	__init__(42)	read_results	Searching '/tmp/helix/working/AB2F0948/w/B0D909D1/uploads' for test results files
2023-07-17T20:55:17.716Z	WARNING	run.py	__init__(55)	read_results	No results file found in any of the following formats: xunit, junit, trx
2023-07-17T20:55:17.717Z	INFO   	run.py	packing_test_reporter(30)	report_results	Packing 0 test reports to '/tmp/helix/working/AB2F0948/w/B0D909D1/e/__test_report.json'
2023-07-17T20:55:17.717Z	INFO   	run.py	packing_test_reporter(33)	report_results	Packed 1551 bytes
+ /usr/local/bin/python3 /tmp/helix/working/AB2F0948/p/gen-debug-dump-docs.py -buildid 342413 -workitem LibraryImportGenerator.Unit.Tests -jobid 70c62cc8-b91f-419a-a157-04f606e76ff0 -outdir /tmp/helix/working/AB2F0948/w/B0D909D1/uploads -templatedir /tmp/helix/working/AB2F0948/p -dumpdir /cores -productver 8.0.0
Did not find dumps, skipping dump docs generation.
+ exit 139
['LibraryImportGenerator.Unit.Tests' END OF WORK ITEM LOG: Command exited with 139]

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=342413
Error message validated: exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 7/17/2023 9:47:59 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
Author: carlossanlop
Assignees: -
Labels:

area-System.Runtime.InteropServices, blocking-clean-ci, runtime-coreclr, source-generator, test-failure, Known Build Error

Milestone: -

@AaronRobinsonMSFT
Copy link
Member

@jkoritzinsky and @jtschuster This seems a bit odd. The generator is deterministic, so why aren't we seeing this more regularly or in the recent CI? Perhaps this is the non-determinism for A/V, but I'm surprised we haven't seen this before.

@jtschuster
Copy link
Member

The unit tests are all managed code I think. Was this something with us, or something with the runtime?

@AaronRobinsonMSFT
Copy link
Member

Was this something with us, or something with the runtime?

That is the question. My initial guess here would be we are generating something bad.

@jtschuster
Copy link
Member

Generating something bad shouldn't cause a segfault unless we run the code, right? And I don't think we run generated code in the unit tests.

@AaronRobinsonMSFT
Copy link
Member

And I don't think we run generated code in the unit tests.

Ah. I thought we run some of that code. Okay.

@jkoritzinsky
Copy link
Member

Yeah we don't run any generated code in the unit tests. We only generate the code and then use the Roslyn APIs to inspect it. We only run the code in the "integration" tests (ie LibraryImportGenerator.Tests)

@carlossanlop
Copy link
Member Author

I am seeing this failure affecting also ComInterfaceGenerator.Unit.Tests, and in release/8.0. Could it be the same root cause?

Console log: 'ComInterfaceGenerator.Unit.Tests' from job 66299251-1f7b-4287-a196-733ff30cd7c3 workitem 6d62ae3e-1313-4d21-958a-1f7596b99a7d (osx.1200.amd64.open) executed on machine dci-mac-build-317.local running macOS-12.4
+ ./RunTests.sh --runtime-path /tmp/helix/working/988A08C3/p
----- start Tue Aug 22 15:13:45 PDT 2023 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/988A08C3/p/dotnet exec --runtimeconfig ComInterfaceGenerator.Unit.Tests.runtimeconfig.json --depsfile ComInterfaceGenerator.Unit.Tests.deps.json xunit.console.dll ComInterfaceGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/988A08C3/w/A73B0921/e /private/tmp/helix/working/988A08C3/w/A73B0921/e
  Discovering: ComInterfaceGenerator.Unit.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  ComInterfaceGenerator.Unit.Tests (found 106 test cases)
  Starting:    ComInterfaceGenerator.Unit.Tests (parallel test collections = on, max threads = 6)
./RunTests.sh: line 168: 74562 Segmentation fault: 11  "$RUNTIME_PATH/dotnet" exec --runtimeconfig ComInterfaceGenerator.Unit.Tests.runtimeconfig.json --depsfile ComInterfaceGenerator.Unit.Tests.deps.json xunit.console.dll ComInterfaceGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/988A08C3/w/A73B0921/e
----- end Tue Aug 22 15:14:25 PDT 2023 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
ulimit -c value: 0
+ export _commandExitCode=139
+ _commandExitCode=139
+ /usr/local/bin/python3 /tmp/helix/working/988A08C3/p/reporter/run.py https://dev.azure.com/dnceng-public/ public 8164806 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJuYW1laWQiOiJjNzczZjJjMi01MTIwLTQyMDctYWZlMi1hZmFmMzVhOGJjMGEiLCJzY3AiOiJhcHBfdG9rZW4iLCJhdWkiOiIyODA3ODAwNC01OTFhLTQ4NmUtYjkzYi04MmMwZTg4MTU0NjUiLCJzaWQiOiIwODkxMGE5OS04OTViLTQ3ZWUtOTNjMi1iMDg3ZDU0MzgzZDAiLCJCdWlsZElkIjoiY2JiMTgyNjEtYzQ4Zi00YWJiLTg2NTEtOGNkY2I1NDc0NjQ5OzM4MjYyMSIsImpvYnJlZiI6Ijg4ZTRkMWE1LTFkNDktNGNjNi04OGY4LWU3MTkzMTY0M2ZmMzo1ZGE0ZjE2OS1mYWVjLTU4NjMtZmRmMy1hYzAwODU0NWI1ZTYiLCJwcGlkIjoidnN0ZnM6Ly8vQnVpbGQvQnVpbGQvMzgyNjIxIiwib3JjaGlkIjoiODhlNGQxYTUtMWQ0OS00Y2M2LTg4ZjgtZTcxOTMxNjQzZmYzLmJ1aWxkLmxpYnJhcmllc190ZXN0X3J1bl9yZWxlYXNlX2NvcmVjbHJfb3N4X3g2NF9kZWJ1Zy5fX2RlZmF1bHQiLCJyZXBvSWRzIjoiIiwiaXNzIjoiYXBwLnZzdG9rZW4udmlzdWFsc3R1ZGlvLmNvbSIsImF1ZCI6ImFwcC52c3Rva2VuLnZpc3VhbHN0dWRpby5jb218dnNvOjZmY2M5MmU1LTczYTctNGY4OC04ZDEzLWQ5MDQ1YjQ1ZmIyNyIsIm5iZiI6MTY5Mjc0MDcwNSwiZXhwIjoxNjkyNzUwOTA1fQ.jM2z6mpTU77T3xehhZLxIzTYdimoGSb5douy9tB00AtVxvENBA5YZnH9UpL5dAO7vU0j5zOoRg9zNeDpvOw39F4tcaj6oiRBFjkggWUQbcvlREU65Sr3Y3_29VxPXN2wrR2Fkhfe390Z0tI4m2VTqaC2C4TtSD5m6WIOwMDlOYCZOVjXel69IOsS8cdiBxT4Dn9k1TrhldIyD1zO1JDpTVWd3jZXtOEqI1Eu_pj4o60EYaLyBibuqLp7cvDUhGcdNe__i6i2VbGRdYq2-6FU05P2EZ8SlbCEQEq_5NcK_1lR4j1_wGkerTUEXcpkwONSujnVdIf9WOUn9DUYsxZyaQ
2023-08-22T22:14:26.369Z	INFO   	run.py	run(48)	main	Beginning reading of test results.
2023-08-22T22:14:26.369Z	INFO   	run.py	__init__(42)	read_results	Searching '/private/tmp/helix/working/988A08C3/w/A73B0921/e' for test results files
2023-08-22T22:14:26.370Z	INFO   	run.py	__init__(42)	read_results	Searching '/tmp/helix/working/988A08C3/w/A73B0921/uploads' for test results files
2023-08-22T22:14:26.371Z	WARNING	run.py	__init__(55)	read_results	No results file found in any of the following formats: xunit, junit, trx
2023-08-22T22:14:26.371Z	INFO   	run.py	packing_test_reporter(30)	report_results	Packing 0 test reports to '/tmp/helix/working/988A08C3/w/A73B0921/e/__test_report.json'
2023-08-22T22:14:26.371Z	INFO   	run.py	packing_test_reporter(33)	report_results	Packed 1551 bytes
+ /usr/local/bin/python3 /tmp/helix/working/988A08C3/p/gen-debug-dump-docs.py -buildid 382621 -workitem ComInterfaceGenerator.Unit.Tests -jobid 66299251-1f7b-4287-a196-733ff30cd7c3 -outdir /tmp/helix/working/988A08C3/w/A73B0921/uploads -templatedir /tmp/helix/working/988A08C3/p -dumpdir /cores -productver 8.0.0
Did not find dumps, skipping dump docs generation.
+ exit 139
['ComInterfaceGenerator.Unit.Tests' END OF WORK ITEM LOG: Command exited with 139]

@jkoritzinsky
Copy link
Member

Yes, it is possible that this is the same failure.

@agocke agocke added this to AppModel Sep 18, 2023
@agocke
Copy link
Member

agocke commented Nov 16, 2023

I've successfully got a Native AOT crash dump, with working symbols, on Linux for this. Download https://microsoft-my.sharepoint.com/:u:/p/angocke/Eaj2iJxJzItEgs8mngNfxZ0B081M0ipe2Q9ucGKiK80SFQ?e=hfCpNT for a zip with all the necessary bits

@agocke
Copy link
Member

agocke commented Nov 16, 2023

@AaronRobinsonMSFT @jtschuster Could you take a look while Jeremy's out?

@AaronRobinsonMSFT
Copy link
Member

@agocke The above link is for a failure in System.Numerics.Vectors.Tests. Is this really realted to the LibraryImport source generator?

@agocke
Copy link
Member

agocke commented Nov 16, 2023

oh, do those tests not use the generor? OK, this must just be catching extra stuff

@agocke
Copy link
Member

agocke commented Nov 16, 2023

Adjusted the error message, hopefully this will catch only LibraryImportGenerator segfaults now

@agocke agocke changed the title [osx][x64] LibraryImportGenerator unit test segfault illegal memory access LibraryImportGenerator unit test segfault illegal memory access Nov 16, 2023
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label May 30, 2024
@jeffschwMSFT
Copy link
Member

removing blocking-clean-ci as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@agocke
Copy link
Member

agocke commented May 30, 2024

I think it's worth closing this. Whatever was causing the LibraryImportGenerator failures looks more likely to be a runtime instability problem that has been resolved.

@agocke agocke closed this as completed May 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices Known Build Error Use this to report build issues in the .NET Helix tab runtime-coreclr specific to the CoreCLR runtime source-generator Indicates an issue with a source generator feature test-failure
Projects
Archived in project
Development

No branches or pull requests

7 participants