Follow-up Comment #5, bug #16195 (project wesnoth):

some wml to reliably reproduce the issue:

        [event]
                name=prestart
                {VARIABLE i 1}
        [/event]
        [event]
                name=advance
                first_time_only=no
                {VARIABLE_OP i add 1}
                {VARIABLE unit.experience $unit.max_experience}
                [unstore_unit]
                        variable=unit
                [/unstore_unit]
        [/event]
        [event]
                name=moveto
                {DEBUG_MSG $i}
        [/event]


In 1.8 it leads to a crash without error message after lots of recursions; in
1.9 a lua error is displayed with stack overflow - good output, exactly the
one I would expect since it's like a recursive function without break
condition. In any case, the wml author does something dreadfully wrong here
so I suggest closing it as won't fix.


20100804 19:33:51 error scripting/lua:
E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:304: C stack overflow
stack traceback:
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:304: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        ...
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>
        [C]: in function 'cmd'
        E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:310: in function
<E:/Programme/WesnothTrunk/data/lua/wml-tags.lua:303>


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16195>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to