Re: sha256sum Illegal instruction on musl amd64

2023-03-31 Thread Natanael Copa
On Wed, 29 Mar 2023 15:46:58 +0200 Denys Vlasenko wrote: > > > it's caused by having a cpu with AVX512 (the github runners do) but not > > > sha_ni, > > > and the code that checks it is broken and misdetects sha_ni support when > > > avx512 > > > exists. the github runners don't have sha_ni,

Re: sha256sum Illegal instruction on musl amd64

2023-03-30 Thread ben . busybox
On 31 Mar 2023, at 2:29 AM, Kang-Che Sung wrote: > On Fri, Mar 31, 2023 at 12:34 AM wrote: >> shaNI = ((ebx >> 28) & 2) - 1; /* bit 29 -> 1 or -1 */ >> >> Seems a lot more complicated than intel's approach: >> >> shaNI = ((ebx >> 29) & 1); > The `shaNI` variable is not a boolean, but has three

Re: sha256sum Illegal instruction on musl amd64

2023-03-30 Thread Kang-Che Sung
On Fri, Mar 31, 2023 at 12:34 AM wrote: > > shaNI = ((ebx >> 28) & 2) - 1; /* bit 29 -> 1 or -1 */ > > Seems a lot more complicated than intel's approach: > > shaNI = ((ebx >> 29) & 1); > The `shaNI` variable is not a boolean, but has three possible values: 0 (undetermined), 1 (SHA instructions

Re: sha256sum Illegal instruction on musl amd64

2023-03-30 Thread ben . busybox
The bug report says the 8171M and 8272CL have the problem. After applying the simple Intel approach Natanael is referring to, I was able to run on the 8171M (I have a run log to confirm it). I used the patch from the bug report: https://bugs.busybox.net/show_bug.cgi?id=15236 shaNI = ((ebx >>

Re: sha256sum Illegal instruction on musl amd64

2023-03-30 Thread Natanael Copa
On Wed, 29 Mar 2023 15:07:49 +0200 Denys Vlasenko wrote: > On Wed, Mar 1, 2023 at 12:01*PM alice wrote: > > On Tue Feb 28, 2023 at 11:17 PM CET, wrote: > > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 > > > 22:49:12 > > > UTC)" (the one from the Docker image

Re: sha256sum Illegal instruction on musl amd64

2023-03-29 Thread Denys Vlasenko
On Wed, Mar 29, 2023 at 3:07 PM Denys Vlasenko wrote: > On Wed, Mar 1, 2023 at 12:01 PM alice wrote: > > On Tue Feb 28, 2023 at 11:17 PM CET, wrote: > > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 > > > 22:49:12 > > > UTC)" (the one from the Docker image busybox:musl)

Re: sha256sum Illegal instruction on musl amd64

2023-03-29 Thread Denys Vlasenko
On Wed, Mar 1, 2023 at 12:01 PM alice wrote: > On Tue Feb 28, 2023 at 11:17 PM CET, wrote: > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 > > UTC)" (the one from the Docker image busybox:musl) when running on amd64 > > GitHub > > actions runner VMs (azure). > >

Re: sha256sum Illegal instruction on musl amd64

2023-03-01 Thread Henrique de Moraes Holschuh
There is some data in: https://www.intel.com/content/dam/develop/external/us/en/documents/intel-sha-extensions-white-paper.pdf page 13. If what the document above describes is what busybox is already doing on Intel, then it is time to find out the exact processor model that exposed the

Re: sha256sum Illegal instruction on musl amd64

2023-03-01 Thread ben . busybox
On 1 Mar 2023, at 12:53 PM, Natanael Copa wrote: > Hi, > > On Wed, 01 Mar 2023 11:55:16 +0100 > "alice" wrote: > >> On Tue Feb 28, 2023 at 11:17 PM CET, wrote: >>> Hi, >>> >>> I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 >>> UTC)" (the one from the Docker image

Re: sha256sum Illegal instruction on musl amd64

2023-03-01 Thread Natanael Copa
Hi, On Wed, 01 Mar 2023 11:55:16 +0100 "alice" wrote: > On Tue Feb 28, 2023 at 11:17 PM CET, wrote: > > Hi, > > > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 > > UTC)" (the one from the Docker image busybox:musl) when running on amd64 > > GitHub > > actions

Re: sha256sum Illegal instruction on musl amd64

2023-03-01 Thread ben . busybox
On 1 Mar 2023, at 11:55 AM, alice wrote: > > On Tue Feb 28, 2023 at 11:17 PM CET, wrote: >> Hi, >> >> I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 >> UTC)" (the one from the Docker image busybox:musl) when running on amd64 >> GitHub >> actions runner VMs

Re: sha256sum Illegal instruction on musl amd64

2023-03-01 Thread alice
On Tue Feb 28, 2023 at 11:17 PM CET, wrote: > Hi, > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 > UTC)" (the one from the Docker image busybox:musl) when running on amd64 > GitHub > actions runner VMs (azure). > > When I use sha256sum it is getting terminated

Re: sha256sum Illegal instruction on musl amd64

2023-02-28 Thread ben . busybox
Quick update: I've tried all these docker base images: busybox:1.3{4,5,6}-{musl,uclibc,glibc} and I can only reproduce the failure in 1.36 - but it does fail with all three stdlib variants. These docker images contain the core dump: ghcr.io/backplane/avxtest:1.36-glibc-1677653916

Re: sha256sum Illegal instruction on musl amd64

2023-02-28 Thread Peter Faasse
On dinsdag 28 februari 2023 23:17:19 CET ben.busy...@backplane.be wrote: > Hi, > > I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 > UTC)" (the one from the Docker image busybox:musl) when running on amd64 > GitHub actions runner VMs (azure). > > When I use sha256sum

sha256sum Illegal instruction on musl amd64

2023-02-28 Thread ben . busybox
Hi, I'm having an intermittent issue with "BusyBox v1.36.0 (2023-01-03 22:49:12 UTC)" (the one from the Docker image busybox:musl) when running on amd64 GitHub actions runner VMs (azure). When I use sha256sum it is getting terminated with SIGILL, Illegal instruction. The issue is hard to