bugGNU Astronomy Utilities - Bugs: bug #61462, Crash on FITS binary table colums...

 
 

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

bug #61462: Crash on FITS binary table colums with repeat of 0

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Wed 10 Nov 2021 05:46:44 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Mon 15 Nov 2021 01:48:27 AM UTC, comment #1: 

This bug has been fixed Commit 68823e3fcd.

The most recent tarball and its corresponding version of the book (that now contain this fix) can be downloaded from the links below:

https://akhlaghi.org/gnuastro.pdf
https://akhlaghi.org/gnuastro-latest.tar.lz

In particular, see the "Matching algorithms" section of the book for a description of the new k-d tree based matching features (in the table-of-contents, you can click on the page number to go to the respective page).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 10 Nov 2021 05:46:44 PM UTC, original submission:  

As of Gnuastro 0.16, when a FITS binary table column has a "repeat" factor of 0 (in the respective 'TFORM' column, which means that this column has no contents, for example '0A' for a string column), Gnuastro crashes with the following CFITSIO error:


FITSIO status = 308: bad first element number
First element to write is too large: 1; max allowed value is 0


This crash happened because until now, Gnuastro was assuming that all columns have at least one element! We hadn't accounted for having a zero-element column!

I am busy writing an implementing a check so in such cases, blank values are replaced for the respective column and CFITSIO isn't called at all.

This bug was reported by Andres Del Pino Molina, thanks to data from the J-PLUS data archives (for the 'skymapper2' column of J-PLUS DR2).

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

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

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-15 makhlaghi StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-11-10 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code