* Martin van Beilen -- Saturday 23 February 2002 02:54:
> If I type "ls -l" (reflex :-)) to the property interface, fgfs
> locks so hard that my voodoo card doesn't get reset to its off
> state. If I type "ls blah" (literally) I get an ERR message as
> required. It seems to happen with all characters that aren't
> allowed in property names. I'll try to hunt this bug down
This isn't a bug, but a feature. :-> Well, OK, it =is= a bug, but one
in gcc. Simgear's property handler correctly thows an exception for every
input failure. But gcc disagrees about which information to let throw put
on the stack and which to let catch read from there, so it crashes.
Exceptions are simply broken in gcc around version 2.95.2, they don't
work across modules.
Of course, one could work around that gcc bug for now, but I think
it's better to write code for working compilers, rather than to fill up
the code with weird workarounds. It was already on my TODO list to
catch the exceptions and output proper error messages ("ERR ...") in
fgfs' telnet handler, as soon as I have a gcc that has the exception
bug fixed.
On the other hand, these crashes never locked my voodoo card,
so you are possibly talking of another problem. (?)
m.
PS: You get another crash if you type "cd .." at root level. This
throws the exception "Attempt to move past root" and leads to
the same crash.
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel