Skip to content

LibraryImportGenerator unit test segfault illegal memory access #89054

Closed
@carlossanlop

Description

@carlossanlop

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions