Bug 487410

Summary: disInstr(arm64): unhandled instruction 0x88E1FC02
Product: [Developer tools] valgrind Reporter: KANTHI <kanthil>
Component: memcheckAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED WORKSFORME    
Severity: crash CC: pjfloyd, tom
Priority: NOR    
Version First Reported In: 3.14.0   
Target Milestone: ---   
Platform: Other   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description KANTHI 2024-05-23 05:38:32 UTC
I am building the application on QNX and running those applications on R-CAR s4 board. Valgrind is integrated with my image. When I run the applications on the target platform, I am facing the below issue. 

==417838== Memcheck, a memory error detector
==417838== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==417838== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==417838== Command: ./bin/fusion
==417838== 
ARM64 front end: load_store
disInstr(arm64): unhandled instruction 0x88E1FC02
disInstr(arm64): 1000'1000 1110'0001 1111'1100 0000'0010
==417838== valgrind: Unrecognised instruction at address 0x17e88.
==417838==    at 0x17E88: ??? (in /proc/boot/ldqnx-64.so.2)
==417838== Your program just tried to execute an instruction that Valgrind
==417838== did not recognise.  There are two possible reasons for this.
==417838== 1. Your program has a bug and erroneously jumped to a non-code
==417838==    location.  If you are running Memcheck and you just saw a
==417838==    warning about a bad jump, it's probably your program's fault.
==417838== 2. The instruction is legitimate but Valgrind doesn't handle it,
==417838==    i.e. it's Valgrind's fault.  If you think this is the case or
==417838==    you are not sure, please let us know and we'll try to fix it.
==417838== Either way, Valgrind will now raise a SIGILL signal which will
==417838== probably kill your program.
==417838== 
==417838== Process terminating with default action of signal 4 (SIGILL): dumping core
==417838==  Illegal opcode at address 0x17E88
==417838==    at 0x17E88: ??? (in /proc/boot/ldqnx-64.so.2)
==417838== 
==417838== HEAP SUMMARY:
==417838==     in use at exit: 0 bytes in 0 blocks
==417838==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==417838== 
==417838== All heap blocks were freed -- no leaks are possible
==417838== 
==417838== For counts of detected and suppressed errors, rerun with: -v
==417838== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Illegal instruction 

I am facing the same  challenge with all the three commands mentioned below, 
        1. valgrind --tool=memcheck --leak-check=full ./app
	2. valgrind --tool=memcheck --show-leak-kinds=definite,indirect,possible --leak-check=full ./app
	3. valgrind --log-file=cpu_burner.log --time-stamp=yes -v -v ./app

Looking for a solution on This. 
Thank you !
Comment 1 Paul Floyd 2024-05-23 07:55:30 UTC
Please use a version of Valgrind that is more recent. 3.14 is old.
I believe that the CAS instruction that you have a problem with was added in Valgrind 3.16.1.

Can you please confirm that it works with a recent more Valgrind?
Comment 2 Bug Janitor Service 2024-06-07 03:46:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-06-22 03:47:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!