bugGNU nano - Bugs: bug #48520, nano should not die when terminal...

 
 

bug #48520: nano should not die when terminal gets very narrow

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Fri 15 Jul 2016 09:02:41 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 15 Aug 2016 03:31:25 PM UTC, comment #3:

Fixed in git, 0dd2a55.

(This only covers the case of columns < 4, not of lines < 6. I'll post a new bug for the latter.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 15 Aug 2016 10:01:01 AM UTC, comment #2:

Strange -- currently nano doesn't complain any more about a silly malloc (when taking away the die() on less than four columns). Even when checking out a version of three weeks ago, there still is no silly malloc. Weird! [Next time I test something, I should give the commit ID of the version I tested.]

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 24 Jul 2016 12:13:43 PM UTC, comment #1:

Currently, nano would still work when the terminal is just 3 columns wide. (It is nearly unusable, though, because anything you type -- apart from the first character -- is immediately scrolled off horizontally.)

When the terminal is just 1 or 2 columns wide, nano crashes. Valgrind says: ==7423== Warning: silly arg (-12) to malloc(). (Or -6 for two columns.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Fri 15 Jul 2016 09:02:41 AM UTC, original submission:

When a terminal is resized to less than four columns, nano kicks the bucket and spills the beans. It shouldn't do that.

See https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1522598 and https://lists.gnu.org/archive/html/nano-devel/2016-07/msg00034.html.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Sep 2016 07:36:44 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 15 Aug 2016 03:31:25 PM UTCbensStatusIn Progress=>Fixed
    Mon 15 Aug 2016 10:01:01 AM UTCbensStatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1