|
From: | Jonathan Thomson |
Subject: | [Octave-bug-tracker] [bug #30974] __magick_read__.cc only initializes GraphicsMagick in __magick_read__ |
Date: | Mon, 06 Sep 2010 09:07:48 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Safari/531.2+ Debian/squeeze (2.30.2-3) Epiphany/2.30.2 |
URL: <http://savannah.gnu.org/bugs/?30974> Summary: __magick_read__.cc only initializes GraphicsMagick in __magick_read__ Project: GNU Octave Submitted by: jthomson Submitted on: Mon 06 Sep 2010 09:07:47 AM GMT Category: Interpreter Severity: 3 - Normal Item Group: Crash Status: None Assigned to: None Originator Name: Jonathan Thomson Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.2.4 Operating System: GNU/Linux _______________________________________________________ Details: __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(); _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 06 Sep 2010 09:07:47 AM GMT Name: finfo_magick_initialize.patch Size: 1kB By: jthomson Patch to call InitializeMagick in __magick_finfo__ and __magick_write__ <http://savannah.gnu.org/bugs/download.php?file_id=21394> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30974> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |