|
From: Matos <aca...@gm...> - 2010-02-19 08:55:50
|
Hi, 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. Can you help me? Thanks. #my setup kubuntu 9.10 #log begin edemaan@test-linux:~/kernel/uml_build/linux-2.6.31$ 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 copyright info ==4297== Command: ./linux ==4297== valgrind: m_debuginfo/readelf.c:1317 (vgModuleLocal_read_elf_debug_info): Assertion 'rw_svma_limit != 0' failed. ==4297== at 0x38027410: ??? (in /usr/lib/valgrind/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. #log end i hope i added enough information. Best regards, André. |
|
From: Dan K. <da...@ke...> - 2010-02-19 14:12:03
|
On Fri, Feb 19, 2010 at 12:55 AM, Matos <aca...@gm...> 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 |
|
From: Matos <aca...@gm...> - 2010-02-22 14:45:22
|
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 edemaan@test-linux:~/kernel/uml_build$ export VALGRIND_LAUNCHER=valgrind/coregrind/valgrind edemaan@test-linux:~/kernel/uml_build$ edemaan@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. edemaan@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 <da...@ke...> wrote: > On Fri, Feb 19, 2010 at 12:55 AM, Matos <aca...@gm...> 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 > |