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 UTCShould be Finished on: Thu 01 Dec 2016 03:00:00 PM UTC
Category: DevelopmentPriority: 5 - Normal
Item Group: CrashStatus: Postponed
Privacy: PublicPercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Effort: 0.00

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
  • -unavailable- added by makhlaghi (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1