Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#27644 - [imagemagick] segfault in Magick::coderInfoList with converseen if libwmf is not installed

Attached to Project: Community Packages
Opened by Benoit ebner (gatchan) - Tuesday, 20 December 2011, 19:27 GMT
Last edited by Giovanni Scafora (giovanni) - Friday, 30 December 2011, 00:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eric Belanger (Snowman)
Giovanni Scafora (giovanni)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



I install converseen. When I launch it, I have this error:
╭─benoit@benoit-hp ~
╰─➤ converseen
terminate called after throwing an instance of 'Magick::ErrorModule'
what(): Magick: unable to load module `/usr/lib/ImageMagick-6.7.4/modules-Q16/coders/': file not found @ error/module.c/OpenModule/1278
[1] 5830 abort converseen

I search for the load module. I found it:
╭─benoit@benoit-hp ~
╰─➤ ls /usr/lib/ImageMagick-6.7.4/modules-Q16/coders 134 ↵

Additional info:
version 0.4.7

Steps to reproduce:
Install converseen (pacman -S converseen)
type converseen in a terminal
This task depends upon

Closed by  Giovanni Scafora (giovanni)
Friday, 30 December 2011, 00:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in converseen-0.4.7-2
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 21 December 2011, 09:49 GMT
Unable to reproduce. Here converseen starts up just fine. x86_64.

converseen 0.4.7-1

I also notice that /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/ is owned by imagemagick, and that it exists here on my system.
Does it exist on yours?

Please try reinstalling imagemagick and doublecheck that you have enough disk space on all relevant partitions.
Also, please make sure all packages are up to date.
Comment by Benoit ebner (gatchan) - Wednesday, 21 December 2011, 10:37 GMT
I reinstall imagemagick and converseen and my system is fully up-to-date.
Here is my version:

sudo pacman -Qs imagemagick
An image viewing/manipulation program

sudo pacman -Qs converseen
local/converseen 0.4.7-1
The batch image converter and resizer

I have the file that cause the problem:
ls -l /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/wmf.*
-rwxr-xr-x 1 root root 1151 13 déc 18:40 /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/
-rwxr-xr-x 1 root root 10400 13 déc 18:40 /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/

And the free space is good:
df -h
Sys. fich. Taille Util. Dispo Uti% Monté sur
rootfs 29G 8,5G 19G 31% /
udev 10M 0 10M 0% /dev
/run 10M 468K 9,6M 5% /run
/dev/sda2 29G 8,5G 19G 31% /
shm 1,9G 240K 1,9G 1% /dev/shm
tmpfs 1,9G 40K 1,9G 1% /tmp
/dev/sda6 139G 78G 55G 59% /home
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 21 December 2011, 12:45 GMT
Do you have the same md5 sum?

md5sum /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/
9a9f217162f5596eed1d0984c7274cfc /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/

Perhaps a dependency is missing from the package?

Comment by Benoit ebner (gatchan) - Wednesday, 21 December 2011, 12:54 GMT
Yes, it's the same:
md5sum /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/
9a9f217162f5596eed1d0984c7274cfc /usr/lib/ImageMagick-6.7.4/modules-Q16/coders/
Comment by Benoit ebner (gatchan) - Wednesday, 21 December 2011, 13:30 GMT
I don't think the bug came from converseen it self. I download the source file and make it on my computer. The result is the same.
Comment by Eric Belanger (Snowman) - Wednesday, 21 December 2011, 16:18 GMT
converseen starts fine here.
Comment by Giovanni Scafora (giovanni) - Wednesday, 21 December 2011, 16:36 GMT
I cannot reproduce it.
converseen starts fine here.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 21 December 2011, 21:09 GMT
Have you tried reinstalling qt? (the other dependency, other than imagemagick, for converseen).

Could you please post the output from the following command on one of the pastebin sites out there?

strace -o /dev/stdout converseen | grep open

This could also be nice to see:
gdb converseen
(wait for segfault)
bt full
Comment by Benoit ebner (gatchan) - Friday, 23 December 2011, 08:15 GMT
Comment by Alexander F. Rødseth (xyproto) - Friday, 23 December 2011, 09:08 GMT
Thank you.

I see this from the strace output:
open("/usr/lib/", O_RDONLY) = -1 ENOENT (No such file or directory)

On my system, the output from strace looks like this:
open("/usr/lib/", O_RDONLY) = 7

Furthermore, /usr/lib/ is owned by the libwmf package.

Do you have libwmf installed? If installing it solves the problem, I believe libwmf should be added as a dependency for imagemagick, instead of an optional dependency.
Comment by Benoit ebner (gatchan) - Friday, 23 December 2011, 10:25 GMT
Yes, that solve the problem!

Thanks for this quick help!
Comment by Eric Belanger (Snowman) - Thursday, 29 December 2011, 22:37 GMT
If converseen doesn't start if libwmf isn't installed, then converseen should depend on libwmf.