gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #16379] Handling errors in Gnuastro Dependencies.


From: Labib Asari
Subject: [task #16379] Handling errors in Gnuastro Dependencies.
Date: Tue, 13 Jun 2023 11:25:54 -0400 (EDT)

URL:
  <https://savannah.gnu.org/task/?16379>

                 Summary: Handling errors in Gnuastro Dependencies.
                   Group: GNU Astronomy Utilities
               Submitter: 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
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 13 Jun 2023 03:25:52 PM UTC By: Labib Asari <labeeb7z>
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. 







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16379>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]