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

Self-contained app crashes when placed in a path with backslashes in Unix #48259

Closed
mateoatr opened this issue Feb 13, 2021 · 4 comments
Closed
Milestone

Comments

@mateoatr
Copy link
Contributor

mateoatr commented Feb 13, 2021

Publishing a self-contained application in a path with a back slash in it causes the app to crash with Failed to create CoreCLR, HRESULT: 0x80004005.

A minimal repro:

dotnet new console -o foo
cd foo
dotnet publish -o a\\\\b -r linux-x64
cd a\\\\b
./foo
@ghost
Copy link

ghost commented Feb 13, 2021

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

Issue Details

Publishing a single-file application in compat-mode with an extract base dir that has a back slash in it causes the app to crash with Failed to create CoreCLR, HRESULT: 0x80004005.

A minimal repro:

export DOTNET_BUNDLE_EXTRACT_BASE_DIR="/home/m/tests/extract\here"
dotnet new console -o foo
cd foo
dotnet publish -o out -r linux-x64 -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
cd out
./foo
Author: mateoatr
Assignees: -
Labels:

area-Single-File

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Feb 13, 2021
@agocke agocke changed the title Single file app crashes when DOTNET_BUNDLE_EXTRACT_BASE_DIR has backslashes in Unix Self-contained app crashes when placed in a path with backslashes in Mac Feb 16, 2021
@agocke agocke added area-Host and removed area-Single-File untriaged New issue has not been triaged by the area owner labels Feb 16, 2021
@ghost
Copy link

ghost commented Feb 16, 2021

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

Issue Details

Publishing a single-file application in compat-mode with an extract base dir that has a back slash in it causes the app to crash with Failed to create CoreCLR, HRESULT: 0x80004005.

A minimal repro:

export DOTNET_BUNDLE_EXTRACT_BASE_DIR="/home/m/tests/extract\here"
dotnet new console -o foo
cd foo
dotnet publish -o out -r linux-x64 -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
cd out
./foo
Author: mateoatr
Assignees: -
Labels:

area-Host

Milestone: -

@agocke agocke added this to the Future milestone Feb 16, 2021
@agocke agocke changed the title Self-contained app crashes when placed in a path with backslashes in Mac Self-contained app crashes when placed in a path with backslashes in Unix Feb 16, 2021
@agocke
Copy link
Member

agocke commented Feb 16, 2021

Update issue: this looks like a problem with the runtime when placed in a folder with backslashes

@agocke agocke added this to AppModel Jul 13, 2022
@elinor-fung
Copy link
Member

This is the same as #75387 which has more information - closing against that.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 5, 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

3 participants