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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

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

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>
Group administrator
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>
Group administrator
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>
Group administrator
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>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-02 bens Open/ClosedOpen Closed
    2016-08-15 bens StatusIn Progress Fixed
    2016-08-15 bens StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code