bugGNU TeXmacs - Bugs: bug #49719, Incorrect xmacro argument passing...

 
 

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

bug #49719: Incorrect xmacro argument passing causes infloop segv

Submitted by:  Karl Hegbloom <karlhegbloom>
Submitted on:  Sun 27 Nov 2016 10:26:54 PM UTC  
 
Category:  None Priority:  3 - Low
Item Group:  Error Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  Release:  None
Fixed Release:  None Fixed Release: 
Keywords: 

Thu 22 Jun 2017 09:50:54 PM UTC, comment #1: 

It will be hard to prevent all crashes of this type, although I agree that we should work hard in order to capture as many problematic cases as possible.

Joris van der Hoeven <vdhoeven>
Project Administrator
Sun 27 Nov 2016 10:26:54 PM UTC, original submission:  

I realize that the style program in the preamble is incorrect. But it should not produce a core file, but instead, should produce an error message that can help me in the direction of the correct syntax for what I'm trying to do...

See the attached texmacs document.

Thread 1 "texmacs.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffbdba2b13 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) where full
#0  0x00007fffbdba2b13 in operator new(unsigned long) () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x0000555555dbd6c4 in tm_new<text_box_rep, list<int>, int, string, font, pencil, xkerning>(list<int> const&, int const&, string const&, font const&, pencil const&, xkerning const&) (a6=..., a5=..., a4=..., a3=..., a2=<synthetic pointer>: <optimized out>, a1=...) at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/./System/Misc/fast_alloc.hpp:481
#2  0x0000555555dbd6c4 in text_box(list<int>, int, string, font, pencil) (ip=..., pos=pos@entry=0, s=..., fn=..., pen=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Boxes/Basic/text_boxes.cpp:557
#3  0x0000555555eb9801 in concater_rep::typeset_substring(string, list<int>, int) (this=this@entry=0x55555ae0a450, s=..., ip=..., pos=pos@entry=0)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_text.cpp:24
        b = {rep = 0x18}
#4  0x0000555555eba100 in concater_rep::typeset_text_string(tree, list<int>, int, int) (this=this@entry=0x55555ae0a450, t=..., ip=..., pos=<optimized out>, pos@entry=0, end=3)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_text.cpp:129
        tp = 0x5555565b4200 <tp_space_rep>
        s = {rep = 0x555559225ed0}
        start = <optimized out>
        spc = {rep = 0x55555897f6d0}
        extra = {rep = 0x5555589dcc90}
#5  0x0000555555ec2631 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:180
#6  0x0000555555e9db00 in concater_rep::typeset_compound(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:125
        d = 0
        f = {rep = 0x55555aba0a90}
#7  0x0000555555ec6996 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:827
#8  0x0000555555eb9083 in concater_rep::typeset_concat(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_text.cpp:262
        i = 0
        n = 3
#9  0x0000555555ec295c in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:205
#10 0x0000555555e9d7a7 in concater_rep::typeset_compound(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:118
        i = <optimized out>
        n = 1
        m = <optimized out>
        d = 0
        f = {rep = 0x55555ac47e80}
#11 0x0000555555ec6996 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:827
#12 0x0000555555e9c2f0 in concater_rep::typeset_argument(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:240
        r = {rep = 0x5555b3141e00}
        name = {rep = 0x55555a0a43e0}
        value = {rep = 0x55555acf1d60}
        valip = {rep = 0x555559991b50, static init = <optimized out>}
        old_var = {rep = 0x5555b3141870, static init = <optimized out>}
        old_src = {rep = 0x5555b31418d0, static init = <optimized out>}
#13 0x0000555555ec4f92 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:448
#14 0x0000555555e9c2f0 in concater_rep::typeset_argument(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:240
        r = {rep = 0x5555b31425c0}
        name = {rep = 0x55555a079e00}
        value = {rep = 0x5555b3141d90}
        valip = {rep = 0x5555b31415d0, static init = <optimized out>}
        old_var = {rep = 0x5555b31421d0, static init = <optimized out>}
        old_src = {rep = 0x5555b3142270, static init = <optimized out>}
#15 0x0000555555ec4f92 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:448
#16 0x0000555555eb9083 in concater_rep::typeset_concat(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_text.cpp:262
        i = 0
        n = 2
#17 0x0000555555ec295c in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:205
#18 0x0000555555e9dbb4 in concater_rep::typeset_compound(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:115
        i = <optimized out>
        n = 1
        m = <optimized out>
        d = 0
        f = {rep = 0x55555a8cfbb0}
#19 0x0000555555ec6996 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:827
#20 0x0000555555eb9083 in concater_rep::typeset_concat(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_text.cpp:262
        i = 1
        n = 3
#21 0x0000555555ec295c in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:205
#22 0x0000555555e9d7a7 in concater_rep::typeset_compound(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:118
        i = <optimized out>
        n = 1
        m = <optimized out>
        d = 0
        f = {rep = 0x55555ac47e80}
#23 0x0000555555ec6996 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:827
#24 0x0000555555e9c2f0 in concater_rep::typeset_argument(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concat_macro.cpp:240
        r = {rep = 0x5555b3140b10}
        name = {rep = 0x55555a0a43e0}
        value = {rep = 0x55555acf1d60}
        valip = {rep = 0x555559991b50, static init = <optimized out>}
        old_var = {rep = 0x5555b3140580, static init = <optimized out>}
        old_src = {rep = 0x5555b31405e0, static init = <optimized out>}
#25 0x0000555555ec4f92 in concater_rep::typeset(tree, list<int>) (this=this@entry=0x55555ae0a450, t=..., ip=...)
    at /home/karlheg/src/TeXmacs/texmacs-git-svn-guile-1.8/src/src/Typeset/Concat/concater.cpp:448

Karl Hegbloom <karlhegbloom>

 

Attached Files

 

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 karlhegbloom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-22 vdhoeven Priority5 - Normal => 3 - Low
        Item GroupNone => Error
    2016-11-27 karlhegbloom Attached File- => Added this-makes-it-dump-core.tm, #39086

    Back to the top


    Powered by Savane 3.5