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

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

Closed
VSadov opened this issue May 27, 2022 · 7 comments
Assignees
Milestone

Comments

@VSadov
Copy link
Member

VSadov commented May 27, 2022

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
@ghost ghost added the untriaged New issue has not been triaged by the area owner label May 27, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@VSadov VSadov self-assigned this May 27, 2022
@ghost
Copy link

ghost commented May 27, 2022

Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

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
Author: VSadov
Assignees: VSadov
Labels:

area-Single-File, untriaged

Milestone: -

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 27, 2022
@bgever
Copy link

bgever commented May 28, 2022

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

@bgever
Copy link

bgever commented May 28, 2022

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

@agocke agocke removed the untriaged New issue has not been triaged by the area owner label Jun 1, 2022
@agocke agocke added this to the 7.0.0 milestone Jun 1, 2022
@oransel
Copy link

oransel commented Jun 2, 2022

Adding comments from #67062 (comment)

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 9, 2022
@agocke agocke added this to AppModel Jul 1, 2022
@bgever
Copy link

bgever commented Jul 13, 2022

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

@oransel
Copy link

oransel commented Jul 13, 2022

Confirmed as well

@agocke agocke closed this as completed Jul 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

4 participants