bugBeaver - Bugs: bug #23527, Segmentation Fault when typing in...

 
 

bug #23527: Segmentation Fault when typing in a fresh saved file

Submitted by:  Tobias Heinzen <teal>
Submitted on:  Mon 09 Jun 2008 08:29:16 AM UTC  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Release: NoneReproducibility: Every Time
Size (loc): NonePlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 13 Jun 2008 09:07:52 PM UTC, comment #1:

This patch worked for me, I just had to add the undoredo.h header to filesops.c.

Double 12 <double12>
Project Member
Mon 09 Jun 2008 08:29:16 AM UTC, original submission:

reproduce:
- write some text
- save it
- try to write some more text -> segfault


The problem probably lies in the undo/redo mechanism. As a file is saved the WidgetInfo.current_action is set to NULL, which then causes in undoredo_on_insert on this line

action = (t_action *) current_action->data;

some problems.

the attached patch should solve this problem.

Also the undo/redo stack doesn't get clean up, if the file is saved, so this leads to some serious memory problems.

Tobias Heinzen <teal>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #15819:  beaver-0.3.0-undoredo_fix.patch added by teal (6KiB - text/x-diff - fixes undo/redo problems on fresh saved files)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by enygmata (Updated the item)
  • -unavailable- added by teal (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 Feb 2009 07:12:46 PM UTCenygmataOpen/ClosedOpen=>Closed
    Sat 14 Jun 2008 09:12:00 PM UTCdouble12StatusNone=>Fixed
    Mon 09 Jun 2008 08:29:16 AM UTCtealAttached File-=>Added beaver-0.3.0-undoredo_fix.patch, #15819

    Back to the top


    Powered by Savane 3.1-cleanup1