Author Topic: 1.6.1 osx x86_64 hang when writing 32-bit fits file  (Read 3259 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
1.6.1 osx x86_64 hang when writing 32-bit fits file
« on: 2010 December 17 12:25:55 »
i didn't have the presence of mind to figure out why PI hung. i was too scared i was going to lose everything.

all i can say is that i attempted to save an image window as f32 fits, and PI reported a segmentation violation right after the file was written.
i then tried to overwrite the file by saving it a 2nd time, and PI hung.

i was able to attach with gdb and get it unstuck:

(gdb) attach 32300
Attaching to process 32300.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
0x00000001002b3e26 in pi::__DisposeFormatData ()
(gdb) return
Make selected stack frame return now? (y or n) y
#0  0x00000001002bb22b in pi::ImageWindow::Write ()
(gdb) cont
Continuing.

Program received signal SIGSTOP, Stopped (signal).
0x00000001002bb22b in pi::ImageWindow::Write ()
(gdb) cont
Continuing.

i should have tried to figure out exactly where in DisposeFormatData it was stuck, sorry about that.


Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: 1.6.1 osx x86_64 hang when writing 32-bit fits file
« Reply #1 on: 2010 December 27 11:48:09 »
Hi Rob,

Bravo! :)

__DisposeFormatData() is an internal routine to deallocate working data blocks created by file format support modules. I'll take a look to see if I find something suspicious. Looks like a sporadic error, not as a real bug, but please let me know if you see something similar in 1.6.9.

Thanks for reporting!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/