public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* Strange segfault on native Go binaries
@ 2020-12-12 23:52 Otavio Salvador
  2020-12-13  2:29 ` [OE-core] " Khem Raj
  2020-12-14 22:58 ` Khem Raj
  0 siblings, 2 replies; 15+ messages in thread
From: Otavio Salvador @ 2020-12-12 23:52 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hello all,

I am trying to debug a strange issue on native Go binaries. We're
seeing it on 'glide' for example.

If I build 'glide-native' and I go to its tmp/work/.../image/bin/glide
it works just fine. For example, running it we see the expected error
as I am running inside a clean environment without any extra tools:

otavio@yocto-env ~/.../build %
./tmp/work/x86_64-linux/glide-native/0.13.3-r0/build/bin/glide
[ERROR] Error getting version: exec: "go": executable file not found in $PATH.

Now, if we run it from the sysroot-native, it segfaults:

otavio@yocto-env ~/.../build %
./tmp/work/cortexa9hf-neon-oel-linux-gnueabi/updatehub/1.1.1-r0/recipe-sysroot-native/usr/bin/glide
[1]    26085 segmentation fault (core dumped)

And this segfault is also happening inside the build. I ran the
readelf on them and it seems to have been modified to use the
uninative libc loader but I am in doubt how if this is the culprit.
Can someone shed any light on this?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-12-15  8:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-12 23:52 Strange segfault on native Go binaries Otavio Salvador
2020-12-13  2:29 ` [OE-core] " Khem Raj
2020-12-13 14:52   ` Otavio Salvador
2020-12-14  3:48     ` Khem Raj
2020-12-14 11:31       ` Otavio Salvador
2020-12-14 11:51         ` Konrad Weihmann
2020-12-14 14:03           ` Otavio Salvador
2020-12-14 14:05             ` Konrad Weihmann
2020-12-14 15:25               ` Otavio Salvador
2020-12-14 15:50                 ` Konrad Weihmann
2020-12-14 22:58 ` Khem Raj
2020-12-14 23:50   ` Otavio Salvador
2020-12-15  0:12     ` Khem Raj
2020-12-15  5:18       ` Khem Raj
2020-12-15  8:42         ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox