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
runtime: "fatal: systemstack called from unexpected goroutine" on armv6 #38539
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Buildlog for v1.11 library
|
Buildlog with latest (v2.0.3+incompatible) library
|
andybons
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Apr 20, 2020
I've got myself the cables to download the packages etc. Now installing the sqlite package, so see you next year lol. (this really takes time, as its compiling on a single core) |
When I built directly on the pi, it works.
|
The xgo docker image runs the following version of gcc:
|
gopherbot
added
the
compiler/runtime
Issues related to the Go compiler and/or runtime.
label
Jul 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Note: I am using karalabe's xgo for compiling to ARM6
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.12.17 and 1.14.0 both seem affected.
What did you do?
Cross-compile application with github.com/mattn/go-sqlite3 as only import to armv6, with CGO_ENABLED=1
Code:
Longer story is that my host OS is macOS, so I am using karalabe/go-1.12.12 by default, as target. However, I have also tested this on go-1.12.17 (
cd docker/go-1.12.17 && docker build -t karalabe/xgo-1.12.17
) and the latest, 1.14.0 (cd docker/go-1.14.0 && docker build -t karalabe/xgo-1.14.0
), but no difference.I am able to get Segfault on three occasions:
Segmentation fault
go get github.com/mattn/go-sqlite3
as package), output of executable will beSegmentation fault
go get github.com/mattn/go-sqlite3@v1.11.0
as package), output of executable will befatal: systemstack called from unexpected goroutineSegmentation fault
Building
Test environment
Raspberry Pi Zero (not W). Building through cross-compilation because of no internet.
Not using gomod
Build code:
There's now a
hello
executable in the 'diamondo25' folder.Copy the binary to a armv6l box. Running the executable SEGFAULTs right away:
GDB doesn't help much:
Using gomod
There's now a
hello
executable in the 'diamondo25_gomod' folder. The building of this executable took longer than the previous, no-gomod variant.Running this also reports
Segmentation fault
Using gomod with go-sqlite3@v1.11.0
Using the docker container shell, change the go-sqlite3 module to v1.11.0
Now, copying and running this executable will throw the
fatal: systemstack called from unexpected goroutineSegmentation fault
error:GDB reports different info this time:
It is unclear where it really crashes, as it never reports the stack. I think this is causing the fatal exception.
The text was updated successfully, but these errors were encountered: