hi,
I followed the wiki instruction on the for the valgrind and the uml. In the
end i got the same assert error.
I used the 2.6.31 kernel and i had to apply manually some patches.
Also for the latest valgrind i applyed some patches manually.
the result is the same as before read elf asser error.
Have a look at the logs:
########################## begin
edem...@test-linux:~/kernel/uml_build$ export
VALGRIND_LAUNCHER=valgrind/coregrind/valgrind
edem...@test-linux:~/kernel/uml_build$
edem...@test-linux:~/kernel/uml_build$
./valgrind/valgrind-3.5.0/.in_place/memcheck-x86-linux
./uml_with_valgrind/linux-2.6.31/linux
==13100== Memcheck, a memory error
detector
==13100== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et
al.
==13100== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright
info
==13100== Command:
./uml_with_valgrind/linux-2.6.31/linux
==13100==
valgrind: m_debuginfo/readelf.c:1317 (vgModuleLocal_read_elf_debug_info):
Assertion 'rw_svma_limit != 0' failed.
==13100== at 0x38027410: ??? (in
/home/edemaan/kernel/uml_build/valgrind/valgrind-3.5.0/memcheck/memcheck-x86-linux)
sched status:
running_tid=0
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: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.
edem...@test-linux:~/kernel/uml_build$
########################## end
I guess i am missing some config in the kernel build. Could that be?
Hope you guys can give a hint :)
thanks
André
On Fri, Feb 19, 2010 at 2:44 PM, Dan Kegel <d...@kegel.com> wrote:
> On Fri, Feb 19, 2010 at 12:55 AM, Matos <acarvalhoma...@gmail.com> wrote:
> > 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.
>
> Did you see
> http://uml.harlowhill.com/uml/Wiki.jsp?page=ValgrindingUML
> ? That might help. You need to rebuild valgrind and uml with
> a set of patches.
> - Dan
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users