bugBattle for Wesnoth - Bugs: bug #20779, Irrational segmentation fault when...

Show feedback again

bug #20779: Irrational segmentation fault when returning from fire_event

Submitted by:  None
Submitted on:  Thu May 2 00:30:15 2013  
Category: BugSeverity: 4 - Important
Priority: 5 - NormalItem Group: WML
Status: Works For MePrivacy: Public
Assigned to: J Tyne <jamit>Originator Email: -unavailable-
Open/Closed: ClosedRelease: 1.10
Operating System: Ubuntu, Windows

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sat May 28 17:17:57 2016, comment #4:

wasn't able to reproduce this bug with the given savfile in wesnoth 1.13+dev, works at it should with Loti installed.

Closng this since it seems like the original reporter won't answer

Daniel <gfgtdf>
Project Member
Sun Jul 21 23:58:14 2013, comment #3:

The attached save does not load (unknown unit type 09 Fencer).

The attached save is from 1.11.2, which makes verifying the bug in 1.10 unlikely given that a version conflict is likely.

J Tyne <jamit>
Project MemberIn charge of this item.
Thu May 2 01:06:51 2013, comment #2:

Fogot to add that the guy who encountered it on Windows was on 1.11.2, so this bug is present both on 1.11 and 1.10.

Thu May 2 00:49:13 2013, comment #1:

I forgot to add, after this seg fault the game loaded again incredibly fast, like if all the preprocessed WML was still reachable.

And when I did the same thing on the same unit with the same properties elsewhere (when I created it with the same properties as that code has created, I have seen it when the empty messages showed) did not cause a seg fault.

Thu May 2 00:30:15 2013, original submission:

I have encountered a mysterious segmentation fault in my campaign. I have recently added a tutorial to it, a rather funny introduction to the campaign's interface, but suddenly it appeared. A character started telling 0-3 times an empty message (it should not have talked at that point at all) and then it crashes with a segmentation fault. An almost identical code is executed many times, and in all other cases it worked. I did not have enough RAM capacity to valgrind it (because the add-on it requires is quite huge).

A unit was created there, then it was stored, an event was fired on it, I could verify that it continued until the end of the event, then it was supposed to come back to the event being executed, but before executing anything behind that fire_event, the unit said 0-3 times an empty message and it crashed.

An almost identical structure was used a lot of times before and it never did this. That is why it is impossible to provide a minimalistic code or something, I am just including a save file where it appeared (right click on the Rogue, and click on the last option). All the WML in the event fired worked a thousand times without it and just changes some properties of the unit. The add-on on the server already contains a workaround, but the bug should repeat when using the save file with the newer code.

It happened on 1.10.6 on Ubuntu 12.10, but it was also encountered on Windows, and it did the same.



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

Attach File(s):

Attached Files
file #17875:  LotI1-Tutorial-Auto-Save5.gz added by None (60kB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gfgtdf (Posted a comment)
  • -unavailable- added by jamit (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.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat May 28 17:17:57 2016gfgtdfStatusNeed Info=>Works For Me
    Sun Jul 21 23:58:14 2013jamitStatusNone=>Need Info
      Assigned toNone=>jamit
    Thu May 2 00:30:15 2013NoneAttached File-=>Added LotI1-Tutorial-Auto-Save5.gz, #17875
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup