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

Submitted by:  Ralf Treinen <treinen>
Submitted on:  Fri Feb 3 18:44:07 2006  
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 Nov 27 21:09:37 2013, 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 Sep 5 12:15:03 2012, comment #3:

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

Miguel de Benito <mdbenito>
Project Member
Mon May 28 07:48:08 2012, 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 Mar 21 14:37:52 2012, 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 Feb 3 18:44:07 2006, 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 Nov 27 21:09:37 2013vdhoevenStatusConfirmed=>Fixed
      Assigned toNone=>vdhoeven
    Wed Sep 5 12:15:03 2012mdbenitoPriority5 - Normal=>2 - Very low
    Mon May 28 07:48:08 2012pjoyezSummaryManually adding new lines and tabs in tm file causes crash on loading file=>Invalid tm file should not crash texmacs
    Wed Mar 21 14:37:52 2012pjoyezStatusNone=>Confirmed
      Summarycrash on loading file=>Manually adding new lines and tabs in tm file causes crash on loading file
    Fri Feb 3 18:44:07 2006treinenAttached File-=>Added brew.tm, #3365

    Back to the top

    Powered by Savane 3.1-cleanup1