JobArena destructor hangs on exit with MinGW

classic Classic list List threaded Threaded
2 messages Options
jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

JobArena destructor hangs on exit with MinGW

My osgEarth 3.0-based application hangs during shutdown in the destructor for JobArena on MinGW but not Linux. I am seeing the same behavior when I run an osgEarth example program in the debugger. I used osgEarth_annotationd.exe in GDB to verify it hangs at the same location.

The _block member of JobArena is likely causing the issue since the ~condition_variable_any() function never returns.  It looks like that the ~condition_variable_any() function is set to the default destructor in MinGW.  The gcc version is 8.2.1 and the target is x86_64-w64-mingw32.

Has anyone else using osgEarth 3.0 with MinGW seen this problem?  

jeladi jeladi
Reply | Threaded
Open this post in threaded view
|

Re: JobArena destructor hangs on exit with MinGW

FYI - this occurs with osgEarth 3.1 as well when I attempt to run an example program.