NetBSD Problem Report #51701

From www@NetBSD.org  Sat Dec 10 10:15:44 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 825F37A2D8
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 10 Dec 2016 10:15:44 +0000 (UTC)
Message-Id: <20161210101543.6461A7A338@mollari.NetBSD.org>
Date: Sat, 10 Dec 2016 10:15:43 +0000 (UTC)
From: ryo_kato@webzoit.net
Reply-To: ryo_kato@webzoit.net
To: gnats-bugs@NetBSD.org
Subject: Segmentation fault when run grub-install(GRUB2)
X-Send-Pr-Version: www-1.0

>Number:         51701
>Category:       port-i386
>Synopsis:       Segmentation fault when run grub-install(GRUB2)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 10 10:20:00 +0000 2016
>Closed-Date:    Fri Jul 12 04:11:29 +0000 2019
>Last-Modified:  Fri Jul 12 04:11:29 +0000 2019
>Originator:     ryo
>Release:        i386 7.0.2
>Organization:
>Environment:
NetBSD dyna_netbsd.dyna_netbsd.org 7.0.2 NetBSD 7.0.2 (GENERIC.201610210724Z) i386
>Description:
It happens Segmentation fault when run grub-install (GRUB2) at NetBSD.
I have remove grub and install binary package of grub2 from mirror site (incidentally, ftp7.jp.netbsd.org).

But GRUB 2 on Linux has successfully completed by same condition (same usb stick, same partition, same fs, same boot directory, ...).
(I used Debian on the same PC)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$ sudo newfs_msdos /dev/sd0e
...
$ sudo mount /dev/sd0e /mnt/boot
$ sudo grub-install --force --boot-directory=/mnt/boot /dev/sd0d
[1]   Segmentation fault (core dumped) "${grub_probe}" ...
Path `/mnt/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
$
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

[Environment]
P C:TOSHIBA dynabook Satellite t30 160C/5W
CPU:Intel Celeron M 520 1.60GHz
RAM:2048MB
SSD:128GB

>How-To-Repeat:
$ sudo grub-install --force --boot-directory=/mnt/boot /dev/sd0d
[1]   Segmentation fault (core dumped) "${grub_probe}" ...
Path `/mnt/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
$
>Fix:
Sorry, I don't know.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 23 May 2018 10:38:11 +0000
State-Changed-Why:
Might be fixed from grub 2.02. grub 2.00 used nested functions, which need an executable stack to run (which is very bad for security), which might have been the cause for this segfault.


From: ryo <ryo_kato@webzoit.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/51701
Date: Sat, 6 Jul 2019 15:57:11 +0900

 Please close this PR.

 Sorry, late reply.

 I have not environment for confirm this aleady. 

State-Changed-From-To: feedback->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Fri, 12 Jul 2019 04:11:29 +0000
State-Changed-Why:
Closed at submitter's request. Thanks for the PR, sorry we didn't get a resolution for you at the time.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.