Melchior FRANZ wrote:
I've just implemented the check for stale METAR reports (to stop fetching after 10 stale reports). This triggers an assert in SGThread:fgfs: /usr/local/include/simgear/threads/SGThread.hxx:155: void SGThread::join(): Assertion `status == 0' failed. I don't know much about threads. Could someone check (Erik, Curt? :-) Apply this patch to reproduce (my changes aren't committed yet): diff -u -p -r1.37 environment_ctrl.cxx --- environment_ctrl.cxx 26 Oct 2005 09:03:49 -0000 1.37 +++ environment_ctrl.cxx 12 Nov 2005 14:14:55 -0000 @@ -558,6 +558,7 @@ FGMetarEnvironmentCtrl::fetch_data( cons // fetch current metar data try { + _error_count = 1000;throw sg_io_exception("Boo!"); string host = proxy_host->getStringValue(); string auth = proxy_auth->getStringValue(); string port = proxy_port->getStringValue(); m. _______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
It's perhaps because of the PTHREAD_CREATE_DETACHED attribute of the thread. Harald. _______________________________________________ Flightgear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
