bugGNU Octave - Bugs: bug #31467, imwrite crashes if there was no...

 
 

bug #31467: imwrite crashes if there was no imread before:

Submitted by:  Christoph Müller <muellercrtp>
Submitted on:  Tue 26 Oct 2010 01:49:45 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.4Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 27 Oct 2010 07:50:16 AM UTC, comment #1:

I can't duplicate this problem with a copy of Octave built from the current development sources, so I think it has been fixed.

John W. Eaton <jwe>
Project Administrator
Tue 26 Oct 2010 01:49:45 PM UTC, original submission:

A crash occures if I try to write an image to the harddisk using imwrite:

----------------------------------------------------------------
$ octave
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.

< rest of copyright disclaimer snipped...>

octave:1> imwrite(uint16(zeros(100,100,3)), "test.tiff")
assertion "semaphore_info != (SemaphoreInfo *) NULL" failed: file "/pub/cygports
/graphicksmagick/GraphicsMagick-1.3.12-1/src/GraphicsMagick-1.3.12/magick/semaph
ore.c", line 525, function: LockSemaphoreInfo
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Aborted (core dumped)

----------------------------------------------------------------

If there was an imread before everything is fine:

octave:1> imread("example.tiff");
octave:2> imwrite(uint16(zeros(100,100,3)), "test.tiff")
octave:3>

The same behavior occures in an freshly installed ubuntu linux - also octave 3.2.4.

The bug might be related to this topic:
https://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-January/014891.html

Christoph Müller <muellercrtp>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21831:  octave-3.2.4.exe.stackdump added by muellercrtp (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by muellercrtp (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Oct 2010 07:50:16 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 26 Oct 2010 01:49:45 PM UTCmuellercrtpAttached File-=>Added octave-3.2.4.exe.stackdump, #21831

    Back to the top


    Powered by Savane 3.1-cleanup1