sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Sometimes crash on Mac M1

Open scheglov opened this issue 3 years ago • 1 comments

scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (aa-publish)$ d-rts
Total 447 tests, of which 104 are expected to fail.
00:53 +4962: analysis_server | lsp | CompletionTest | test_completeFunctionCalls_resolve_producesCorrectEditWithoutInsertText
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=2, si_addr=0x0
version=2.18.0-edge.a37502c1b88a7fa3277531b37a5b075169a8f9c1 (be) (Tue Jun 28 16:02:53 2022 +0000) on "macos_arm64"
pid=57064, thread=20999, isolate_group=main(0x12700c400), isolate=main(0x12701bc00)
isolate_instructions=10425f7e0, vm_instructions=10425f7e0
Stack dump aborted because InitialRegisterCheck failed.
/Users/scheglov/bin/d-rts: line 11: 57064 Abort trap: 6           dart /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analysis_server/test/test_all.dart

real	1m3.397s
user	1m11.088s
sys	0m5.688s
scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (aa-publish)$ dart --version
Dart SDK version: 2.18.0-edge.a37502c1b88a7fa3277531b37a5b075169a8f9c1 (be) (Tue Jun 28 16:02:53 2022 +0000) on "macos_arm64"
scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (aa-publish)$ uname -a
Darwin scheglov-macbookpro4.roam.internal 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000 arm64

I think this happens most often when I run this set of tests in parallel with another one or two tests in different console tabs.

scheglov avatar Aug 09 '22 22:08 scheglov

//cc @rmacnak-google

a-siva avatar Aug 10 '22 00:08 a-siva

@scheglov Can you expand what your d-rts script runs?

rmacnak-google avatar Aug 10 '22 16:08 rmacnak-google

time dart /Users/scheglov/Source/Dart/sdk.git/sdk/pkg/analysis_server/test/test_all.dart

scheglov avatar Aug 10 '22 16:08 scheglov

possibly on out of memory situation in some C code that does not have a check.

a-siva avatar Aug 10 '22 20:08 a-siva

I haven't been able to reproduce this. Are you able to reproduce this with a coredump or under lldb?

rmacnak-google avatar Aug 16 '22 20:08 rmacnak-google

@scheglov any luck on reprocing this with a coredump ?

a-siva avatar Nov 04 '22 23:11 a-siva

I have not seen it for a while.

scheglov avatar Nov 05 '22 02:11 scheglov

Closing issue, if you run into this again please open a new issue.

a-siva avatar Nov 07 '22 17:11 a-siva