I am using images module in casacore (images.image(imagename)). It is crashing with the following error:
free(): invalid pointer
Fatal Python error: Aborted
Aborted (core dumped)
On a deep check, it is pointing towards the images module in casacore. I am using a fits image and this module seems to work in ipython, but is not running in a script.