[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault. |
Date: |
Tue, 3 Jan 2012 19:29:57 +0100 |
On 03.01.2012, at 19:04, Fabio Erculiani wrote:
> On Tue, Jan 3, 2012 at 6:41 PM, Alexander Graf <address@hidden> wrote:
>>
>> On 03.01.2012, at 17:07, Fabio Erculiani wrote:
>>
>>> ts->bprm->argv seems NULL here.
>>> Isn't it supposed to be set?
>>
>> Good question. Maybe we need some other way to fetch argv0 then?
>
> or we could leave just an empty string for now -> "()" on the second
> field of self/state.
> That seems to work with ps as well.
> Considering that the whole file doesn't bring any useful info other
> than the stack base and pid, we might just wait the next round of
> segfaults ;-)
Hrm. For the sake of simplicity I'd just make target_argv in main.c a global
and directly access it. We only ever execute a single process in linux-user at
a given time anyway.
Alex
- [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Alexander Graf, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault.,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Alexander Graf, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Alexander Graf, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Alexander Graf, 2012/01/03
- Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault., Fabio Erculiani, 2012/01/03