|
From: Sergey G. <gr...@ya...> - 2010-10-26 06:08:51
|
Hello to all! I have a trouble running valgrind on Nvidia Tegraboard (ARM-based embedded system). Building valgrind goes fine, without any issues. But when I try to execute valgrind on board I get the following: -------------------------------------------------------- #>/inperfa/valgrind/bin/valgrind --help -------------------------------------------------------- In other words I get no information about why it does not execute properly. I tried to debug valgrind with gdb and got the following: -------------------------------------------------------- (gdb) target remote 10.52.82.8:6000 Remote debugging using 10.52.82.8:6000 0x400007c0 in ?? () (gdb) bt #0 0x400007c0 in ?? () Cannot access memory at address 0x0 #1 0x00000000 in ?? () (gdb) c Continuing. Program received signal SIGTRAP, Trace/breakpoint trap. 0x2802c624 in ?? () (gdb) bt #0 0x2802c624 in ?? () Cannot access memory at address 0x0 #1 0x00000000 in ?? () (gdb) #0 0x2802c624 in ?? () #1 0x00000000 in ?? () (gdb) q -------------------------------------------------------- uname output: #>uname -a Linux (none) 2.6.29-arm2 #1 SMP PREEMPT Thu Jun 3 17:32:04 MSD 2010 armv7l unknown Does anyone tried to run valgrind on this board? Or maybe arm-part developers can help to fix troubles? Thank you in advance. kind regards, Sergey Grekhov. -- -- Kind regards, Sergey Grekhov. |
|
From: Sergey G. <gr...@ya...> - 2010-10-26 06:19:09
|
Additional info about processor: #>cat /proc/cpuinfo Processor : ARMv7 Processor rev 0 (v7l) processor : 0 BogoMIPS : 1998.84 Features : swp half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x1 CPU part : 0xc09 CPU revision : 0 Hardware : Tegra generic Revision : 0000 Serial : 0000000000000000 -- -- Kind regards, Sergey Grekhov. |
|
From: Alexander P. <gl...@go...> - 2010-10-26 06:29:37
|
Are you building Valgrind natively or using a cross-compiler? Have you tried the packaged Valgrind build for your OS (if any)? On Tue, Oct 26, 2010 at 10:08 AM, Sergey Grekhov <gr...@ya...> wrote: > Hello to all! > I have a trouble running valgrind on Nvidia Tegraboard (ARM-based > embedded system). > Building valgrind goes fine, without any issues. > But when I try to execute valgrind on board I get the following: > > -------------------------------------------------------- > #>/inperfa/valgrind/bin/valgrind --help > > -------------------------------------------------------- > > In other words I get no information about why it does not execute properly. > I tried to debug valgrind with gdb and got the following: > > > -------------------------------------------------------- > (gdb) target remote 10.52.82.8:6000 > Remote debugging using 10.52.82.8:6000 > 0x400007c0 in ?? () > (gdb) bt > #0 0x400007c0 in ?? () > Cannot access memory at address 0x0 > #1 0x00000000 in ?? () > (gdb) c > Continuing. > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x2802c624 in ?? () > (gdb) bt > #0 0x2802c624 in ?? () > Cannot access memory at address 0x0 > #1 0x00000000 in ?? () > (gdb) > #0 0x2802c624 in ?? () > #1 0x00000000 in ?? () > (gdb) q > -------------------------------------------------------- > > uname output: > > #>uname -a > Linux (none) 2.6.29-arm2 #1 SMP PREEMPT Thu Jun 3 17:32:04 MSD 2010 > armv7l unknown > > > Does anyone tried to run valgrind on this board? Or maybe arm-part > developers can help to fix troubles? > > Thank you in advance. > kind regards, > Sergey Grekhov. > > > -- > -- > Kind regards, > Sergey Grekhov. > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Alexander Potapenko Software Engineer Google Moscow |
|
From: Sergey G. <gr...@ya...> - 2010-10-27 10:19:13
|
The problem was located as a hardware one. After taking another tegraboard the problem solved. The investigation of this hardware trouble will be performed later and its results will be posted here. Thanks to all participants for help and valuable hint/hacks. Kind regards, Sergey Grekhov. >> This means that the binary you're running doesn't support some ARM >> instructions because is too old. >> In particular, 0xffff0fa0 is the __kernel_dmb function, which >> represents a userspace memory barrier. >> To fix that, you can recompile the kernel with the CONFIG_SMP option >> disabled, see https://bugs.kde.org/show_bug.cgi?id=228060 >> However, a better solution is to build a newer Valgrind binary that >> should support most of ARMv7 instructions. >> Have you tried building the binaries directly on Tegra? >> >> Pls note that Julian and other folks from valgrind-users do not see our talk. >> >> On Tue, Oct 26, 2010 at 5:20 PM, Sergey Grekhov<gr...@ya...> wrote: >> -- >> Alexander Potapenko >> Software Engineer >> Google Moscow -- -- Kind regards, Sergey Grekhov. |
|
From: Julian S. <js...@ac...> - 2010-10-26 11:03:45
|
You didn't specify any version numbers of anything. What version of valgrind is this? Where did you get it from? What is the output from valgrind -v -v -d -d --trace-flags=10000000 date ? On Tuesday, October 26, 2010, Sergey Grekhov wrote: > Hello to all! > I have a trouble running valgrind on Nvidia Tegraboard (ARM-based > embedded system). > Building valgrind goes fine, without any issues. > But when I try to execute valgrind on board I get the following: > > -------------------------------------------------------- > #>/inperfa/valgrind/bin/valgrind --help > > -------------------------------------------------------- > > In other words I get no information about why it does not execute properly. > I tried to debug valgrind with gdb and got the following: > > > -------------------------------------------------------- > (gdb) target remote 10.52.82.8:6000 > Remote debugging using 10.52.82.8:6000 > 0x400007c0 in ?? () > (gdb) bt > #0 0x400007c0 in ?? () > Cannot access memory at address 0x0 > #1 0x00000000 in ?? () > (gdb) c > Continuing. > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x2802c624 in ?? () > (gdb) bt > #0 0x2802c624 in ?? () > Cannot access memory at address 0x0 > #1 0x00000000 in ?? () > (gdb) > #0 0x2802c624 in ?? () > #1 0x00000000 in ?? () > (gdb) q > -------------------------------------------------------- > > uname output: > > #>uname -a > Linux (none) 2.6.29-arm2 #1 SMP PREEMPT Thu Jun 3 17:32:04 MSD 2010 > armv7l unknown > > > Does anyone tried to run valgrind on this board? Or maybe arm-part > developers can help to fix troubles? > > Thank you in advance. > kind regards, > Sergey Grekhov. |