[Top][All Lists]

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

Re: [bug-gnuastro] make gnuastro crashes

From: Mohammad Akhlaghi
Subject: Re: [bug-gnuastro] make gnuastro crashes
Date: Thu, 1 Dec 2016 15:30:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

Hi Christopher,

Thanks for reporting this crash.

`fffree' is CFITSIO's internal name for the `fits_free_memory' function:

(last line in the page.)

In Gnuastro, its used in two occasions to free the header keyword strings that CFITSIO allocated (as recommended by CFITSIO).

So for some reason, while building the programs, the linker is unable to link with CFITSIO. Arithmetic is the first Gnuastro program to be built (after the libraries are built), so this issue isn't unique to Arithmetic and will come up in all the programs that use FITS keywords (for example if you run `make -k').

I hadn't encountered this problem before, because the `./configure' scripts tries linking with CFITSIO which has passed on your system.

Just as a short test, could you try opening Gnuastro's `configure' script in a text editor and changing all instances of `ffopen' (the CFITSIO function that is tested at configure time) to `fffree' and re-running `./configure'?

The result of this test should be helpful in finding a solution.

Just as a side-note, CFITSIO has some configure time options that can you can greatly benefit from when using Gnuastro (for example file reentrancy to open a file simultaneously on multiple threads), They are described in the Gnuastro manual:



reply via email to

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