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

 
 

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

bug #45377: segmentation fault when loading a second file

Submitter:  Cody A. Taylor <code_m>
Submitted:  Mon 22 Jun 2015 07:05:40 PM UTC
   
 
Severity:  5 - Blocker Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by code_m (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-05 bens Open/ClosedOpen Closed
        SummarySegmentation fault – Loading a second file segmentation fault when loading a second file
    2015-06-23 bens StatusNone Fixed
        Assigned toNone bens
    2015-06-22 bens Attached File- Added check-presence-of-multidata.patch, #34297
    2015-06-22 bens Severity3 - Normal 5 - Blocker

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code