startupmanager crashed with IndexError in get_default_boot()

Bug #179555 reported by Karl.Mo
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
StartUp-Manager
Fix Released
Medium
Jimmy Rönnholm
startupmanager (Debian)
Fix Released
Unknown
startupmanager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: startupmanager

I am using hardy alpha 2 on a 32bit
When I try to run startupmanager it kepts crashing each time as its preforming pre-configuration tasks.
This is the terminal output fot sudo startupmanager.

Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd1,5)/boot/grub/splashimages/mythtv_theme_howto_background.xpm.gz

Found kernel: /boot/vmlinuz-2.6.24-2-386
Found kernel: /boot/vmlinuz-2.6.24-2-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Traceback (most recent call last):
  File "/usr/sbin/startupmanager", line 36, in <module>
    main()
  File "/usr/sbin/startupmanager", line 33, in main
    SumGui()
  File "/usr/share/startupmanager/gtk_frontend.py", line 198, in __init__
    self.setup_widgets()
  File "/usr/share/startupmanager/gtk_frontend.py", line 207, in setup_widgets
    self.set_shared_grub_widgets()
  File "/usr/share/startupmanager/gtk_frontend.py", line 232, in set_shared_grub_widgets
    if title == self.grub.get_default_boot():
  File "/usr/lib/python2.5/site-packages/bootconfig/grub_legacy.py", line 429, in get_default_boot
    return titles[default_boot]
IndexError: list index out of range
This was working fine a couple of days ago. I tried to uninstall and reinstall the package by add/remove and when doing a search for startup-manager found that there is a duplicate entry for startup-manager.

ProblemType: Crash
Architecture: i386
Date: Tue Jan 1 01:30:02 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/sbin/startupmanager
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: startupmanager 1.9.9-1
PackageArchitecture: all
ProcCmdline: python /usr/sbin/startupmanager
ProcCwd: /home/karl
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/sbin/startupmanager']
SourcePackage: startupmanager
Title: startupmanager crashed with IndexError in get_default_boot()
Uname: Linux karl-desktop 2.6.24-2-generic #1 SMP Thu Dec 20 17:36:12 GMT 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse plugdev polkituser pulse pulse-access pulse-rt scanner tape

Tags: apport-crash
Revision history for this message
Karl.Mo (partyboi2) wrote :
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Thank you for your bug report.
By default, apport reports bug setting it private because the traceback can contain sensible data. I didn't found any sensible data in this report, so please to avoid duplicates can I set this bug public?

About the bug itself: can you attach your /etc/grub/menu.lst file, please?

Changed in startupmanager:
assignee: nobody → andrea-bs
status: New → Incomplete
Revision history for this message
Karl.Mo (partyboi2) wrote :

Here is my /boot/grub/menu.list. Yes you can set this bug as "public"

Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Thank you for the information.
I can confirm that with your menu.lst file startupmanager crashes with this error.

Changed in startupmanager:
assignee: andrea-bs → nobody
importance: Undecided → Medium
status: Incomplete → Confirmed
status: Confirmed → Triaged
Changed in startupmanager:
assignee: nobody → andrea-bs
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

Here's a patch which should fix the bug.

Changed in startupmanager:
assignee: andrea-bs → warp10
Revision history for this message
Karl.Mo (partyboi2) wrote :

I have tried to apply the patch but am getting
File to patch: bootconfig/grub_legacy.py
patching file bootconfig/grub_legacy.py
patch: **** malformed patch at line 15:
I have check to make sure that there are no spaces before the +/- on my end.
Could you please have another look at the patch.
thanks

Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

The patch works, but you didn't applied it correctly.
You should wait for the deb package or, if you don't know how to work around this problem, ask me to explain you how to apply the patch and I'd happy to answer you.

Changed in startupmanager:
status: Triaged → In Progress
Revision history for this message
Andrea Colangelo (warp10) wrote :

Debdiff based on Andrea (Corbellini)'s patch. Built, installed and tested.
I'll take care to submit a bug report and the patch to Debian.

Changed in startupmanager:
assignee: warp10 → nobody
status: In Progress → Confirmed
Changed in startupmanager:
status: Confirmed → Triaged
Changed in startupmanager:
status: Triaged → Confirmed
Changed in startupmanager:
status: Unknown → New
Revision history for this message
Marco Rodrigues (gothicx) wrote :

It will be released in Debian with that patch. It can be synced after that.

Revision history for this message
Emmet Hikory (persia) wrote :

Concurred. Let's pull the sync for this. I've unsubscribed ubuntu universe sponsors from this bug: please close it when the sync is complete.

Changed in startupmanager:
status: New → Fix Released
Changed in startup-manager:
assignee: nobody → jimmy-ronnholm
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Jimmy Rönnholm (jronnholm) wrote :

Fixed in version 1.9.10

Changed in startup-manager:
status: Fix Committed → Fix Released
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Can I ask for a sync for this one ? It's been released on Debian...

Revision history for this message
Martin Pitt (pitti) wrote :

Synced, thanks!

Changed in startupmanager:
status: Confirmed → 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.