[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1245703] [NEW] LD_PREFIX option reads directories
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [Bug 1245703] [NEW] LD_PREFIX option reads directories recursively in an endless loop |
Date: |
Mon, 28 Oct 2013 23:24:03 +0000 |
On 28 October 2013 23:15, Sebastian Macke <address@hidden> wrote:
> If I run qemu user emulation with -L /path/to/my/sysroot/ in which also
> the proc and dev filesystem is mounted QEMU eats my memory until it gets
> killed by the kernel.
>
> According to the strace output it follows the symbolic links in the proc
> filesystem running forever in a recursive loop.
>
> The easiest solution would be to add in the function "add_dir_maybe" in
> the file util/path.c an additional check for symbolic links that it
> don't follow them.
Yeah, this -L code is just busted. It's really only intended to work
with extremely simple sysroot directories which don't have weird
stuff like proc mounts or symlinks and aren't very big.
If the thing you're looking at isn't like that then you might be better
off using the "static qemu and chroot into the directory" approach
instead.
-- PMM
[Prev in Thread] |
Current Thread |
[Next in Thread] |