grub-mkdevicemap crashed with SIGSEGV in qsort_r()

Bug #662500 reported by Wael Ali Al-Akhali
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

during installation

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: grub-common 1.98+20100804-5ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Mon Oct 18 02:02:52 2010
ExecutablePath: /usr/sbin/grub-mkdevicemap
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcCmdline: grub-mkdevicemap --no-floppy -m -
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0xa594ab: cmp %cl,(%edx)
 PC (0x00a594ab) ok
 source "%cl" ok
 destination "(%edx)" (0x00000000) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: grub2
StacktraceTop:
 ?? () from /lib/libc.so.6
 ?? ()
 ?? () from /lib/libc.so.6
 ?? () from /lib/libc.so.6
 qsort_r () from /lib/libc.so.6
Title: grub-mkdevicemap crashed with SIGSEGV in qsort_r()
UserGroups:

Revision history for this message
Wael Ali Al-Akhali (ymnvcwael) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __strcmp_ssse3 () at ../sysdeps/i386/i686/multiarch/strcmp-ssse3.S:77
 compare_devices (a=0x82738b0, b=0x82738b8)
 msort_with_tmp (p=<value optimized out>,
 msort_with_tmp (p=<value optimized out>,
 *__GI_qsort_r (b=0x82738a0, n=5, s=<value optimized out>,

affects: ubuntu → grub2 (Ubuntu)
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in grub2 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
security vulnerability: yes → no
visibility: private → public
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for your report. Somebody else reported this upstream and I fixed it - the fix is in 1.99~20101124-1ubuntu1, which I uploaded to Natty today:

2010-11-23 Colin Watson <email address hidden>

        * util/deviceiter.c (compare_devices): If the by-id link for a
        device couldn't be resolved, fall back to sorting by the by-id link
        rather than segfaulting.
        Reported and tested by: Daniel Mierswa.

You should be able to avoid it by fixing whatever broken symlinks you have in /dev/disk/by-id/, though.

Changed in grub2 (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
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.