XML error results in segfault (local game)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Armagetron Advanced |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
this happens on the latest trunk reversion 922 and some previous versions
XML parsing will cause a segmentation fault if there are errors in the code on a local game
for this situation a comment tag was closed with ---> it also applies to mismatches tags
game output:
XML validation error in kyle/wildfort/
:72: parser error : Comment not terminated
<!--<Wall height="50">
:79: parser error : Comment not terminated
<!--<Wall height="50">
Failed to parse
Segmentation fault
Traceback:
#0 0x00000000006691ee in tXmlParserNames
this=0x17a0dd0, docfd=0x18a8c00, uri=0x714525 "",
filepath=
at tools/tXmlParse
#1 0x000000000067fa07 in tResource:
docfd=
filepath=
at resource/
#2 0x0000000000669704 in tXmlParserNames
this=0x17a0dd0, filename=0x18b6568 "kyle/wildfort/
uri=0x714525 "") at tools/tXmlParse
#3 0x0000000000465b9b in sg_ParseMap (aParser=0x17a0dd0, mapfile=
#4 0x0000000000465e4d in sg_ParseMap (aParser=0x17a0dd0)
at tron/gGame.cpp:2412
#5 0x000000000046e6b1 in gGame::Verify (this=0x177ed30) at tron/gGame.cpp:2418
#6 0x000000000046ec33 in gGame::StateUpdate (this=0x177ed30)
at tron/gGame.cpp:2695
#7 0x0000000000464dc7 in GameLoop (input=true) at tron/gGame.cpp:4150
#8 0x000000000046d4af in sg_EnterGameCore (enter_
Changed in armagetronad: | |
status: | New → Fix Committed |