grub2-setup crashed with SIGSEGV

Bug #207876 reported by Konstantin Bukharov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: grub-pc

grub-install /dev/sdb

sdb is GPT partitioned disk.

$ lsb_release -d
Description: Ubuntu hardy (development branch)
$ apt-cache policy grub-pc
grub-pc:
  Установлен: 1.96+20080203-1ubuntu2
  Кандидат: 1.96+20080203-1ubuntu2
  Таблица версий:
 *** 1.96+20080203-1ubuntu2 0
        500 http://ru.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
Expected:
Grub2 is installed
Happens: SIGSEGV

ProblemType: Crash
Architecture: i386
Date: Thu Mar 27 21:02:11 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/sbin/grub-setup
NonfreeKernelModules: ath_hal
Package: grub-pc 1.96+20080203-1ubuntu2
PackageArchitecture: i386
ProcCmdline: /usr/sbin/grub-setup --directory=/mnt/new//boot/grub --device-map=/mnt/new//boot/grub/device.map /dev/sdb
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: grub2
Stacktrace:
 #0 0x08049035 in ?? ()
 #1 0x00000000 in ?? ()
StacktraceTop:
 ?? ()
 ?? ()
ThreadStacktrace:
 .
 Thread 1 (process 6654):
 #0 0x08049035 in ?? ()
 #1 0x00000000 in ?? ()
Title: grub-setup crashed with SIGSEGV
Uname: Linux 2.6.24-12-generic i686
UserGroups:
SegvAnalysis:
 Segfault happened at: 0x8049035 <exit@plt+233>: mov 0x8(%eax),%edx
 PC (0x08049035) ok
 source "0x8(%eax)" (0x1000bf0e) not located in a known VMA region (needed readable region)!
 destination "%edx" ok
SegvReason: reading unknown VMA

Tags: apport-crash
Revision history for this message
Konstantin Bukharov (kbukharov) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:find_first_partition_start (disk=0x806b170, p=0xbf7fde08)
gpt_partition_map_iterate (disk=0x806b170, hook=0xbf7fe218)
grub_partition_iterate (hook=0xbf7fe218)
setup (prefix=0x806b0d8 "/boot/grub", dir=0x806b008 "/mnt/new//boot/grub",
main (argc=1206639557, argv=0x9b3826a)

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Stack trace with source code
Changed in grub2:
importance: Undecided → Medium
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

removed privacy

visibility: private → public
Kees Cook (kees)
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for your report. This was fixed a long time ago, I believe in Ubuntu 8.10. I managed to track down what I think was the ChangeLog entry for the upstream fix:

2008-02-16 Robert Millan <email address hidden>

        * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
        do not assume partition map is PC/MSDOS before performing checks that
        are specific to that layout.

Changed in grub2 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.