Skip to content

Can't build runtime on macOS. #49928

Closed

Description

@mfilippov

Description

./build.sh crashed on macOS M!

Configuration

Apple macOS Big Sur 11.2.3
Macmini9,1

Thread 13 Crashed:: RequestBuilder thread
0   libcoreclr.dylib              	0x000000010147aa24 EEJitManager::CleanupCodeHeaps() + 140
1   libcoreclr.dylib              	0x000000010147a9f4 EEJitManager::CleanupCodeHeaps() + 92
2   libcoreclr.dylib              	0x000000010121a5b0 GCToEEInterface::GcStartWork(int, int) + 28
3   libcoreclr.dylib              	0x000000010133860c WKS::gc_heap::garbage_collect(int) + 1080
4   libcoreclr.dylib              	0x000000010132b3e4 WKS::GCHeap::GarbageCollectGeneration(unsigned int, gc_reason) + 920
5   libcoreclr.dylib              	0x000000010132d390 WKS::gc_heap::try_allocate_more_space(alloc_context*, unsigned long, unsigned int, int) + 780
6   libcoreclr.dylib              	0x000000010134e9d8 WKS::GCHeap::Alloc(gc_alloc_context*, unsigned long, unsigned int) + 164
7   libcoreclr.dylib              	0x000000010121e850 AllocateObject(MethodTable*) + 208
8   libcoreclr.dylib              	0x00000001012394a4 JIT_New(CORINFO_CLASS_STRUCT_*) + 112
9   ???                           	0x00000002849b7dd8 0 + 10814717400
10  ???                           	0x00000002849b95cc 0 + 10814723532
11  ???                           	0x00000002849b94d0 0 + 10814723280
12  ???                           	0x00000002831fa870 0 + 10789824624
13  ???                           	0x00000002831f8c78 0 + 10789817464
14  ???                           	0x00000002831f6ecc 0 + 10789809868
15  ???                           	0x0000000284a72258 0 + 10815480408
16  ???                           	0x0000000284a700d8 0 + 10815471832
17  ???                           	0x0000000284a6d0e0 0 + 10815459552
18  ???                           	0x0000000284a6cde0 0 + 10815458784
19  ???                           	0x0000000284a6cb24 0 + 10815458084
20  ???                           	0x0000000284a65930 0 + 10815428912
21  ???                           	0x0000000284a6c9b8 0 + 10815457720
22  ???                           	0x0000000284a65930 0 + 10815428912
23  ???                           	0x000000028325cf6c 0 + 10790227820
24  ???                           	0x000000028325ba08 0 + 10790222344
25  ???                           	0x000000028325a148 0 + 10790216008
26  ???                           	0x0000000283259e14 0 + 10790215188
27  ???                           	0x000000028325782c 0 + 10790205484
28  ???                           	0x0000000283259f14 0 + 10790215444
29  ???                           	0x000000028325782c 0 + 10790205484
30  ???                           	0x0000000283259f14 0 + 10790215444
31  ???                           	0x000000028325782c 0 + 10790205484
32  ???                           	0x000000028324f394 0 + 10790171540
33  ???                           	0x0000000285f2d698 0 + 10837218968
34  ???                           	0x0000000283225dec 0 + 10790002156
35  ???                           	0x0000000285f2c274 0 + 10837213812
36  ???                           	0x0000000282358cf0 0 + 10774482160
37  ???                           	0x0000000285f2c0c4 0 + 10837213380
38  ???                           	0x0000000285ebf9f4 0 + 10836769268
39  ???                           	0x0000000285ee4128 0 + 10836918568
40  ???                           	0x0000000285ee4064 0 + 10836918372
41  ???                           	0x0000000285ebf3ac 0 + 10836767660
42  ???                           	0x0000000285ee3f68 0 + 10836918120
43  ???                           	0x0000000285ee3eac 0 + 10836917932
44  ???                           	0x0000000285ebf138 0 + 10836767032
45  ???                           	0x0000000285ee3c88 0 + 10836917384
46  ???                           	0x0000000285ee3bcc 0 + 10836917196
47  ???                           	0x0000000285edc0fc 0 + 10836885756
48  ???                           	0x0000000284aa45a8 0 + 10815686056
49  ???                           	0x0000000283675b98 0 + 10794523544
50  ???                           	0x0000000284aa9dcc 0 + 10815708620
51  ???                           	0x00000002823513d8 0 + 10774451160
52  ???                           	0x00000002823512e0 0 + 10774450912
53  ???                           	0x0000000284aa45a8 0 + 10815686056
54  libcoreclr.dylib              	0x0000000101355988 CallDescrWorkerInternal + 132
55  libcoreclr.dylib              	0x00000001011e9058 CallDescrWorkerWithHandler(CallDescrData*, int) + 136
56  libcoreclr.dylib              	0x00000001011e92e8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 192
57  libcoreclr.dylib              	0x00000001011f8714 ThreadNative::KickOffThread_Worker(void*) + 148
58  libcoreclr.dylib              	0x00000001011b669c ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 260
59  libcoreclr.dylib              	0x00000001011b6c14 ManagedThreadBase::KickOff(void (*)(void*), void*) + 32
60  libcoreclr.dylib              	0x00000001011f87f0 ThreadNative::KickOffThread(void*) + 176
61  libcoreclr.dylib              	0x00000001010be4c4 CorUnix::CPalThread::ThreadEntry(void*) + 380
62  libsystem_pthread.dylib       	0x000000019e5f206c _pthread_start + 320
63  libsystem_pthread.dylib       	0x000000019e5ecda0 thread_start + 8

dotnet_2021-03-20-110631_unit-2210.crash.txt

Activity

  1. ghost added
    untriaged
    on Mar 20, 2021
  2. jkotas commented on Mar 20, 2021

    @jkotas
    Member

    Related #49568

    cc @sdmaclea

  3. sdmaclea commented on Mar 20, 2021

    @sdmaclea
    Contributor

    I just saw this crash last night and was pushing the patch.

    To build on M1, the macOS-arm64 is a currently not stable enough. I am using

    # remove the .dotnet directory if it contains an osx-arm64 sdk (Use: use_installed_dotnet_cli=false arch -x86_64 ./dotnet.sh --info)
    rm -rf .dotnet
    
    # build using a oxs-x64 runtime
    use_installed_dotnet_cli=false arch -x86_64 ./build.sh ...
  4. ghost added
    in-pr
    on Mar 20, 2021
  5. ghost removed
    in-pr
    on Mar 21, 2021
  6. ghost locked as resolved and limited conversation to collaborators on Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm64area-VM-coreclros-macos-bigsur (macOS11)untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions