[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62204] Column arithmetic crashes when there are no rows
From: |
Mohammad Akhlaghi |
Subject: |
[bug #62204] Column arithmetic crashes when there are no rows |
Date: |
Sat, 19 Mar 2022 16:24:50 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62204>
Summary: Column arithmetic crashes when there are no rows
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Sat 19 Mar 2022 08:24:48 PM UTC
Category: Table
Severity: 3 - Normal
Item Group: Crash
Status: In Progress
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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 -'
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62204>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62204] Column arithmetic crashes when there are no rows,
Mohammad Akhlaghi <=