Re: [OE-core] Strange segfault on native Go binaries

2020-12-15 Thread Richard Purdie
On Mon, 2020-12-14 at 21:18 -0800, Khem Raj wrote: > The problem seems to obscure editing of the glide binary which is > resulting in a single byte in ELF header being modified between > do_install and do_populate_sysroot > > easy reproducer is > > bitbake -cinstall glide-native > > then make

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Khem Raj
On 12/14/20 4:12 PM, Khem Raj wrote: On Mon, Dec 14, 2020 at 3:50 PM Otavio Salvador wrote: Em seg., 14 de dez. de 2020 às 19:59, Khem Raj escreveu: On Sat, Dec 12, 2020 at 08:52:34PM -0300, Otavio Salvador wrote: Hello all, I am trying to debug a strange issue on native Go binaries.

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Khem Raj
On Mon, Dec 14, 2020 at 3:50 PM Otavio Salvador wrote: > > Em seg., 14 de dez. de 2020 às 19:59, Khem Raj escreveu: > > On Sat, Dec 12, 2020 at 08:52:34PM -0300, Otavio Salvador wrote: > > > Hello all, > > > > > > I am trying to debug a strange issue on native Go binaries. We're > > > seeing it

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Otavio Salvador
Em seg., 14 de dez. de 2020 às 19:59, Khem Raj escreveu: > On Sat, Dec 12, 2020 at 08:52:34PM -0300, Otavio Salvador wrote: > > 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

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Khem Raj
On Sat, Dec 12, 2020 at 08:52:34PM -0300, Otavio Salvador wrote: > 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,

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Konrad Weihmann
On 14.12.20 16:25, Otavio Salvador wrote: Hello Konrad, Em seg., 14 de dez. de 2020 às 11:06, Konrad Weihmann escreveu: Had that at a bunch of my tools in meta-sca - as I couldn't rule out my own fault, I help myself with the static linking workaround On 14.12.20 15:03, Otavio Salvador

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Otavio Salvador
Hello Konrad, Em seg., 14 de dez. de 2020 às 11:06, Konrad Weihmann escreveu: > Had that at a bunch of my tools in meta-sca - as I couldn't rule out my > own fault, I help myself with the static linking workaround > > On 14.12.20 15:03, Otavio Salvador wrote: > >> As a partial workaround I

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Konrad Weihmann
Had that at a bunch of my tools in meta-sca - as I couldn't rule out my own fault, I help myself with the static linking workaround On 14.12.20 15:03, Otavio Salvador wrote: Hello Konrad, Em seg., 14 de dez. de 2020 às 09:51, Konrad Weihmann escreveu: I'm experiencing the same on plain

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Otavio Salvador
Hello Konrad, Em seg., 14 de dez. de 2020 às 09:51, Konrad Weihmann escreveu: > I'm experiencing the same on plain Ubuntu 20.04 since 1.15.x update on > master (dunfell works like a charm even without any hacks) - but also > Ubuntu 18.04 and 16.04 based containers do show the same behavior. >

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Konrad Weihmann
I'm experiencing the same on plain Ubuntu 20.04 since 1.15.x update on master (dunfell works like a charm even without any hacks) - but also Ubuntu 18.04 and 16.04 based containers do show the same behavior. This affects only the native variants. As a partial workaround I disabled GO_DYNLINK

Re: [OE-core] Strange segfault on native Go binaries

2020-12-14 Thread Otavio Salvador
Hello Khem, Em seg., 14 de dez. de 2020 às 00:49, Khem Raj escreveu: > On Sun, Dec 13, 2020 at 6:52 AM Otavio Salvador > wrote: > > Em sáb., 12 de dez. de 2020 às 23:30, Khem Raj > > escreveu: > > > On Sat, Dec 12, 2020 at 3:52 PM Otavio Salvador > > > wrote: > > > > And this segfault is

Re: [OE-core] Strange segfault on native Go binaries

2020-12-13 Thread Khem Raj
On Sun, Dec 13, 2020 at 6:52 AM Otavio Salvador wrote: > > Hello Khem, > > Em sáb., 12 de dez. de 2020 às 23:30, Khem Raj escreveu: > > On Sat, Dec 12, 2020 at 3:52 PM Otavio Salvador > > wrote: > > > And this segfault is also happening inside the build. I ran the > > > readelf on them and it

Re: [OE-core] Strange segfault on native Go binaries

2020-12-13 Thread Otavio Salvador
Hello Khem, Em sáb., 12 de dez. de 2020 às 23:30, Khem Raj escreveu: > On Sat, Dec 12, 2020 at 3:52 PM Otavio Salvador > wrote: > > 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

Re: [OE-core] Strange segfault on native Go binaries

2020-12-12 Thread Khem Raj
On Sat, Dec 12, 2020 at 3:52 PM Otavio Salvador wrote: > > 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

[OE-core] Strange segfault on native Go binaries

2020-12-12 Thread Otavio Salvador
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