Bug 1094358

Summary: identify -units (without option value) dumps core
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: ImageMagickAssignee: Pavel Alexeev <pahan>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: darthludi, joachim.backes, nmurray, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-06 08:34:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joachim Backes 2014-05-05 13:54:12 UTC
Description of problem:
Running the command "identify -units" without type dumps core

Version-Release number of selected component (if applicable):

ImageMagick-6.8.6.3-4.fc20.x86_64
How reproducible:
always

Steps to Reproduce:
1.see description
2.
3.

Actual results:
identify -units
Aborted (core dumped)


Expected results:
understandable error message

Additional info:

Comment 1 Pavel Alexeev 2014-05-05 21:05:20 UTC
I can't reproduce it:
$ identify -units Bohol_Tarsier.jpg
identify: option requires an argument `-units' @ error/identify.c/IdentifyImageCommand/839.

It segfaulted only if I run it even without image filename like "identify -units". But what the intention of them? It absurd by nature, is not?

Comment 2 Joachim Backes 2014-05-06 05:00:41 UTC
(In reply to Pavel Alexeev (aka Pahan-Hubbitus) from comment #1)
> I can't reproduce it:
> $ identify -units Bohol_Tarsier.jpg
> identify: option requires an argument `-units' @
> error/identify.c/IdentifyImageCommand/839.
> 
> It segfaulted only if I run it even without image filename like "identify
> -units". But what the intention of them? It absurd by nature, is not?

I agree that's absurd, but I simply forgot the -units value. Independent from this, a well programmed tool should never dump core if an operating error happens.

Comment 3 Pavel Alexeev 2014-05-06 08:34:48 UTC
Thank you for the bugreport and willing make free software better.

Reported upstream: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=25542

Comment 4 Pavel Alexeev 2015-03-09 19:37:50 UTC
*** Bug 1169822 has been marked as a duplicate of this bug. ***