bugGNU nano - Bugs: bug #45377, segmentation fault when loading a...

 
 

bug #45377: segmentation fault when loading a second file

Submitted by:  Cody A. Taylor <code_m>
Submitted on:  Mon 22 Jun 2015 07:05:40 PM UTC  
 
Severity: 5 - BlockerStatus: 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.

 

Tue 23 Jun 2015 06:10:45 PM UTC, comment #4:

The patch went into SVN, r5266. It is a necessary fix in any case.

Thanks for the bug report. And thanks for using SVN!

I never use the switching-between-files feature, so if you find any problems with that... please post another bug.

Considering this particular problem fixed for now.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue 23 Jun 2015 03:26:34 PM UTC, comment #3:

The attached patch does seem to work.

I want to give it some more testing though. I was having trouble jumping between files and jumping to beginning/end of file.

Key bindings M+, M+. M+/ M+\

I didn't report the file switching & jumping because I could not reproduce it as consistently. These problems only seemed to happen with specific files.

Anyway, I'll set up a debug environment and get back to you by the end of week.

Cody A. Taylor <code_m>
Mon 22 Jun 2015 08:15:14 PM UTC, comment #2:

Is the attached patch (applied to HEAD) enough to regain stability?

(file #34297)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 22 Jun 2015 08:05:30 PM UTC, comment #1:

Ow! Can reproduce with nano src/text.c, and then ^R src/winio.c.

If you revert only -c 5247, do you regain stability?

For a backtrace, export CFLAGS="-g -O2", then ./configure and make.
Then run 'gdb --args nano somefile', type run, read in another file, see it segfault, type bt.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 22 Jun 2015 07:05:40 PM UTC, original submission:

Running trunk I have been experiencing crashes when reading in a second file (^R) while nano is running.

I had to back up all the way to revision 5246 for stability.

I would love to help debug, so some pointers on how to get a stacktrace from the Segmentation fault would be great.

Cody A. Taylor <code_m>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

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)
  • -unavailable- added by code_m (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Jul 2015 06:51:13 PM UTCbensOpen/ClosedOpen=>Closed
      SummarySegmentation fault – Loading a second file=>segmentation fault when loading a second file
    Tue 23 Jun 2015 06:10:45 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
    Mon 22 Jun 2015 08:15:14 PM UTCbensAttached File-=>Added check-presence-of-multidata.patch, #34297
    Mon 22 Jun 2015 08:05:30 PM UTCbensSeverity3 - Normal=>5 - Blocker

    Back to the top


    Powered by Savane 3.1-cleanup1