I wanto to run uml with valgrind.
i folowed this instructions
I built kernel in usermode and i get an executable.
Now i wanted to use valgrind to do memory check to this executable.
But as soon run it i get an error. I googled it but i do not get much.
The reason i post it here and not on the valgrind mailing list is because i
think this is related with the config of the uml build.
I am getting error with the "read elf" function. Is there some setting to
the uml build that cause this error?
Can you help me? Thanks.
edemaan@...$ valgrind ./linux
==4297== Memcheck, a memory error detector
==4297== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==4297== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for
==4297== Command: ./linux
(vgModuleLocal_read_elf_debug_info): Assertion 'rw_svma_limit != 0'
==4297== at 0x38027410: ??? (in /usr/lib/valgrind/memcheck-x86-linux)
Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.
If that doesn't help, please report this bug to: http://www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.
i hope i added enough information.