valgrind on armv7 doesn't work
Problem first found when package mustach !59786 (merged) , armv7 get check failed.
Setup qemu-arm following wiki and run valgrind uname
also get errors:
Click to expand logs
lab:~/test-c# valgrind uname
==19523== Memcheck, a memory error detector
==19523== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==19523== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==19523== Command: uname
==19523==
==19523== error calling PR_SET_PTRACER, vgdb might block
disInstr(thumb): unhandled instruction: 0xDEFF 0x6803
disInstr(thumb): unhandled instruction: 0xDEFF 0xF8D6
disInstr(thumb): unhandled instruction: 0xDEFF 0x2502
disInstr(thumb): unhandled instruction: 0xDEFF 0x4584
disInstr(thumb): unhandled instruction: 0xDEFF 0x682B
disInstr(thumb): unhandled instruction: 0xDEFF 0x4A83
disInstr(thumb): unhandled instruction: 0xDEFF 0xF850
==19523== Invalid write of size 4
==19523== at 0x48956F4: strcpy (in /usr/libexec/valgrind/vgpreload_memcheck-arm-linux.so)
==19523== Address 0x3f8007ac is on thread 1's stack
==19523== 56 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x4884466: ??? (in /usr/libexec/valgrind/vgpreload_core-arm-linux.so)
==19523== Address 0x3f800c80 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x488B4C2: ??? (in /usr/libexec/valgrind/vgpreload_memcheck-arm-linux.so)
==19523== Address 0x3f800c80 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115AFE: ??? (in /bin/busybox)
==19523== Address 0x3f800c80 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
disInstr(thumb): unhandled instruction: 0xDEFF 0xF850
disInstr(thumb): unhandled instruction: 0xDEFF 0x1B1F
disInstr(thumb): unhandled instruction: 0xDEFF 0x5D73
disInstr(thumb): unhandled instruction: 0xDEFF 0x2602
==19523== Invalid write of size 4
==19523== at 0x1160E2: ??? (in /bin/busybox)
==19523== Address 0x3f800d40 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115CA2: ??? (in /bin/busybox)
==19523== Address 0x3f800d38 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x18D644: ??? (in /bin/busybox)
==19523== Address 0x3f800d38 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115E0C: ??? (in /bin/busybox)
==19523== Address 0x3f800d18 is on thread 1's stack
==19523== 24 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115B3C: ??? (in /bin/busybox)
==19523== Address 0x3f800d00 is on thread 1's stack
==19523== 24 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115D5E: ??? (in /bin/busybox)
==19523== Address 0x3f800d20 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115D12: ??? (in /bin/busybox)
==19523== Address 0x3f800d18 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x173A56: ??? (in /bin/busybox)
==19523== Address 0x3f800ae4 is on thread 1's stack
==19523== 560 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x182E78: ??? (in /bin/busybox)
==19523== Address 0x3f800ac0 is on thread 1's stack
==19523== 24 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x182984: ??? (in /bin/busybox)
==19523== Address 0x3f80063c is on thread 1's stack
==19523== 1144 bytes below stack pointer
==19523==
Linux
==19523== Invalid write of size 4
==19523== at 0x1931FE: ??? (in /bin/busybox)
==19523== Address 0x3f800ae8 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x1822C6: ??? (in /bin/busybox)
==19523== Address 0x3f800ae0 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x1165B2: ??? (in /bin/busybox)
==19523== Address 0x3f800ad8 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x115A9A: ??? (in /bin/busybox)
==19523== Address 0x3f800a10 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x488B45E: ??? (in /usr/libexec/valgrind/vgpreload_memcheck-arm-linux.so)
==19523== Address 0x3f800a10 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x4884402: ??? (in /usr/libexec/valgrind/vgpreload_core-arm-linux.so)
==19523== Address 0x3f800a10 is on thread 1's stack
==19523== 8 bytes below stack pointer
==19523==
==19523== Invalid write of size 4
==19523== at 0x48844A8: _vgnU_freeres (in /usr/libexec/valgrind/vgpreload_core-arm-linux.so)
==19523== Address 0x3f800a9c is on thread 1's stack
==19523== 48 bytes below stack pointer
==19523==
==19523==
==19523== HEAP SUMMARY:
==19523== in use at exit: 0 bytes in 0 blocks
==19523== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==19523==
==19523== All heap blocks were freed -- no leaks are possible
==19523==
==19523== For lists of detected and suppressed errors, rerun with: -s
==19523== ERROR SUMMARY: 25 errors from 21 contexts (suppressed: 0 from 0)