bugGNU Octave - Bugs: bug #30974, __magick_read__.cc only...

 
 

bug #30974: __magick_read__.cc only initializes GraphicsMagick in __magick_read__

Submitted by:  Jonathan Thomson <jthomson>
Submitted on:  Mon 06 Sep 2010 09:07:47 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Jonathan ThomsonOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 07 Sep 2010 10:42:04 AM UTC, comment #1:

Fixed by
http://hg.savannah.gnu.org/hgweb/octave/rev/dc74ce93cfc4

thanks

Jaroslav Hajek <highegg>In charge of this item.
Mon 06 Sep 2010 09:07:47 AM UTC, original submission:

_magick_read_.cc only initializes GraphicsMagick in _magick_read_. If _magick_finfo_ or magick_write__ are called before _magick_read_ the following error is thrown by GraphicsMagick and Octave quits.

octave: magick/semaphore.c:525: LockSemaphoreInfo: Assertion `semaphore_info != (SemaphoreInfo ) ((void )0)' failed.
panic: Aborted -- stopping myself...
Aborted

Therefore a user cannot call imfinfo() or imwrite() before imread() without an error being thrown. The solution is for each function to check if GraphicsMagick has been initialized and if not then call InitializeMagick();

Jonathan Thomson <jthomson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #21394:  finfo_magick_initialize.patch added by jthomson (1KiB - application/octet-stream - Patch to call InitializeMagick in _magick_finfo_ and _magick_write_)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by highegg (Posted a comment)
  • -unavailable- added by jthomson (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 07 Sep 2010 10:42:04 AM UTChigheggStatusNone=>Fixed
      Assigned toNone=>highegg
      Open/ClosedOpen=>Closed
    Mon 06 Sep 2010 09:07:47 AM UTCjthomsonAttached File-=>Added finfo_magick_initialize.patch, #21394

    Back to the top


    Powered by Savane 3.1-cleanup1