bugGNU Astronomy Utilities - Bugs: bug #62204, Column arithmetic crashes when...

 
 

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

bug #62204: Column arithmetic crashes when there are no rows

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Sat 19 Mar 2022 08:24:48 PM UTC
   
 
Category:  Table Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Sat 19 Mar 2022 09:49:30 PM UTC, comment #1: 

This bug has been fixed in Commit 44e27da23669f. See the commit description for the cause and solution.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Sat 19 Mar 2022 08:24:48 PM UTC, original submission:  

When Table's column arithmetic is run on a table without any rows, it crashes with a segmentation fault. The problem can be reproduced with the commands in the P.S.

It is generally fine for a table to have no rows, so it is expected that when the input table has no rows, the output of column arithmetic should also have no rows.

This bug (and the scripts to reproduce it) was reported by Zohre Ghaffari.

P.S. Commands to reproduce this bug:


echo "# Column 1: col-1"  > $test.txt
echo "# Column 2: col-2" >> $test.txt
echo "# Column 3: col-3" >> $test.txt

# This command works:
asttable $test.txt -i

# But this crashes with segmentation fault
asttable $test.txt -c2 -c'arith $2 $1 -'


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
    2022-03-19 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2022-03-19 makhlaghi Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code