From 755e0971b54994adf48214f21c31aa09eba02634 Mon Sep 17 00:00:00 2001 From: Debian BOINC Maintainers Date: Wed, 15 Mar 2017 15:29:18 +0000 Subject: [PATCH] _worker_comments Gbp-Pq: Name 007_worker_comments.patch --- client/worker.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/worker.cpp b/client/worker.cpp index 7b16c1f..dd72f2c 100644 --- a/client/worker.cpp +++ b/client/worker.cpp @@ -130,7 +130,7 @@ static int read_wu_state() { fclose(f); if (retval) SETIERROR(retval,"from seti_parse_wu() in read_wu_state()"); } else { - char msg[1024]; + char msg[MAXPATHLEN+50]; sprintf(msg,"(%s) in read_wu_state() errno=%d\n",path.c_str(),errno); SETIERROR(FOPEN_FAILED,msg); } @@ -174,15 +174,19 @@ void worker() { #endif try { + fprintf(stderr,"I: worker() - common_init\n"); retval = common_init(); if (retval) SETIERROR(retval,"from common_init() in worker()"); + fprintf(stderr,"I: worker() - read_wu_state\n"); retval = read_wu_state(); if (retval) SETIERROR(retval,"from read_wu_state() in worker()"); + fprintf(stderr,"I: worker() - seti_do_work\n"); retval = seti_do_work(); if (retval) SETIERROR(retval,"from seti_do_work() in worker()"); + fprintf(stderr,"I: worker() - boinc_finish\n"); boinc_finish(retval); } catch (seti_error e) { @@ -200,6 +204,7 @@ void worker() { #endif exit(0); // an overflow is not an app error } else { + fprintf(stderr,"E: printing backtrace\n"); e.print(); #ifdef USE_MANUAL_CALLSTACK call_stack.exit(); -- 2.30.2