From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EjeaU-0002Ul-51 for mharc-grub-devel@gnu.org; Tue, 06 Dec 2005 10:18:38 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjeaQ-0002RO-Ds for grub-devel@gnu.org; Tue, 06 Dec 2005 10:18:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjeaN-0002O4-NR for grub-devel@gnu.org; Tue, 06 Dec 2005 10:18:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjeaN-0002Nw-Ke for grub-devel@gnu.org; Tue, 06 Dec 2005 10:18:31 -0500 Received: from [157.24.2.30] (helo=smtp1.cc.lut.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ejeb4-0000BP-8V for grub-devel@gnu.org; Tue, 06 Dec 2005 10:19:14 -0500 Received: from localhost (smtp1 [127.0.0.1]) by smtp1.cc.lut.fi (Postfix) with ESMTP id 4C49D703EA for ; Tue, 6 Dec 2005 17:18:16 +0200 (EET) Received: from smtp1.cc.lut.fi ([127.0.0.1]) by localhost (smtp1.cc.lut.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07779-01 for ; Tue, 6 Dec 2005 17:18:16 +0200 (EET) Received: from [192.168.1.100] (lk4-a-4-1.lnet.lut.fi [157.24.102.107]) by smtp1.cc.lut.fi (Postfix) with ESMTP id F3A7C70008 for ; Tue, 6 Dec 2005 17:18:15 +0200 (EET) Message-ID: <4395ABD0.4020208@nic.fi> Date: Tue, 06 Dec 2005 17:18:40 +0200 From: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= User-Agent: Thunderbird 1.4.1 (Windows/20051006) MIME-Version: 1.0 To: The development of GRUB 2 References: <435B72E9.6070603@nic.fi> <200511181206.49374.okuji@enbug.org> <43836C33.5090508@nic.fi> <200511252125.29459.okuji@enbug.org> <4387AC45.20208@nic.fi> <438B76AA.2030501@nic.fi> In-Reply-To: <438B76AA.2030501@nic.fi> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by lut.fi Subject: Re: Video subsystem draft X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 15:18:34 -0000 Ok... The problem is with grub_errno. There might be other cases where this problem shows up too. But with font manager this is easy to see. In my testerr3 testing function (in video.c) I added simple: grub_errno = GRUB_ERR_NOT_IMPLEMENTED_YET; grub_printf("error: no error :)\n"); Now it corrupted first 'e' character over there. If I set grub_errno to zero, it outputted correctly. So I started to think what is the real cause for this. I modified my video driver to only set grub_errno when there is an real error situation. And the behavior changed a bit, after setting up grub_errno to non-zero every character got corrupted until the prompt came. Now only reason to corrupt this is that something goes to different code path because grub_errno is set. And this something is most likely the disk/file system subsystem. Now this is also a problem if there is any other disk operation done and an error is being set. Font manager failed because it could not read disk for some reason. Now I am open for ideas how and where to fix this problem.