[client source] Possible reason for coredump

Message boards : Number crunching : [client source] Possible reason for coredump
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile joe
Volunteer tester

Send message
Joined: 13 Mar 03
Posts: 112
Credit: 497,631
RAC: 0
Germany
Message 38846 - Posted: 21 Oct 2004, 16:55:58 UTC
Last modified: 21 Oct 2004, 16:56:20 UTC

I just found this in client_state.C, garbage_collect() :

if (wup->avp && wup->avp->had_failure(failnum))

I'm more familiar with C that with C++. In C, short circuit evaluation is an optional optimization - usually "on" by default but still optional.

So if avp doesn't exist it still might be curious about the return value of avp->had_failure()
ID: 38846 · Report as offensive
John McLeod VII
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jul 99
Posts: 24806
Credit: 790,712
RAC: 0
United States
Message 39341 - Posted: 23 Oct 2004, 4:00:10 UTC

In K&R C, short circuit is not optional, it is part of the language definition. Which compiler made that optional?


BOINC WIKI
ID: 39341 · Report as offensive
Profile joe
Volunteer tester

Send message
Joined: 13 Mar 03
Posts: 112
Credit: 497,631
RAC: 0
Germany
Message 39382 - Posted: 23 Oct 2004, 9:53:26 UTC - in response to Message 39341.  
Last modified: 24 Oct 2004, 8:12:51 UTC

> In K&R C, short circuit is not optional, it is part of the language
> definition. Which compiler made that optional?


I will try to find it out - it had to be switched off by an option or pragma, it was on by default of course. Might have been Watcom or Lattice where I saw that, not a *ix compiler I think.


edit: I don't have that old Lattice anymore, will check Watcom on Monday

edit2 : Stupid me *blush* I found where I had this option - it was TP for DOS (Pascal) - sorry for posting nonsense here :-/
ID: 39382 · Report as offensive
Profile joe
Volunteer tester

Send message
Joined: 13 Mar 03
Posts: 112
Credit: 497,631
RAC: 0
Germany
Message 39618 - Posted: 24 Oct 2004, 8:19:43 UTC - in response to Message 39481.  
Last modified: 24 Oct 2004, 8:24:24 UTC

> i just downloaded the source for the client
>
> ...
> fatal error C1083: Cannot open include file: 'std_fixes.h': No such file or
> directory
>
> downloaded file was
>
> seti_boinc-client-cvs-2004-10-23
> ...


I think this file needs to be taken from the BOINC core project and isn't part of the SETI project client.

http://boinc.berkeley.edu/source/nightly/
ID: 39618 · Report as offensive

Message boards : Number crunching : [client source] Possible reason for coredump


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.