bugGNU nano - Bugs: bug #44488, segmentation fault when undoing an...

 
 

bug #44488: segmentation fault when undoing an uncut at the end of buffer

Submitted by:  None
Submitted on:  Sun 08 Mar 2015 11:00:30 PM 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.

 

Sun 15 Mar 2015 07:50:01 PM UTC, comment #4:

Added. Thanks again.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 14 Mar 2015 07:43:24 PM UTC, comment #3:

My full name is Dennis Decker Jensen.

Thank you!

Anonymous
Sat 14 Mar 2015 04:11:23 PM UTC, comment #2:

Thanks for reporting. If you give your surname, I can add it in the Changelog.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 14 Mar 2015 04:00:05 PM UTC, comment #1:

Should be fixed in SVN, r5137.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 08 Mar 2015 11:00:30 PM UTC, original submission:

$ uname -a
Linux dennis-ThinkPad-X220 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:26:13 UTC 2015 i686 i686 i686 GNU/Linux

$ src/nano --version
GNU nano version 2.3.99pre1 (compiled 21:37:54, Mar 8 2015)
(C) 1999..2014 Free Software Foundation, Inc.
Email: -unavailable- Web: http://www.nano-editor.org/
Compiled options: --disable-libmagic --enable-utf8

I installed ncurses with "apt-get install libncursesw5-dev" in order to "./configure --enable-utf8; make; sudo make install".

Do these steps to reproduce the error:

$ src/nano

1. make a few lines, e.g. the following 3 lines and remember a final newline at the end:

a
b
c

2. Cut or more lines with C-K (or with marked text C-^)
3. Move to the end of the buffer with M-/ or multiple C-N
4. Uncut with C-U
5. Undo with M-U

This ends up with a segmentation fault with this output:

a
b
c
Segmentation fault (core dumped)
174 dennis-ThinkPad-X220:~/nano-2.3.99pre1>

Anonymous

 

(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 (Posted a comment)
  •  

    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
    Sun 15 Mar 2015 07:50:01 PM UTCbensOpen/ClosedOpen=>Closed
    Sat 14 Mar 2015 04:00:05 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
      Summarynano-2.3.99pre1 gives segmentation fault when undoing an uncut at the end of buffer=>segmentation fault when undoing an uncut at the end of buffer

    Back to the top


    Powered by Savane 3.1-cleanup1