Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGbc5-0005vr-5C for mharc-grub-devel@gnu.org; Tue, 16 Jun 2009 12:34:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGbc2-0005vR-Vx for grub-devel@gnu.org; Tue, 16 Jun 2009 12:34:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGbby-0005uY-A5 for grub-devel@gnu.org; Tue, 16 Jun 2009 12:34:18 -0400 Received: from [199.232.76.173] (port=56424 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGbbx-0005uP-Tf for grub-devel@gnu.org; Tue, 16 Jun 2009 12:34:14 -0400 Received: from mail-fx0-f216.google.com ([209.85.220.216]:52485) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGbbx-0002vP-9H for grub-devel@gnu.org; Tue, 16 Jun 2009 12:34:13 -0400 Received: by fxm12 with SMTP id 12so2833651fxm.42 for ; Tue, 16 Jun 2009 09:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/hyfjGqgALkFrHjOMGFlACWAhXgmgFyofXU2uoGjKes=; b=o4tuNYpDMvwNdrRMpePrusgJnll1q5bGJNK5ysR+pa39VYxYo1mZfR3mHrbG0vDBD7 /YgI7pNDEI8la8aVByuUgSXcjb2kyvk0lnKpfNsvuPtUs/bXwNkP6/8jfsUa/FWrqplS J9R7Fiec7xNTBMa9KHBELgEcDk9PH29rMEVWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=g2bAHgglR7A+WrkLS4BPRuNkt5g5m2Ya2YjrZdaAYGz+EkKSBU123Pgeur/1ABf0kF 3LX8ivFpYDs3Bv5ow+hbZGBW8CyYLrPGKlZnl9W0cHOGnfTrn1LVRG5vC107MKvdS8Oz r1B6k1v4c/X7M7FM9y7mSAdvxU9m6CPlw93hw= MIME-Version: 1.0 Received: by 10.204.112.1 with SMTP id u1mr8354525bkp.208.1245170050635; Tue, 16 Jun 2009 09:34:10 -0700 (PDT) In-Reply-To: <4A37A79C.4020106@ed.ac.uk> References: <4A2CF763.50105@ed.ac.uk> <4A2D14A7.4040405@ed.ac.uk> <48f46e890906082047j51afd316gf2bd1566c45875f8@mail.gmail.com> <4A2E751F.5090905@ed.ac.uk> <4A37A79C.4020106@ed.ac.uk> Date: Tue, 16 Jun 2009 18:34:10 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=0016e6d645158d9a0d046c79be5a X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: echo and hello bug 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, 16 Jun 2009 16:34:19 -0000 --0016e6d645158d9a0d046c79be5a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Jun 16, 2009 at 4:09 PM, James Jarvis wrote: > Vladimir 'phcoder' Serbinenko wrote: > >> tried this module list in grub-mkimage on 2282 but it hung! >>> >>> >> I think you have a problem with you building system. If you want ping >> me (phcoder) on IRC and I'll compile for you >> >> > Shamed me into looking deeper! I discover that by listing hello and echo > first in the grub-mkimage command they both work as expected. Not sure why > this occurs - is there a file detailing module dependencies one can look at? > You have probably hit a memory access bug in a secondary module. Post the list of modules you integrate and try removing some of these modules > > Anyway, whilst looking through the code I did spot a semantic error, fix > shown in this patch: > Index: echo.c > =================================================================== > --- echo.c (revision 2331) > +++ echo.c (working copy) > @@ -113,7 +113,7 @@ > GRUB_MOD_INIT(echo) > { > cmd = grub_register_extcmd ("echo", grub_cmd_echo, GRUB_COMMAND_FLAG_BOTH, > - "echo [-e|-n] FILE", "Display a line of > text.", > + "echo [-e|-n] STRING", "Display a line of > text.", > options); > } > > James > > -- > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko --0016e6d645158d9a0d046c79be5a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Jun 16, 2009 at 4:09 PM, James J= arvis <James.= Jarvis@ed.ac.uk> wrote:
Vladimir 'phcoder' Serbinenko wrote:
tried this module list in grub-mkimage on 2282 but it hung!
=A0 =A0
I think you have a problem with you building system. If you want ping
me (phcoder) on IRC and I'll compile for you
=A0
Shamed me into looking deeper! I discover that by listing hello and echo fi= rst in the grub-mkimage command they both work as expected. Not sure why th= is occurs - is there a file detailing module dependencies one can look at?<= br>
You have probably hit a memory access bug in a secondary = module. Post the list of modules you integrate and try removing some of the= se modules

Anyway, whilst looking through the code I did spot a semantic error, fix sh= own in this patch:
Index: echo.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- echo.c =A0 =A0 =A0(revision 2331)
+++ echo.c =A0 =A0 =A0(working copy)
@@ -113,7 +113,7 @@
GRUB_MOD_INIT(echo)
{
=A0cmd =3D grub_register_extcmd ("echo", grub_cmd_echo, GRUB_COM= MAND_FLAG_BOTH,
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "echo [-e|-n= ] FILE", "Display a line of text.",
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "echo [-e|-n= ] STRING", "Display a line of text.",
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 options);

}

James

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>



--
Regards
= Vladimir 'phcoder' Serbinenko
--0016e6d645158d9a0d046c79be5a--