Bug #79

Glue shutdown race condition

Added by jbk about 1 month ago.

Status:New Start:07/12/2010
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Client
Target version:- Estimated time:4.00 hours

Description

Seems like there may be a race condition in the shutdown code, it was supposed to abort cleanly rather than throw out a major pile of errors. The reason is the same, though: BOINC told us to stop rendering

---------------------------
Exception caught: BOINC kindly asks us to exit
Status: 0
---------------------------
terminate called after throwing an instance of 'Exception'
SIGABRT: abort called
Stack trace (12 frames):
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu(boinc_catch_signal+0x65)[0x40ea35]
/lib/libpthread.so.0(+0xef60)[0x7f71a67c8f60]
/lib/libc.so.6(gsignal+0x35)[0x7f71a6209175]
/lib/libc.so.6(abort+0x180)[0x7f71a620bf80]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x46fa75]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x4633b6]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x4633e3]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x4634de]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x408280]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x40a34d]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f71a61f5c4d]
../../projects/www.renderfarm.fi/blender_4.77_x86_64-pc-linux-gnu[0x404ff9]

Relevant lines in the code:
glue.cpp:
57 if (worker!=NULL) worker->kill();
58 boinc_exit(e.getExitStatus());

Also available in: Atom PDF