From: "D. Bahi" <dbahi@enterasys.com>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: valgrind-users@lists.sourceforge.net
Subject: [uml-devel] Re: UML and valgrind
Date: Mon, 02 Aug 2004 22:47:55 -0400 [thread overview]
Message-ID: <410EFCDB.8080404@enterasys.com> (raw)
In-Reply-To: <C28780ABC637504896EB86B4FB75FFBFA26E5E@MAANDMBX1.ets.enterasys.com>
[-- Attachment #1: Type: text/plain, Size: 2257 bytes --]
cc'ing valgrind users to solicit support!
as of valgrind 2.1.2 is happy as can be within a User Mode
Linux hosted session. This was tested with 2.4.24-1um and
2.4.26-2um + incrementals on a RedHat 9 (non-nptl, skas)
host - and using RH9 UML filesystems.
still trouble with launching a UML itself under valgrind
(even with MODE_SKAS, ! MODE_TT, and KERNEL_STACK_ORDER=3)
for starters we have:
[u2](dbahi)443$ ~/valgrind-2.1.2/bin/valgrind --tool=memcheck
/local/dbahi/kernels/linux-2.4.26_uml-patch-2.4.26-2um/linux umid=kickme
ubd0=/local/cow/kickmoo,/local/dbahi/root_fs.rh-9-full
ubd1=/local/cow/kickmoo2,/local/dbahi/swap_fs.256
hostfs=/local/hostfs/kickdir/
Executable is mapped outside of range (nil)-0x52c00000
valgrind:
do_exec(/local/dbahi/kernels/linux-2.4.26_uml-patch-2.4.26-2um/linux)
failed: Cannot allocate memory
How does one get around this sudden valgrind exit?
Bahi, David wrote:
> back some time ago it seems like someone had more than a clue as to what
> was requried to get valgrind working under UML... well as of 2.1.1 it
> still ain't working.
>
> http://marc.theaimsgroup.com/?l=user-mode-linux-devel&m=107066894230633&
> w=2
>
> I was wondering if a patch was available for our 'community' to make use
> of this tool... for both running the UML as an application and for
> running
> applications within the UML.
>
> It seems that for running valgrind within the UML there is a signal
> handling
> problem where 'restorer' is NULL and causes a panic in
> setup_signal_stack_si
>
> signal_kernel.c
> handle_signal()
>
> if (ka->sa.sa_flags & SA_RESTORER) restorer =
> ka->sa.sa_restorer;
> else restorer = NULL;
>
> if(ka->sa.sa_flags & SA_SIGINFO)
> err = setup_signal_stack_si(sp, signr, (unsigned long)
> handler,
> restorer, regs, info,
> &save);
>
> thanks for any insight.
>
> db
>
> "The kernel is the only UNIX code that cannot be substituted by a user
> to his own liking. For this reason, the kernel should make as few real
> decisions as possible." -- K. Thompson
--
There are two kinds of people in this world: Those that enter a room and
turn the television set on, and those that enter a room and turn the
television set off. -- Raymond Shaw, The Manchurian Candidate (1962).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
next prev parent reply other threads:[~2004-08-03 2:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-08 4:13 [uml-devel] UML and valgrind Bahi, David
2004-08-03 2:47 ` D. Bahi [this message]
2004-08-03 5:17 ` [uml-devel] " Jeff Dike
2004-08-03 9:31 ` [Valgrind-users] " Nicholas Nethercote
2004-08-03 14:50 ` Jeff Dike
2004-08-03 14:31 ` Nicholas Nethercote
2004-08-03 17:50 ` Jeff Dike
2004-08-03 17:33 ` D. Bahi
2004-08-03 19:31 ` Jeff Dike
2004-08-03 20:12 ` D. Bahi
2004-08-04 7:47 ` Tom Hughes
2004-08-03 22:04 ` Nicholas Nethercote
2004-08-04 7:52 ` Tom Hughes
2004-08-04 15:10 ` Jeff Dike
2004-08-04 15:35 ` Jeff Dike
2004-08-04 14:58 ` Tom Hughes
2004-08-04 18:00 ` Jeff Dike
2004-08-04 17:57 ` Tom Hughes
2004-08-04 21:02 ` Jeff Dike
2004-08-05 9:28 ` Nicholas Nethercote
2004-08-05 13:15 ` D. Bahi
2004-08-05 15:24 ` Jeff Dike
2004-08-03 19:40 ` Jeff Dike
2004-08-04 1:09 ` Nuno Silva
2004-08-04 2:47 ` D. Bahi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=410EFCDB.8080404@enterasys.com \
--to=dbahi@enterasys.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=valgrind-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.