[Bug 1826811] Re: Valgrind unhandled instruction 0xD5380000 on Aarch64

Eric Desrochers eric.desrochers at canonical.com
Wed Dec 11 17:40:07 UTC 2019


-----

commit fbbb696c5d1e93d4ac6cb548c68bb3f443ceef42 
Author: Mark Wielaard <mark at klomp.org> 
Date: Tue Jun 19 18:00:45 2018 +0200 

Mask AT_HWCAPS on arm64 to those instructions VEX implements.

This patch makes sure that the process running under valgrind only sees 
the AES, PMULL, SHA1, SHA2, CRC32, FP, and ASIMD features in auxv AT_HWCAPS. 

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

-----

# git describe --contains fbbb696c5d1e93d4ac6cb548c68bb3f443ceef42 
VALGRIND_3_14_0~96 

----- 
# rmadison valgrind 
.......
=> valgrind | 1:3.13.0-2ubuntu2.1 | bionic-updates | source, amd64, arm64, armhf, i386, ppc64el, s390x 
valgrind | 1:3.14.0-2ubuntu6 | disco | source, amd64, arm64, armhf, i386, ppc64el, s390x 
valgrind | 1:3.15.0-1ubuntu3 | eoan | source, amd64, arm64, armhf, i386, ppc64el, s390x 
valgrind | 1:3.15.0-1ubuntu3.1 | eoan-updates | source, amd64, arm64, armhf, i386, ppc64el, s390x 
valgrind | 1:3.15.0-1ubuntu5 | focal | source, amd64, arm64, armhf, i386, ppc64el, s390x

** Also affects: valgrind (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: valgrind (Ubuntu)
       Status: Confirmed => Fix Released

** Changed in: valgrind (Ubuntu Bionic)
       Status: New => Confirmed

** Changed in: valgrind (Ubuntu Bionic)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: valgrind (Ubuntu Bionic)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to valgrind in Ubuntu.
https://bugs.launchpad.net/bugs/1826811

Title:
  Valgrind unhandled instruction 0xD5380000 on Aarch64

Status in valgrind package in Ubuntu:
  Fix Released
Status in valgrind source package in Bionic:
  Confirmed
Status in valgrind package in Fedora:
  Fix Released

Bug description:
  I'm performing Valgrind testing on an ElPotato running Ubuntu Bionic
  Aarch64 image. My program is dying like in
  https://bugs.kde.org/show_bug.cgi?id=381556 :

  
  ```
  $ valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v
  ==12969== Memcheck, a memory error detector
  ==12969== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  ==12969== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  ==12969== Command: ./cryptest.exe v
  ==12969==
  ARM64 front end: branch_etc
  disInstr(arm64): unhandled instruction 0xD5380000
  disInstr(arm64): 1101'0101 0011'1000 0000'0000 0000'0000
  ==12969== valgrind: Unrecognised instruction at address 0x4014c90.
  ==12969==    at 0x4014C90: init_cpu_features (cpu-features.c:72)
  ==12969==    by 0x4014C90: dl_platform_init (dl-machine.h:208)
  ==12969==    by 0x4014C90: _dl_sysdep_start (dl-sysdep.c:231)
  ==12969==    by 0x40018C3: _dl_start_final (rtld.c:414)
  ==12969==    by 0x4001B47: _dl_start (rtld.c:523)
  ==12969==    by 0x40011C7: ??? (in /lib/aarch64-linux-gnu/ld-2.27.so)
  ...
  ```

  Here's a similar Red Hat issue report:
  https://bugzilla.redhat.com/show_bug.cgi?id=1467952 .

  Please pickup the patch in the 381556 bug report.

  -----

  $ lsb_release -rd
  Description:    Ubuntu 18.04.2 LTS
  Release:        18.04

  $ apt-cache policy valgrind
  valgrind:
    Installed: 1:3.13.0-2ubuntu2.1
    Candidate: 1:3.13.0-2ubuntu2.1
    Version table:
   *** 1:3.13.0-2ubuntu2.1 500
          500 http://ports.ubuntu.com bionic-updates/main arm64 Packages
          100 /var/lib/dpkg/status
       1:3.13.0-2ubuntu2 500
          500 http://ports.ubuntu.com bionic/main arm64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/1826811/+subscriptions



More information about the foundations-bugs mailing list