taskGNU Astronomy Utilities - Tasks: task #16379, Handling errors in Gnuastro...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #16379: Handling errors in Gnuastro Dependencies.

Submitter:  Labib Asari <labeeb7z>
Submitted:  Tue 13 Jun 2023 03:25:52 PM UTC
   
 
Should Start On:  Tue 13 Jun 2023 12:00:00 AM UTC Should be Finished on:  Tue 13 Jun 2023 12:00:00 AM UTC
Category:  Development Priority:  5 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Effort:  0.00

Wed 14 Jun 2023 02:28:58 PM UTC, comment #1: 

Thanks for raising this point Labib.

For completeness, here is how you can reproduce this problem on the command-line:


$ astcosmiccal --olambda=1 --omatter=0 --oradiation=0 -z1 --age


All Gnuastro dependencies have error-handling features. For example, here is the description in GSL. We should definitely account the errors in our dependencies while defining/completing Gnuastro's error reporting features.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 13 Jun 2023 03:25:52 PM UTC, original submission:  

The error handling mechanism of Gnuastro is being updated to remove the error(EXIT_FAILURE...) and store and report all the errors. This makes sure the program does not abort whenever an error occurs.

However we must also update the error handling that is done is the dependencies of Gnuastro, and make sure the errors are reported without the program aborting directly.

For example : Consider the GSL dependency.

When the gal_cosmology_age function is called with the parameters z=0.1, H0=0.3, o_lambda_0=1, o_matter_0=0, o_radiation_0=0

gal_cosmology_age(0.1, 0.3, 1, 0, 0)

the GSL library crashes and aborts with the error message :


gsl: qags.c:543: ERROR: number of iterations was insufficient
Default GSL error handler invoked.


This is because the default behavior of the GSL error handler is to print a short message and call abort().

To avoid this default behaviour in GSL (and in other dependencies), they should be configured and used approapriately.

Labib Asari <labeeb7z>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by labeeb7z (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code