Opened 10 years ago

Closed 10 years ago

#213 closed defect (fixed)

Segmentation error - Duchamp

Reported by: srinivraghav@… Owned by: MatthewWhiting
Priority: low Milestone: Release-1.6
Component: FITS reader Version: 1.5
Severity: normal Keywords:
Cc: srinivraghav@…

Description

Hi

I have installed Duchamp 1.5 on my mac and I needed this to create an annotation file and measure flux values. I did not not use pgplot option while installing as for some reason it did not work in my mac.

Now I was able to generate an annotation file on a smaller FITS file. When I go to bigger/different FITS file, its failing with segmentation error.

Is it related to size of the FITS file because its working for one and not working for another?

Is there a fix for it?

Please find below the error message

Raghavs-MacBook-Pro:Duchamp-1.5 raghavsvasan$ Duchamp -p /usr/local/Duchamp-1.5/Duchampparambullet Opening image: /Users/raghavsvasan/Downloads/2240_2496no2184.fits

FITSIO status = 104: could not open the named file failed to find or open the following file: (ffopen) /Users/raghavsvasan/Downloads/2240_2496no2184.fits Segmentation fault: 11

Regards Raghav

Change History (3)

comment:1 Changed 10 years ago by MatthewWhiting

Milestone: Release-1.6
Status: newassigned

Dear Raghav,

It appears that the problem is that the file is just not being found. Are you certain you have the filename and path to the file correct? Or are the permissions set such that you can't read it?

It also appears that the error handling is not very good in this instance (an error should have been raised before the segmentation fault appeared..) I will fix that shortly and wrap it into an upcoming release.

Thanks, Matthew.

comment:2 Changed 10 years ago by MatthewWhiting

Milestone: Release-1.6Release-1.7
Priority: highlow

Hi Raghav,

I just wanted to check if this is still a problem. I'm going to release an updated version shortly, that will handle the type of error you identified a bit better (at least, Duchamp will finish before raising a segmentation fault).

Please let me know if there are any further problems.

Matt.

For future reference, the relevant change was made in [1374].

comment:3 Changed 10 years ago by MatthewWhiting

Milestone: Release-1.7Release-1.6
Resolution: fixed
Status: assignedclosed

Closing - original problem has been resolved.

Note: See TracTickets for help on using tickets.