taskGNU Astronomy Utilities - Tasks: task #14258, Configure option to run tests with...


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

task #14258: Configure option to run tests with Valgrind

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Thu 01 Dec 2016 03:25:35 PM UTC  
Should Start On:  Thu 01 Dec 2016 03:00:00 PM UTC Should be Finished on:  Thu 01 Dec 2016 03:00:00 PM UTC
Category:  Development Priority:  5 - Normal
Item Group:  Crash Status:  Postponed
Privacy:  Public Percent Complete:  90%
Assigned to:  None Open/Closed:  Open
Effort:  0.00

Wed 08 Aug 2018 09:20:07 PM UTC, comment #1:

The basic premise of this task has been applied and pushed to the main repo.

However, the leak-check feature isn't added because it isn't critical to the failure of a test. Maybe later we can add another option (or a value to this option) so a more strict Valgrind test to be done with `--leak-check'.

Mohammad Akhlaghi <makhlaghi>
Project Administrator
Thu 01 Dec 2016 03:25:35 PM UTC, original submission:

When a segmentation fault error (or similar opaque errors) are reported, it is really hard to find the cause of the problem on the user's system. The best way is use Valgrind, which gives a very nice report of exactly which function caused the memory failure.

Currently the user has to take these steps:

1. Install Valgrind (available in most package managers).

2. Configure Gnuastro while adding the following options for no shared libraries, with debugging flags, and with no optimization so Valgrind can report the status accurately as shown below:

(This is also described in the manual.)

3. Add `valgrind --leak-check=yes' to the start of the command in the script that produces the memory error.

To facilitate these steps for the user, we can add an option to configure like `--enable-valgrind-checks'. This option will cause `./configure' to check if Valgrind is installed, will add those configure options, and will run all the tests with valgrind appended to the start of the command.

If you can work on this put a comment ;-), I am too busy right now...

Mohammad Akhlaghi <makhlaghi>
Project Administrator


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 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-08 makhlaghi Percent Complete0% => 90%

    Back to the top

    Powered by Savane 3.4