Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 215316

Summary: pygrub traceback when moving cursor one to the right and backspacing
Product: Red Hat Enterprise Linux 5 Reporter: Bastien Nocera <bnocera>
Component: xenAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: bstein, jturner, katzj, konradr, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: beta2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-23 02:34:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix_pygrub_editing_bug.patch none

Description Bastien Nocera 2006-11-13 14:07:28 UTC
+++ This bug was initially created as a clone of Bug #208316 +++

Or moving cursor as far right as it'll go.

Traceback (most recent call last):
  File "/usr/bin/pygrub", line 483, in ?
    curses.wrapper(run_main)
  File "/usr/lib/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/pygrub", line 439, in run_main
    sel = g.run()
  File "/usr/bin/pygrub", line 346, in run
    self.run_main(timeout)
  File "/usr/bin/pygrub", line 389, in run_main
    l = self.edit_line(line)
  File "/usr/bin/pygrub", line 259, in edit_line
    ret = t.edit()
  File "/usr/bin/pygrub", line 135, in edit
    r = curses.textpad.Textbox.edit(self)
  File "/usr/lib/python2.4/curses/textpad.py", line 157, in edit
    if not self.do_command(ch):
  File "/usr/bin/pygrub", line 120, in do_command
    self.line.pop(self.pos)
IndexError: pop index out of range
Error: Boot loader didn't return any data!


Was fixed in this xen-unstable ChangeSet:

changeset:   12326:14dc20d98ee1
user:        Tim Deegan <Tim.Deegan>
date:        Thu Nov 09 14:23:24 2006 +0000
summary:     [PYGRUB] Fix a few bounds violations in pygrub's command-line editor.

Comment 1 Bastien Nocera 2006-11-13 14:07:29 UTC
Created attachment 141047 [details]
fix_pygrub_editing_bug.patch

Comment 2 RHEL Program Management 2006-11-13 14:20:33 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Konrad Rzeszutek 2006-12-13 20:13:23 UTC
Jeremy,

Is there any help IBM can offer with this BZ?

Comment 6 Konrad Rzeszutek 2006-12-13 22:02:11 UTC
Asking for exception. The justication is that the steps to reproduce this
are quite simple: "
--Steps to Reproduce---
1. launch a RHEL guest and auto-attach console (xm create guest -c)
2. On the Grub menu, hit 'e' to edit the boot entry
3. Hit 'e' a second time to edit that line
4. Use the right arrow key to move the cursor past the last character in the line
5. hit backspace"

and that a customer could hit this while playing with Xen. 


Comment 10 Jeremy Katz 2006-12-15 03:22:31 UTC
Fixed in xen-3.0.3-16.el5

Comment 11 Jay Turner 2006-12-18 16:29:54 UTC
QE ack for RHEL5.

Comment 13 RHEL Program Management 2006-12-23 02:34:52 UTC
A package has been built which should help the problem described in 
this bug report. This report is therefore being closed with a resolution 
of CURRENTRELEASE. You may reopen this bug report if the solution does 
not work for you.