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

 
 

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

Submitter:  Jonathan Thomson <jthomson>
Submitted:  Mon 06 Sep 2010 09:07:47 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  highegg
Originator Name:  Jonathan Thomson Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 07 Sep 2010 10:42:04 AM UTC, comment #1: 
Jaroslav Hajek <highegg>
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 Files:
   
   
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
  • -email is unavailable- added by highegg (Posted a comment)
  • -email is unavailable- added by jthomson (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-07 highegg StatusNone Fixed
        Assigned toNone highegg
        Open/ClosedOpen Closed
    2010-09-06 jthomson Attached File- Added finfo_magick_initialize.patch, #21394

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code