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

 
 

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

bug #15617: Invalid tm file should not crash texmacs

Submitter:  Ralf Treinen <treinen>
Submitted:  Fri 03 Feb 2006 06:44:07 PM UTC
   
 
Category:  Editor Priority:  2 - Very low
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Francesco Potorti Open/Closed:  Closed
Release:  None Release:  1.0.6
Fixed Release:  None Fixed 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>
Group administrator
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>
Group 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>
Group 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>
Group 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>
Group Member

 

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

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
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by mdbenito (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  •  

    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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-27 vdhoeven StatusConfirmed Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2012-09-05 mdbenito Priority5 - Normal 2 - Very low
    2012-05-28 pjoyez SummaryManually adding new lines and tabs in tm file causes crash on loading file Invalid tm file should not crash texmacs
    2012-03-21 pjoyez StatusNone Confirmed
        Summarycrash on loading file Manually adding new lines and tabs in tm file causes crash on loading file
    2006-06-15 #48748 Carbon-Copy- Added rvb
    2006-02-03 treinen Attached File- Added brew.tm, #3365

    Back to the top

    Powered by Savane 3.14-d582.
    Corresponding source code