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

os.RemoveAll Bug? #41747

Closed
xywf221 opened this issue Oct 2, 2020 · 4 comments
Closed

os.RemoveAll Bug? #41747

xywf221 opened this issue Oct 2, 2020 · 4 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@xywf221
Copy link

xywf221 commented Oct 2, 2020

What version of Go are you using (go version)?

$ go version
go version go1.15 windows/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOENV=C:\Users\Administrator\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Administrator\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Administrator\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\Administrator\GoLandProjects\rim-mod\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build420660114=/tmp/go-build -gno-record-gcc-switches
GOROOT/bin/go version: go version go1.15 windows/amd64
GOROOT/bin/go tool compile -V: compile version go1.15

What did you do?

I tried to delete the folder, but the program crashed and exited。

package main

import (
	"fmt"
	"os"
)

func main() {
	os.RemoveAll("E:/test/a")
	fmt.Println("safe exit")
}

E:/test/a is here
2012631342_ultra_vanilla_theme.zip
this is game mods , unzip in a folder with permissions . run code

What did you expect to see?

output safe exit

What did you see instead?

program crashed and exited。

@davecheney
Copy link
Contributor

program crashed and exited。

Can you please provide the entire crash output, as text, if possible.

@davecheney davecheney added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 2, 2020
@xywf221
Copy link
Author

xywf221 commented Oct 2, 2020

program crashed and exited。

Can you please provide the entire crash output, as text, if possible.

He just collapsed, but there was no output, as if it had suddenly died

@davecheney
Copy link
Contributor

Are you sure this was a problem with the Go program you wrote and not your antivirus software?

@xywf221
Copy link
Author

xywf221 commented Oct 2, 2020

Are you sure this was a problem with the Go program you wrote and not your antivirus software?

I don't install antivirus software, but you remind me that it may be my problem

@xywf221 xywf221 closed this as completed Oct 2, 2020
@golang golang locked and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants