Thanks, that helped, but valgrind still cannot be run. This time it fails with 
the following:

sbox-arm: ~/valgrind] > ./inst/bin/valgrind ../test
=2814== Memcheck, a memory error detector
=2814== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
=2814== Using Valgrind-3.7.0.SVN and LibVEX; rerun with -h for copyright info
=2814== Command: ../test
=2814==

ex: priv/main_main.c:334 (LibVEX_Translate): Assertion 
`are_valid_hwcaps(VexArchARM, vta->archinfo_host.hwcaps)' failed.
ex storage: T total 0 bytes allocated
ex storage: P total 0 bytes allocated

algrind: the 'impossible' happened:
  LibVEX called failure_exit().
=2814==    at 0x3802D498: report_and_quit (m_libcassert.c:193)

ched status:
 running_tid=1

hread 1: status = VgTs_Runnable
=2814==    at 0x40007B0: ??? (in /targets/arm/lib/ld-2.10.1.so)




2010/12/10 Ildar Isaev <i...@inbox.ru>
I'm trying to run Valgrind on ARM through scratchbox framework 
(http://www.scratchbox.org/) with QEMU emulator. Valgrind builds OK, but fails 
to run any program with following synopsis:

[sbox-arm: ~/valgrind-3.6.0] > cat test.c
int main()
{
        return 0;
}

[sbox-arm: ~/valgrind-3.6.0] > ./inst/bin/valgrind ./test
valgrind: mmap(0x8000, 4096) failed in UME with error 13 (Permission denied).

The same thing happens both for 3.6.0 release and code from source repository. 
Has anyone encountered with such a problem?

Hi

I don't have any experience running valgrind under qemu, but I've seen similar 
problems with qemu due to security restrictions in the host. See for example 
http://wiki.debian.org/mmap_min_addr or 
http://lists.scratchbox.org/pipermail/scratchbox-users/2008-April/001218.html. 
Hope that helps

Bruce
-- 
Dr Bruce Merry
bmerry <@> gmail <.> com
http://www.brucemerry.org.za/
http://blog.brucemerry.org.za/


------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to