Friday, October 27, 2006

SIGSEGV Running Standalone BOINC Application

Here is part of an email I sent to the boinc-projects mailing list:
I am beginning work on a BOINC project and have built and installed BOINC stable. It seems to work fine, attaching to projects and doing work. But, when I try to compile and run a BOINC app standalone I invariably get a seg. fault in diagnostics_init. This has happened both with Eric Myer's 'hello' program and with 'uppercase'. Running uppercase produces a stderr.txt with the following contents:
SIGSEGV: segmentation violationStack trace (9 frames):

Basically buf in MIOFILE is NULL, because because diagnostics_init has done an fopen and passed the results to MIOFILE::init_file. This sets f but not buf.
The response I received from Nicolas Alvarez was:
I'm not sure why this happens in standalone mode, but try creating an
empty file 'init_data.xml' and running app again.
This seemed to get me past this first problem.

No comments: