From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri8ib-0007NC-1P for qemu-devel@nongnu.org; Tue, 03 Jan 2012 13:04:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ri8ia-0007Hu-0c for qemu-devel@nongnu.org; Tue, 03 Jan 2012 13:04:13 -0500 Received: from mail-yw0-f45.google.com ([209.85.213.45]:41461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri8iZ-0007Hj-UT for qemu-devel@nongnu.org; Tue, 03 Jan 2012 13:04:11 -0500 Received: by yhgg71 with SMTP id g71so11273220yhg.4 for ; Tue, 03 Jan 2012 10:04:11 -0800 (PST) MIME-Version: 1.0 Sender: lxnay@sabayonlinux.org In-Reply-To: <9C571929-67D3-45BD-A498-172280E90E08@suse.de> References: <1325605408-16401-1-git-send-email-lxnay@sabayon.org> <9C571929-67D3-45BD-A498-172280E90E08@suse.de> Date: Tue, 3 Jan 2012 19:04:10 +0100 Message-ID: From: Fabio Erculiani Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] linux-user: improve fake /proc/self/stat making `ps` not segfault. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: riku.voipio@iki.fi, qemu-devel@nongnu.org On Tue, Jan 3, 2012 at 6:41 PM, Alexander Graf 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 ;-) > > > Alex > -- Fabio Erculiani