Bug 502263 - valgrind gives error about vpbroadcastq
Summary: valgrind gives error about vpbroadcastq
Status: RESOLVED DUPLICATE of bug 383010
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.24.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 04:51 UTC by kazim sarikaya
Modified: 2025-04-01 12:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
configure output. (21.27 KB, text/plain)
2025-04-01 04:51 UTC, kazim sarikaya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kazim sarikaya 2025-04-01 04:51:35 UTC
Created attachment 179901 [details]
configure output.

When i run valgrind with i this error:

vex amd64->IR: unhandled instruction bytes: 0x62 0xF2 0xFD 0x48 0x59 0x44 0x24 0x1 0x49 0x89
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=NONE
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==26057== valgrind: Unrecognised instruction at address 0x42f977.

the related code at 0x42f977 is:
...
  42f972:       4c 01 f8                add    %r15,%rax
  42f975:       ff d0                   call   *%rax
  42f977:       62 f2 fd 48 59 44 24    vpbroadcastq 0x8(%rsp),%zmm0
  42f97e:       01 
  42f97f:       49 89 44 24 38          mov    %rax,0x38(%r12)
...

it is avx related code probably 512.. the version i encountered is 3.24.0 however i also build from git with head 19b70d65 (3.25.git). problem still there.

i attached my configure log of
./configure --enable-inner --disable-ubsan --enable-lto --enable-tls --prefix=/home/kazim/.local/valgrind
Comment 1 Paul Floyd 2025-04-01 05:10:04 UTC
You almost certainly don’t want —enable inner.

LTO will make debugging Valgrind itself more difficult.

And as for avx512, it’s not supported.
Comment 2 kazim sarikaya 2025-04-01 07:00:47 UTC
(In reply to Paul Floyd from comment #1)
> You almost certainly don’t want —enable inner.
> 
> LTO will make debugging Valgrind itself more difficult.
i tried several parameters if it works. until i noticed it is related avx.

> 
> And as for avx512, it’s not supported.
Is there any plan to support?
Comment 3 Mark Wielaard 2025-04-01 12:04:12 UTC
(In reply to kazim sarikaya from comment #2)
> (In reply to Paul Floyd from comment #1)
> > And as for avx512, it’s not supported.
> Is there any plan to support?

There is https://bugs.kde.org/show_bug.cgi?id=valgrind-avx512
But nobody currently working on it.

*** This bug has been marked as a duplicate of bug 383010 ***