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

            Bug ID: 457983
           Summary: valgrind-memcheck run failed at armv7 platform,Illegal
                    opcode at address xxx
           Product: valgrind
           Version: 3.19.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: nevergiveup2...@yeah.net
  Target Milestone: ---

1、valgrind run failed detail msg:
/var/tmp # ./valgrind/bin/valgrind -v ls
==5151== Memcheck, a memory error detector
==5151== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==5151== Using Valgrind-3.19.0-8d3c8034b8-20220411 and LibVEX; rerun with -h
for copyright info
==5151== Command: ls
==5151==
--5151-- Valgrind options:
--5151--    -v
--5151-- Contents of /proc/version:
--5151--   Linux version 5.4.184 (localhost) (gcc version 8.3.0 (GCC)) #1 SMP
Wed Aug 17 21:23:42 CST 2022
--5151--
--5151-- Arch and hwcaps: ARM, LittleEndian, ARMv7
--5151-- Page sizes: currently 4096, max supported 4096
--5151-- Valgrind library directory: /tmp/valgrind/libexec/valgrind
--5151-- Reading syms from /usr/bin/busybox
--5151--    object doesn't have a symbol table
--5151--   Reading EXIDX entries: 1 available
==5151==   Warning: whilst reading EXIDX: Implausible EXIDX last entry size
355303; using 1 instead.
--5151--   Reading EXIDX entries: 0 attempted, 0 successful
--5151-- Reading syms from /usr/lib/arm-linux-gnueabi/ld-2.28.so
--5151--   Considering
/usr/lib/arm-linux-gnueabi/302045b1c3d6fa4f1e505860a95cf241ae2ff1.debug ..
--5151--   .. CRC is valid
--5151-- Reading syms from
/var/tmp/valgrind/libexec/valgrind/memcheck-arm-linux
--5151--    object doesn't have a dynamic symbol table
--5151-- Scheduler: using generic scheduler lock implementation.
--5151-- Reading suppressions file: /tmp/valgrind/libexec/valgrind/default.supp
==5151== embedded gdbserver: reading from
/tmp/vgdb-pipe-from-vgdb-to-5151-by-sysadmin-on-???
==5151== embedded gdbserver: writing to  
/tmp/vgdb-pipe-to-vgdb-from-5151-by-sysadmin-on-???
==5151== embedded gdbserver: shared mem  
/tmp/vgdb-pipe-shared-mem-vgdb-5151-by-sysadmin-on-???
==5151==
==5151== TO CONTROL THIS PROCESS USING vgdb (which you probably
==5151== don't want to do, unless you know exactly what you're doing,
==5151== or are doing some strange experiment):
==5151==   /tmp/valgrind/libexec/valgrind/../../bin/vgdb --pid=5151
...command...
==5151==
==5151== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==5151==   /path/to/gdb ls
==5151== and then give GDB the following command
==5151==   target remote | /tmp/valgrind/libexec/valgrind/../../bin/vgdb
--pid=5151
==5151== --pid is optional if only one valgrind process is running
==5151==
==5151==
==5151== Process terminating with default action of signal 4 (SIGILL)
==5151==  Illegal opcode at address 0x5809FD04
==5151==    at 0x4000A20: ??? (in /usr/lib/arm-linux-gnueabi/ld-2.28.so)
==5151==
==5151== HEAP SUMMARY:
==5151==     in use at exit: 0 bytes in 0 blocks
==5151==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==5151==
==5151== All heap blocks were freed -- no leaks are possible
==5151==
==5151== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Illegal instruction
/var/tmp #

2、Platform information:
~ # cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 2400.00
Features        : half thumb fastmult edsp tls idiva idivt lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

processor       : 1
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 2400.00
Features        : half thumb fastmult edsp tls idiva idivt lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : Generic DT based system
Revision        : 0000
Serial          : 0000000000000000

3、valgrind compile command:
./configure --host=arm7-linux CC=arm-soft-linux-gnueabi-gcc
CPP=arm-soft-linux-gnueabi-cpp CXX=arm-soft-linux-gnueabi-g++
--prefix=/tmp/valgrind-3.19.0  
make
make install

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

Reply via email to