https://bugs.kde.org/show_bug.cgi?id=499561

            Bug ID: 499561
           Summary: Unrecognised instruction in Qt 6.8.1
    Classification: Developer tools
           Product: valgrind
           Version: 3.25 GIT
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: dnovome...@gmail.com
  Target Milestone: ---

Hello,

on Gentoo Linux on AMD Ryzen 5, valgrind sees unrecognized instruction in Qt's
library when it is compiled using -march=native switch.

==19031== Memcheck, a memory error detector
==19031== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==19031== Using Valgrind-3.25.0.GIT and LibVEX; rerun with -h for copyright
info
==19031== Command: bin/readtest jxl
==19031==
vex amd64->IR: unhandled instruction bytes: 0xC4 0xE2 0x7D 0xDC 0xC9 0x48 0x39
0xF2 0x73 0x4E
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=1 VEX.L=1 VEX.nVVVV=0x0 ESC=0F38
vex amd64->IR:   PFX.66=1 PFX.F2=0 PFX.F3=0
==19031== valgrind: Unrecognised instruction at address 0x540375e.
==19031==    at 0x540375E: unsigned long aeshash256_ge32<(ZeroExtension)0>(long
long __vector(4), long long __vector(2) const*, long long __vector(2) const*,
unsigned long) (in /usr/lib64/libQt6Core.so.6.8.1)
==19031==    by 0x523379F: QCommandLineParser::addOption(QCommandLineOption
const&) (in /usr/lib64/libQt6Core.so.6.8.1)
==19031==    by 0x10F335: main (readtest.cpp:216)
==19031== Your program just tried to execute an instruction that Valgrind
==19031== did not recognise.  There are two possible reasons for this.
==19031== 1. Your program has a bug and erroneously jumped to a non-code
==19031==    location.  If you are running Memcheck and you just saw a
==19031==    warning about a bad jump, it's probably your program's fault.
==19031== 2. The instruction is legitimate but Valgrind doesn't handle it,
==19031==    i.e. it's Valgrind's fault.  If you think this is the case or
==19031==    you are not sure, please let us know and we'll try to fix it.
==19031== Either way, Valgrind will now raise a SIGILL signal which will
==19031== probably kill your program.
==19031==
==19031== Process terminating with default action of signal 4 (SIGILL)
==19031==  Illegal opcode at address 0x540375E
==19031==    at 0x540375E: unsigned long aeshash256_ge32<(ZeroExtension)0>(long
long __vector(4), long long __vector(2) const*, long long __vector(2) const*,
unsigned long) (in /usr/lib64/libQt6Core.so.6.8.1)
==19031==    by 0x523379F: QCommandLineParser::addOption(QCommandLineOption
const&) (in /usr/lib64/libQt6Core.so.6.8.1)
==19031==    by 0x10F335: main (readtest.cpp:216)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to