|
From: Brilliantov K. V. <bri...@by...> - 2012-01-11 10:02:24
|
Hello!
I compile valgrind-3.7.0 for ARM.
Modified check gcc_version:
gcc_version=`${CC} --version \
| head -n 1 \
| $SED 's/i686-apple-darwin10//' \
| $SED 's/i686-apple-darwin11//' \
| $SED 's/^.*).\([0-9.]*\).*$/\1/'`# \
#| $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'
~ # cat /proc/cpuinfo
Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 148.27
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 8192
D assoc : 4
D line length : 32
D sets : 64
Hardware : DaVinci DM365 IPNC
Revision : 3650000
Serial : 0000000000000000
But when I run valgrind I get error - Illegal instruction (core dumped)
~ # ./strace ./valgrind -h
execve("./valgrind", ["./valgrind", "-h"], [/* 7 vars */]) = 0
brk(0) = 0x15000
uname({sys="Linux", node="arm", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/tls/v5l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/lib/tls/v5l/fast-mult/half", 0xbe8702f8) = -1 ENOENT (No such
file or directory)
open("/lib/tls/v5l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/tls/v5l/fast-mult", 0xbe8702f8) = -1 ENOENT (No such file
or directory)
open("/lib/tls/v5l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/v5l/half", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/tls/v5l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/tls/v5l", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/tls/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/tls/fast-mult/half", 0xbe8702f8) = -1 ENOENT (No such file
or directory)
open("/lib/tls/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/fast-mult", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/tls/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/tls/half", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/tls", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/v5l/fast-mult/half", 0xbe8702f8) = -1 ENOENT (No such file
or directory)
open("/lib/v5l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/v5l/fast-mult", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/v5l/half", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/v5l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/v5l", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/fast-mult/half", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/fast-mult", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/half", 0xbe8702f8) = -1 ENOENT (No such file or
directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0H\"\0\0004\0\0\0\274"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=49476, ...}) = 0
lseek(3, 42480, SEEK_SET) = 42480
read(3, "\24\0\0\0T\0\0\0\25\0\0\0MontaVista Software\0\0"..., 116) = 116
mmap2(NULL, 75872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0x40026000
mprotect(0x40031000, 28672, PROT_NONE) = 0
mmap2(0x40038000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x40038000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\260M\1\0004\0\0\0\324"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1472179, ...}) = 0
lseek(3, 436, SEEK_SET) = 436
read(3, "\24\0\0\0T\0\0\0\25\0\0\0MontaVista Software\0\0"..., 116) = 116
mmap2(NULL, 1196504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40039000
mprotect(0x40150000, 32768, PROT_NONE) = 0
mmap2(0x40158000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117) = 0x40158000
mmap2(0x4015b000, 8664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015b000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
set_tls(0x4001e440, 0x4001f000, 0x4001eb98, 0x4001eb18, 0x40025050) = 0
mprotect(0x40158000, 4096, PROT_READ) = 0
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL (core dumped) +++
~ # ./gdb ./valgrind core
GNU gdb 6.3 (MontaVista 6.3-20.0.66.0600975 2006-07-05)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "armv5tl-montavista-linuxeabi"...Using host
libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./valgrind -h'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.3...done.
Loaded symbols for /lib/ld-linux.so.3
#0 0x000090f8 in main (argc=2, argv=0xbe870ec4, envp=0xbe870ed0)
at launcher-linux.c:311
311 launcher-linux.c: No such file or directory.
in launcher-linux.c
(gdb) bt full
#0 0x000090f8 in main (argc=2, argv=0xbe870ec4, envp=0xbe870ed0)
at launcher-linux.c:311
__s2_len = Variable "__s2_len" is not available.
How can I solve this problem?
Thank you and excuse me for my bad english.
--
Best regards,
Brilliantov Kirill Vladimirovich
|