bugGNU TeXmacs - Bugs: bug #58124, Self inclusion of a document...

 
 

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

bug #58124: Self inclusion of a document should result in an error not a segmentation fault

Submitter:  Skalman <skalman>
Submitted:  Mon 06 Apr 2020 12:18:30 PM UTC
   
 
Category:  Editor Priority:  5 - Normal
Item Group:  Error Status:  Fixed
Privacy:  Public Assigned to:  vdhoeven
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Sat 24 Oct 2020 10:40:22 PM UTC, comment #1: 

I fixed this bug in revision 13017.

However, I do not prevent cyclic includes.
This would be harder to implement.
We'll do that if someone hits this bug again...

Joris van der Hoeven <vdhoeven>
Group administrator
Mon 06 Apr 2020 12:18:30 PM UTC, original submission:  

I assume that when you (by mistake) insert .tm file in itself as an inclusion an infinite recursive results in segmentation fault. It should instead detect the self-inclusion, warn the user that they are doing something crazy and perhapse ignore the self-inclusion all together (or refuse to load the file clearly citing the reason).


$ texmacs -d c06-consensus.tm
Installing internal plug-ins...
Opening display...
Screen extents: 3200 x 1080
Starting server...
TeXmacs] debug-std, Evaluating /usr/share/TeXmacs/progs/init-texmacs.scm...
Loading c06-consensus.tm...
Creating 'no name' buffer...
TeXmacs] debug-fonts, Try tfm ecrm10.tfm
TeXmacs] With linked TrueType support
TeXmacs] debug-fonts, Loading larm.enc
TeXmacs] debug-fonts, Loading grmn.enc
TeXmacs] debug-fonts, Try tfm ecss10.tfm
TeXmacs] debug-std, Redefined color dark slate
TeXmacs] debug-std, #2F4F4F replaced by #483D8B
TeXmacs] debug-std, Redefined color light slate
TeXmacs] debug-std, #778899 replaced by #8470FF
TeXmacs] debug-std, Redefined color light goldenrod
TeXmacs] debug-std, #FAFAD2 replaced by #EEDD82
TeXmacs] debug-std, Evaluating /usr/share/TeXmacs/progs/init-buffer.scm...
Starting event loop...
TeXmacs] debug-std, Evaluating /usr/share/TeXmacs/progs/init-buffer.scm...
TeXmacs] debug-fonts, Try tfm cmr10.tfm
Segmentation fault (core dumped)


Skalman <skalman>

 

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

Attached Files
file #48772:  c06-consensus.tm added by skalman (10KiB - text/x-texmacs.doc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Updated the item)
  • -email is unavailable- added by skalman (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-24 vdhoeven StatusNone Fixed
        Assigned toNone vdhoeven
        Open/ClosedOpen Closed
    2020-10-23 vdhoeven Item GroupNone Error
    2020-04-06 skalman Attached File- Added c06-consensus.tm, #48772

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code