Re: [Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-15 Thread Erik Hofman
Melchior FRANZ wrote: Error fetching live weather data: More than 10 stale METAR messages in a row. Stop fetching data permanently. fgfs: /usr/local/include/simgear/threads/SGThread.hxx:150: void \ SGThread::join(): Assertion `status == 0' failed. /home/m/bin/fgfs: line 239:

Re: [Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-15 Thread Erik Hofman
Erik Hofman wrote: Next stop: IRIX. Same problem. Erik ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d

[Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-15 Thread Melchior FRANZ
* Melchior FRANZ -- Monday 14 November 2005 22:29: The strange thing is, that the return value that triggers assert() is 35, or EAGAIN (Linux). This makes no sense. It's neither described on the pthread_join manpage, nor is it used in any implementation that I found on the net. BS! I've no

[Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-14 Thread Melchior FRANZ
* Harald JOHNSEN -- Saturday 12 November 2005 17:09: 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: It's perhaps because of the PTHREAD_CREATE_DETACHED attribute of the thread.

Re: [Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-14 Thread Erik Hofman
Melchior FRANZ wrote: * Harald JOHNSEN -- Saturday 12 November 2005 17:09: 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: It's perhaps because of the PTHREAD_CREATE_DETACHED

[Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-14 Thread Melchior FRANZ
* Erik Hofman -- Monday 14 November 2005 18:47: If it's causing any troubles I would remove the first three lined of SGThread::start() since we've done without it for many years. It is causing troubles: the pthread_join manpage says: The joined thread th must be in the joinable state: it

[Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-14 Thread Melchior FRANZ
Unfortunately, reverting the recent changes (that caused the thread to be created with detached state) wasn't enough to fix the problem. The strange thing is, that the return value that triggers assert() is 35, or EAGAIN (Linux). This makes no sense. It's neither described on the pthread_join

[Flightgear-devel] Re: [BUG] environemnt_ctrl.cxx: exception triggers SGThread assert()

2005-11-14 Thread Melchior FRANZ
* Melchior FRANZ -- Monday 14 November 2005 22:29: $ fgfs --aircraft=ufo --prop:/environment/params/metar-max-age-min=1 --log-level=warn I forgot --enable-real-weather-fetch. m. ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org