NetBSD Problem Report #24214
Received: (qmail 14602 invoked by uid 605); 24 Jan 2004 13:59:20 -0000
Message-Id: <20040124135956.6E7DB120FD@himo.salmi.ch>
Date: Sat, 24 Jan 2004 14:59:56 +0100 (CET)
From: jukka-netbsd@2004.salmi.ch
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jukka-netbsd@2004.salmi.ch
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/grub: patch-al makes grub fail
X-Send-Pr-Version: 3.95
>Number: 24214
>Category: pkg
>Synopsis: sysutils/grub: patch-al makes grub fail
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: mrauch
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 24 14:00:00 +0000 2004
>Closed-Date: Sun Jan 25 09:00:47 +0000 2004
>Last-Modified: Sun Jan 25 09:00:47 +0000 2004
>Originator:
>Release: NetBSD 1.6ZH
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 1.6ZH NetBSD 1.6ZH (GENERIC) #0: Thu Jan 22 03:39:54 UTC 2004 root@himo.salmi.ch:/opt/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Compiling sysutils/grub from current pkgsrc on NetBSD current and NetBSD stable (1.6.2_RC3) results in a grub binary which is not able to "see" my IDE harddisks, and which seems to have problems with output formatting (curses...).
The following is on NetBSD 1.6.2_RC3:
# grub
ý`´·^ý·;grub in realloc(): warning: pointer to wrong page.
GRUB version 0.93 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0,a)
Error 21: Selected disk does not exist
grub> quit
At least the output format problem can be solved by --no-curses:
# grub --no-curses
ý`´·^ý·;
GRUB version 0.93 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0,a)
Error 21: Selected disk does not exist
grub> quit
#
On NetBSD-current essentially the same happens, except the realloc() error message and the ý`´·^ý·; strings are not printed.
If I build grub on NetBSD stable without patches/patch-al, both problems have gone:
# grub
GRUB version 0.93 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0,a)
Filesystem type is ffs, partition type 0xa9
grub> quit
#
The grub binary compiled on stable runs fine on current (I only had to cd /usr/lib && ln -s /lib/libutil.so.7.3 libutil.so.6).
There are only IDE disks on the two system I tested, so I don't know if this problem also exists with e.g. SCSI disks.
>How-To-Repeat:
build sysutils/grub from current pkgsrc on a i386 system with IDE disks running NetBSD stable or NetBSD current, execute the grub shell and issue a root (...) command.
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->mrauch
Responsible-Changed-By: mrauch
Responsible-Changed-When: Sat Jan 24 15:44:20 UTC 2004
Responsible-Changed-Why:
I'll have a look at it.
From: Michael Rauch <mrauch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/24214 CVS commit: pkgsrc/sysutils/grub
Date: Sat, 24 Jan 2004 16:36:03 +0000 (UTC)
Module Name: pkgsrc
Committed By: mrauch
Date: Sat Jan 24 16:36:03 UTC 2004
Modified Files:
pkgsrc/sysutils/grub: Makefile distinfo
Added Files:
pkgsrc/sysutils/grub/patches: patch-am patch-an patch-ao
Removed Files:
pkgsrc/sysutils/grub/patches: patch-al
Log Message:
Solve the problem with the missing memcpy differently
(Forward patch from the fix that finally went into grub's CVS)
The old way had problems finding disks and formatting curses output properly.
Fixes PR pkg/24214.
To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 pkgsrc/sysutils/grub/Makefile
cvs rdiff -r1.6 -r1.7 pkgsrc/sysutils/grub/distinfo
cvs rdiff -r1.1 -r0 pkgsrc/sysutils/grub/patches/patch-al
cvs rdiff -r0 -r1.1 pkgsrc/sysutils/grub/patches/patch-am \
pkgsrc/sysutils/grub/patches/patch-an \
pkgsrc/sysutils/grub/patches/patch-ao
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Michael Rauch <mrauch@NetBSD.org>
To: jukka-netbsd@2004.salmi.ch
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/24214: sysutils/grub: patch-al makes grub fail
Date: Sat, 24 Jan 2004 17:41:00 +0100
Hi,
On Sat, Jan 24, 2004 at 02:59:56PM +0100, jukka-netbsd@2004.salmi.ch wrote:
> >Synopsis: sysutils/grub: patch-al makes grub fail
Thanks for reporting the problem.
I've just committed a patch which should fix the problem.
Can you please test whether it really does this?
Michael
State-Changed-From-To: open->feedback
State-Changed-By: mrauch
State-Changed-When: Sat Jan 24 16:42:26 UTC 2004
State-Changed-Why:
Awaiting feedback if patch fixes the problem
From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: gnats-bugs@gnats.netbsd.org
Cc: Michael Rauch <mrauch@NetBSD.org>
Subject: Re: pkg/24214: sysutils/grub: patch-al makes grub fail
Date: Sun, 25 Jan 2004 03:17:02 +0100
Hello,
Michael Rauch wrote:
> Hi,
>
> On Sat, Jan 24, 2004 at 02:59:56PM +0100, jukka-netbsd@2004.salmi.ch wrote:
> > >Synopsis: sysutils/grub: patch-al makes grub fail
>
> Thanks for reporting the problem.
> I've just committed a patch which should fix the problem.
> Can you please test whether it really does this?
Yes, those patches solve the problem. Thanks a lot!
Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
State-Changed-From-To: feedback->closed
State-Changed-By: mrauch
State-Changed-When: Sun Jan 25 09:00:05 UTC 2004
State-Changed-Why:
Fix confirmed by submitter.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.