bugGNU TeXmacs - Bugs: bug #15617, Invalid tm file should not crash...

 
 

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

bug #15617: Invalid tm file should not crash texmacs

Submitted by:  Ralf Treinen <treinen>
Submitted on:  Fri 03 Feb 2006 06:44:07 PM UTC  
 
Category: EditorPriority: 2 - Very low
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Francesco PotortiOpen/Closed: Closed
Release: 1.0.6Release: None
Fixed Release: NoneFixed Release: 
Keywords: crash

Wed 27 Nov 2013 09:09:37 PM UTC, comment #4:

The problem has been fixed for this particular document. More work is necessary in order to systematically avoid segfaults on erroneous documents. I did implement some basic error recovery though, so brutal crashes should become increasingly rare.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Wed 05 Sep 2012 12:15:03 PM UTC, comment #3:

Since the warning is in the docs, this is very low priority.

Miguel de Benito <mdbenito>
Project Member
Mon 28 May 2012 07:48:08 AM UTC, comment #2:

If you read the documentation thoroughly you are warned:

"TEXMACS syntax (...) is not designed to be hand-edited: whitespace has complex semantics and some internal structures are not obviously presented. Do not edit documents (and especially style files) in the TEXMACS syntax unless you know what you are doing."

So my suggestion of making the parser more tolerant to white spaces and formatting was just because of ignorance.

Still, I agree with the initial report : An invalid input should only generate an error and never a brutal crash.

Philippe Joyez <pjoyez>
Project Member
Wed 21 Mar 2012 02:37:52 PM UTC, comment #1:

Confirmed with the file submitted.

The explaination is : for human legibility the user has inserted line breaks and tabs in the texmacs code of tables. This indeed crashes texmacs.

An Xml file is tolerant to this kind of editting. Maybe parsing tm input file should allow for this too?

Philippe Joyez <pjoyez>
Project Member
Fri 03 Feb 2006 06:44:07 PM UTC, original submission:

Loading the attached file makes texmacs crash with segfault.
According to the original bug submitter this is a manually
edited .tm file. It is possible that it is not conform with
texmacs syntax (I did not try to find out wether this is the
case), however, texmacs should not crash with
segfault on any input files.

Ralf Treinen <treinen>
Project Member

 

Attached Files
file #2069:  brew.tm added by treinen (911B - text/texmacs - File which makes texmacs crash when loading)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by vdhoeven (Posted a comment)
  • -unavailable- added by mdbenito (Posted a comment)
  • -unavailable- added by pjoyez (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Nov 2013 09:09:37 PM UTCvdhoevenStatusConfirmed=>Fixed
      Assigned toNone=>vdhoeven
      Open/ClosedOpen=>Closed
    Wed 05 Sep 2012 12:15:03 PM UTCmdbenitoPriority5 - Normal=>2 - Very low
    Mon 28 May 2012 07:48:08 AM UTCpjoyezSummaryManually adding new lines and tabs in tm file causes crash on loading file=>Invalid tm file should not crash texmacs
    Wed 21 Mar 2012 02:37:52 PM UTCpjoyezStatusNone=>Confirmed
      Summarycrash on loading file=>Manually adding new lines and tabs in tm file causes crash on loading file
    Fri 03 Feb 2006 06:44:07 PM UTCtreinenAttached File-=>Added brew.tm, #3365

    Back to the top


    Powered by Savane 3.1-cleanup