Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: 2 April 2013

URL: http://cxc.harvard.edu/ciao/bugs/dmsort.html

Bugs: dmsort


Bugs fixed in CIAO 4.5

The following is a list of bugs that were fixed in the CIAO 4.5 software release.

Sorting string values  (14 Sep 2012)

dmsort can crash if sorting on a string column with duplicate values if a secondary sort criteria is used. For example

% cat sort.dat
#type   count_rate
star    1.0
star    1.3
pulsar  1.5
agn     0.4
% dmsort sort.dat sort.fits "type,count_rate" clob+
*** glibc detected *** dmsort: double free or corruption (fasttop): 0x000000000d73dc40 ***
======= Backtrace: =========
/lib64/libc.so.6[0x35126711df]
/lib64/libc.so.6(cfree+0x4b)[0x351267163b]
...

The exact screen output will likely be different. The bug is triggered because the 'type' column has two "star" values which causes the secondary sort on "count_rate" to be triggered.

Sorting on just the string column works as expected.


Last modified: 2 April 2013
CXC logo

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2012. All rights reserved.