Skip to content

[6.0] HelloWorld singlefile app does not run on arm64 macos on SDK 6.0.203 or newer  #69923

Closed

Description

@VSadov

Possibly the same issues as fixed for 7.0 in #68845

Disabling R2R via export COMPlus_ZapDisable=1. makes the crash disappear.

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000000000000
    frame #1: 0x000000017673c2f4
    frame #2: 0x00000001002fa308 hello`CallDescrWorkerInternal + 132
    frame #3: 0x000000010016ad74 hello`MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 868
    frame #4: 0x0000000100092094 hello`CorHost2::CreateAppDomainWithManager(char16_t const*, unsigned int, char16_t const*, char16_t const*, int, char16_t const**, char16_t const**, unsigned int*) + 624
    frame #5: 0x0000000100566a40 hello`coreclr_initialize + 784
    frame #6: 0x00000001000207b8 hello`coreclr_t::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*, char const*, coreclr_property_bag_t const&, std::__1::unique_ptr<coreclr_t, std::__1::default_delete<coreclr_t> >&) + 412
    frame #7: 0x000000010002daf0 hello`(anonymous namespace)::create_coreclr() + 432
    frame #8: 0x000000010002d5b4 hello`corehost_main + 160

Activity

  1. ghost added
    untriaged
    on May 27, 2022
  2. self-assigned this
    on May 27, 2022
  3. ghost added
    in-pr
    on May 27, 2022
  4. bgever commented on May 28, 2022

    @bgever

    Can confirm I'm running into this issue with 6.0.203:

    % dotnet --info
    .NET SDK (reflecting any global.json):
     Version:   6.0.203
     Commit:    a20feadf6d

    Using publish command: dotnet publish -c Release -r osx-arm64 --sc .
    When I enable PublishSingleFile, I get the following output on the terminal when I run my console app:

    % ./app
    zsh: segmentation fault  ./app

    With PublishReadyToRun and PublishTrimmed enabled:

    % ./app
    zsh: abort      ./app
  5. bgever commented on May 28, 2022

    @bgever

    Using export COMPlus_ZapDisable=1 before running the app indeed acts as a workaround. Thanks!

  6. removed
    untriaged
    on Jun 1, 2022
  7. added this to the 7.0.0 milestone on Jun 1, 2022
  8. oransel commented on Jun 2, 2022

    @oransel

    Adding comments from #67062 (comment)

  9. ghost removed
    in-pr
    on Jun 9, 2022
  10. bgever commented on Jul 13, 2022

    @bgever

    No longer having this issue with SDK 6.0.302. 🎉 (6.0.301 still had it)

  11. oransel commented on Jul 13, 2022

    @oransel

    Confirmed as well

  12. ghost locked as resolved and limited conversation to collaborators on Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions