Bug 1094358 - identify -units (without option value) dumps core
Summary: identify -units (without option value) dumps core
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: ImageMagick
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Alexeev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1169822 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-05 13:54 UTC by Joachim Backes
Modified: 2015-03-09 19:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-06 08:34:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.