Skip to content

Garbage in TMPDIR resulting in Failed to create CoreCLR, HRESULT: 0x80004005 #15299

@alexei-matveev

Description

@alexei-matveev

Steps to reproduce

See comments in dotnet/runtime#46462

Hm, it seems it is difficult to reproduce from an interactive Shell.
The automated Script is started from a daemon process, several times a minute ...

...
ls -lrtd /tmp/????????-????-????-????-????????????

[Edited by @daxian-dbw] Remove the Home env variable, and then start PowerShell multiple times. You will see multiple temporary folder with GUID id names got created in /tmp.

Expected behavior

Empty output

Actual behavior

Garbage as this ist left:

        $ find 88a84cf3-05b5-40c3-a29e-52d611e919e7
        88a84cf3-05b5-40c3-a29e-52d611e919e7
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.cache
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.cache/powershell
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.cache/powershell/StartupProfileData-NonInteractive
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.cache/powershell/telemetry.uuid
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.local
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.local/share
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.local/share/powershell
        88a84cf3-05b5-40c3-a29e-52d611e919e7/.local/share/powershell/Modules

Environment data

Same with the LTS 7.0.6 and non-LTS 7.1. CentOS 7 with MS Repo attached:

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.6
PSEdition                      Core
GitCommitId                    7.0.6
OS                             Linux 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions