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

env CGO_ENABLED=0 go test "-gcflags=all=-N -l" -v ./... causes SEGV #287

Open
1 of 6 tasks
hajimehoshi opened this issue Oct 18, 2024 · 0 comments
Open
1 of 6 tasks
Assignees
Labels
bug Something isn't working
Milestone

Comments

@hajimehoshi
Copy link
Member

PureGo Version

999f588

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • Android
  • iOS

Go Version (go version)

go version go1.23.1 darwin/arm64

What steps will reproduce the problem?

Run env CGO_ENABLED=0 go test "-gcflags=all=-N -l" -v ./...

What is the expected result?

The tests pass

What happens instead?

The tests causes SEGV.

% env CGO_ENABLED=0 go test "-gcflags=all=-N -l" -v ./...
?       github.com/ebitengine/purego/examples/libc      [no test files]
?       github.com/ebitengine/purego/examples/objc      [no test files]
?       github.com/ebitengine/purego/examples/window    [no test files]
?       github.com/ebitengine/purego/internal/cgo       [no test files]
?       github.com/ebitengine/purego/internal/fakecgo   [no test files]
?       github.com/ebitengine/purego/internal/load      [no test files]
?       github.com/ebitengine/purego/internal/strings   [no test files]
signal: segmentation fault
FAIL    github.com/ebitengine/purego    0.323s
signal: segmentation fault
FAIL    github.com/ebitengine/purego/objc       0.178s
FAIL

Anything else you feel useful to add?

No response

@hajimehoshi hajimehoshi added the bug Something isn't working label Oct 18, 2024
@hajimehoshi hajimehoshi added this to the v0.8.1 milestone Oct 18, 2024
@hajimehoshi hajimehoshi changed the title env CGO_ENABLED=0 go test "-gcflags=all=-N -l" -v ./... might cause SEGV env CGO_ENABLED=0 go test "-gcflags=all=-N -l" -v ./... causes SEGV Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants