Example 9.0 segfaults in SuSE Linux 9.1

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
punt
Posts: 13
Joined: Fri Jul 09, 2004 7:57 pm

Example 9.0 segfaults in SuSE Linux 9.1

Post by punt »

Well, I posted this on SF Bug tracker as well.
Anyway.....

On linux (SuSE 9.1), the example 9.0 for irrlicht examples always crashes with a seg fault.

It tries to read the configuration file, and in the file:
CXMLReader.cpp
method: void CXMLReader::parseOpeningXMLElement()


It gets to this line:

{
CurrentNodeType = EXN_ELEMENT;
IsEmptyElement = false;
Attributes.clear();
// find name
const wchar_t* startName = P;
while(*P != L'>' && !isWhiteSpace(*P))
++P;
const wchar_t* endName = P;
// find Attributes
while(*P != L'>')
{
if (isWhiteSpace(*P))
++P;
else
{

if (*P != L'/')
{
// we've got an attribute

// read the attribute names
const wchar_t* attributeNameBegin = P;

while(!isWhiteSpace(*P) && *P != L'=') <<<<<<<<<<< it crashed in here
++P;


Right in that last while loop, looking for whitespace, it seg faults. I haven't been able to trace why yet, but will continue to investiage. This is with version 0.6 of the engine.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Thanks for that post. It's a known bug, it will be fixed in the next version. (I hope.)
Post Reply