Well, i added few fprintfs just after init diagnostics, boinc init call and 
so on.
there is nothing in stderr again. Probably it means very first boinc api 
call, init diagnostic, failed and caused exit(1) call. Any thoughts why it 
could fail?

----- Original Message ----- 
From: "Raistmer" <[email protected]>
To: "Rom Walton" <[email protected]>; <[email protected]>
Sent: Tuesday, July 20, 2010 12:12 PM
Subject: Re: [boinc_dev] Incorrect function when running under BOINC


> Thanks!
> What I found:
>
> 0)
>    if (err != CL_SUCCESS) {
>        std::cerr << "ERROR: " <<  name << " (" << err << ")" << std::endl;
>        exit(1);
>    }
> Not th case, no "ERROR" in stderr.
> 1)
>      fprintf(stderr, "bad arg: %s\n", argv[i]);
>      usage();
>      exit(1);
> Not the case cause no "bad arg" in stderr
>
> 2)
>    PowerSpectrum = (float*) calloc_a(NumPointsInChunk, sizeof(float),
> MEM_ALIGN);
>    if (PowerSpectrum == NULL) {
>      printf("Could not allocate Power Spectrum array in
> v_BaseLineSmooth()\n");
>      exit(1);
>    }
>
> can't say if  it's what I looking for cause additional output goes to 
> stdout
> instead of stderr, need to rebuild to check...
>
> But if it's very place, why buffer allocation fails under BOINC while it
> goes OK w/o it?
>
> ----- Original Message ----- 
> From: "Rom Walton" <[email protected]>
> To: "Raistmer" <[email protected]>; <[email protected]>
> Sent: Tuesday, July 20, 2010 11:47 AM
> Subject: RE: [boinc_dev] Incorrect function when running under BOINC
>
>
> Search the source code of the app for exit(1) or exit(EXIT_FAILURE)
>
> ----- Rom
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Raistmer
> Sent: Tuesday, July 20, 2010 3:41 AM
> To: [email protected]
> Subject: [boinc_dev] Incorrect function when running under BOINC
>
> When running offline app works OK, but being launched by BOINC it fails
> with
> "incorrect function exit code 0x1"
> Stderr:
> <stderr_out>
> <![CDATA[
> <message>
> =ooo?y?  ??yu?o . (0x1) - exit code 1 (0x1)
> </message>
> ]]>
> </stderr_out>
>
> No additional info available.
> Maybe there are some known possible reasons of such behavior? Someone
> encountered such situation?
>
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.
>
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.
> 

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to