alan buckley wrote:
I've cross compiled a large C++ game (the latest version of
wesnoth) in the autobuilder using the GCC4.1 cross compiler
on Cygwin and although it builds OK, when I try to run it I get
a wimp error box with the following:
Unixlib detected recursion of signal SIGSEGV.
My usual debugging technique of putting printf into the
program is not working as it doesn't even reach the main
function.
A grep of the src didn't show any signal handlers that
could be installed at this point.
Could this be a bug in the compiler/unixlib?
Can anyone suggest what I need to do to track the
error down?
Global object constructors are called before main(), so this is probably
where the crash is occurring. One trick you can try is disabling the
UnixLib signal handlers in syslib.s so that RISC OS gives you the error
directly. !Reporter may be useful here to catch the error for reading.
Are you static linking?
Lee.
_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK