runtime: crash when cross compiled for raspberry pi #30078
Comments
There is no Go version 1.12.1 yet, I assume you mean 1.11.1. Is this crash reproducible? How often does it happen? Can you share a program that reproduces the problem? The error looks like memory corruption. The description of your build suggests that your program includes C code. How sure are you that that is not introducing memory corruption somewhere? |
Sorry go version is 1.11.2 (updated original comment). Issue happens every time I run binary. Program source is mender client: Mender build for x86 or other arm board like orangepi works perfectly fine. |
Turns out that wrong toolchain was used. Linaro tpplchains support armv7+ but raspberrypi0w is armv6 architecture. When used toochain from raspberrypi everything works. Sorry for noise. Closing. |
Thanks for following up. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?x86_64 cross compiled for arm
go env
OutputWhat did you do?
cross compile mender client for raspberrypi
by using:
when run image on rpi0w we get this (in gdb):
What did you expect to see?
mender to run raspberrypi
What did you see instead?
Segmentation fault
The text was updated successfully, but these errors were encountered: