bugGNU nano - Bugs: bug #51550, doing replacements after invoking...

 
 

bug #51550: doing replacements after invoking the linter can result in a segfault

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 23 Jul 2017 07:11:43 PM UTC  
 
Severity: 4 - ImportantStatus: 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.

 

Wed 26 Jul 2017 07:34:08 PM UTC, comment #1:

Fixed in git, c24432ed.

(The "offending" commit was 2439e1e4, from last April, which fixed bug #47131.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 23 Jul 2017 07:11:43 PM UTC, original submission:

Invoke the linter on the attached Python file. It finds something fishy on line 459. Type ^C, and then immediately follow this with: M-R pass <Enter> aha <Enter> A. Then type another A. See how the current line disappears (as if you typed ^K <Enter> in a single keystroke). What?! Try to undo this with: M-U. Result: segmentation fault. Boohoohoo!

This is reproducible with an empty /etc/nanorc plus a ~/.nanorc that contains just these three lines:

syntax "python" "\.py$"
linter pyflakes
color magenta "^#.*"

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:
   

Attached Files
file #41304:  robot.py added by bens (46KiB - text/x-python)

 

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
    Mon 28 Aug 2017 07:08:30 PM UTCbensOpen/ClosedOpen=>Closed
    Wed 26 Jul 2017 07:34:08 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
    Sun 23 Jul 2017 07:11:43 PM UTCbensAttached File-=>Added robot.py, #41304

    Back to the top


    Powered by Savane 3.1-cleanup1