|
From: JoSH L. <kr...@gm...> - 2010-06-05 19:33:06
|
Hello. A few weeks ago, I asked a question about "illegal instruction" encountered while running Valgrind on ARM, and got no response. Backing up a little, I wonder if I'm running Valgrind correctly. What is the preferred way to run Valgrind on ARM? There's a number of patches floating around, maybe I picked up the wrong one, or got them out of order. If this is a FAQ, sorry, please point me in the right direction. Thanks! Josh |
|
From: Alexander P. <gl...@go...> - 2010-06-06 13:43:59
|
Could you please open a bug with the error message you get running your program? This is necessary to figure out which instruction is not recognized by Valgrind. On Sat, Jun 5, 2010 at 11:33 PM, JoSH Lehan <kr...@gm...> wrote: > Hello. A few weeks ago, I asked a question about "illegal > instruction" encountered while running Valgrind on ARM, and got no > response. > > Backing up a little, I wonder if I'm running Valgrind correctly. What > is the preferred way to run Valgrind on ARM? There's a number of > patches floating around, maybe I picked up the wrong one, or got them > out of order. If this is a FAQ, sorry, please point me in the right > direction. > > Thanks! > > Josh > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Alexander Potapenko Software Engineer Google Moscow |
|
From: JoSH L. <kr...@gm...> - 2010-06-10 17:22:49
|
Thanks, I will do that. Interestingly, the instruction is the very *first* instruction encountered by the executable as it begins to run, as the address of the offending instruction is exactly the same address that execution begins at. This leads me to suspect a setup or configuration problem, with my particular platform. Is there a FAQ for bringing Valgrind up on ARM? I looked around, and found multiple conflicting sources. I'm not currently sure of the state of ARM support. Any tips as to how to set up Valgrind on ARM would be appreciated. Josh Lehan On Sun, Jun 6, 2010 at 6:43 AM, Alexander Potapenko <gl...@go...> wrote: > Could you please open a bug with the error message you get running your program? > This is necessary to figure out which instruction is not recognized by Valgrind. > > > On Sat, Jun 5, 2010 at 11:33 PM, JoSH Lehan <kr...@gm...> wrote: >> Hello. A few weeks ago, I asked a question about "illegal >> instruction" encountered while running Valgrind on ARM, and got no >> response. >> >> Backing up a little, I wonder if I'm running Valgrind correctly. What >> is the preferred way to run Valgrind on ARM? There's a number of >> patches floating around, maybe I picked up the wrong one, or got them >> out of order. If this is a FAQ, sorry, please point me in the right >> direction. >> >> Thanks! >> >> Josh >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Valgrind-users mailing list >> Val...@li... >> https://lists.sourceforge.net/lists/listinfo/valgrind-users >> > > > > -- > Alexander Potapenko > Software Engineer > Google Moscow > |
|
From: Alexander P. <gl...@go...> - 2010-06-11 08:18:57
|
On Thu, Jun 10, 2010 at 9:22 PM, JoSH Lehan <kr...@gm...> wrote: > Thanks, I will do that. Interestingly, the instruction is the very > *first* instruction encountered by the executable as it begins to run, > as the address of the offending instruction is exactly the same > address that execution begins at. This leads me to suspect a setup or > configuration problem, with my particular platform. That could be an instruction inside ld.so or the kernel itself. For example, some time ago Valgrind didn't recognize userspace memory barriers used by the kernel built with CONFIG_SMP enabled. This was almost the first instruction and appeared in every program. That's why fixing a particular bug may help with all programs running on your system. > > Is there a FAQ for bringing Valgrind up on ARM? I looked around, and > found multiple conflicting sources. I'm not currently sure of the > state of ARM support. Any tips as to how to set up Valgrind on ARM > would be appreciated. > I don't think so, but I suppose it's rather straight, if you're building V natively on the ARM board: you just check out the code and run: ./autogen.sh ./configure --prefix=<path to install Valgrind> make && make install You can also try the self-contained Memcheck binary located at data-race-test.googlecode.com: wget http://data-race-test.googlecode.com/svn/trunk/tsan_binary/Linux-ARM/memcheck chmod +x memcheck ./memcheck your_test Please note that this is an unofficial Memcheck build and may contain bugs already fixed in the trunk. Alex |