Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248462 - media-gfx/imagemagick-6.4.5.7-r1 segfaults on use of -polaroid
Summary: media-gfx/imagemagick-6.4.5.7-r1 segfaults on use of -polaroid
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL: http://www.imagemagick.org/discourse-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 20:27 UTC by Benjamin Hodgetts
Modified: 2008-12-21 08:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Crashlog (imagemagick-crash.log,15.92 KB, text/plain)
2008-11-28 19:35 UTC, Benjamin Hodgetts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Hodgetts 2008-11-23 20:27:54 UTC
This happens on both my x86 server and my amd64 desktop, when you try and use convert with the "-polaroid" option or the PHP plugin imagick which uses Image Magick to use Polaroid through that then it will fail. From the terminal you'll get a segfault and via PHP you'll get a confused PHP error due to the app itself having broken.

ImageMagick seems fine for everything else, it is specifically the use of the -polaroid switch which causes it to crash.

Reproducible: Always

Steps to Reproduce:
1. Run "convert 1.jpg -polaroid 10 1.png"
2. See segfault

Actual Results:  
Segfault or "glibc free ********"

Expected Results:  
Should have returned to the terminal without any output with the 1.png file now existing with a polaroid effect.

Desktop emerge info:

WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc14 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-glibc2.2.5
Timestamp of tree: Sun, 23 Nov 2008 14:05:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi adplug alsa amd64 amr apm applet archive ares aspell async audacious audio avahi bash-completion berkdb blender-game bluetooth bonjour branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr cdrom chardet cjk cli cracklib crypt cups curl daap dbus dga disk-partition dri dts dv dvd dvdr dvdread dvi eds emboss enca encode evo exif expat fam fat ffmpeg firefox flac fmod fontconfig fortran fpx ftp fuse gadu gd gdbm gedit geoip gif gimp git glib glitz glut gnome gnome-keyring gnutls gphoto2 gpm grammar graphviz groupwise gsf gsm gstreamer gtk guile hal hdri hfs howl-compat iconv icq icu id3 id3tag ieee1394 imagemagick imap inkjar ipod ipv6 irc isdnlog ithreads java jbig jfs jingle jit jpeg jpeg2k kerberos kqemu krb4 ladspa lame lcms ldap libnotify libsamplerate live lua lzo mad mdnsresponder-compat meanwhile midi mikmod mmap mmx mmxext mng modplug mp2 mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz nautilus ncurses nemesi network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs nvtv ogg openal openexr opengl openmp pam pcre pda pdf perl ping png ppds pppd prediction python qq qt3support qt4 quicktime radio radius rar raw readline reflection reiser4 reiserfs rle rpm rtc samba sasl schroedinger scrobbler sdl sdl-sound session silc smp sndfile snmp soundtouch speex spell spl sqlite srt sse sse2 sse3 ssh ssl ssse3 startup-notification subversion svg symlink sysfs tagwriting tcl tcpd teletext tga theora threads tiff tracker truetype tta twolame unicode upnp ups usb utils v4l v4l2 vamp vcd vivox vorbis wavpack wma wmf x264 xfs xft xine xml xmp xorg xpm xulrunner xv xvid xvmc zephyr zeroconf zlib" ALSA_CARDS="x-fi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Benjamin Hodgetts 2008-11-25 16:35:13 UTC
Tried downgrading to media-gfx/imagemagick-6.4.4.6-r1 on my server and that version works fine, looks like it's only an issue with the new version.
Comment 2 Markus Meier gentoo-dev 2008-11-28 17:43:50 UTC
works for me (at least on x86):

$ convert foo.jpg -polaroid 10 test.png
$ qlist -Iv imagemagick
media-gfx/imagemagick-6.4.5.7-r1

does it also segfault if you change the output-filetype (like jpg/bmp) and/or the input file-type?
it would also be very useful if you could debug this problem, as described in http://www.gentoo.org/doc/en/bugzilla-howto.xml

thanks.
Comment 3 Benjamin Hodgetts 2008-11-28 19:35:11 UTC
Created attachment 173696 [details]
Crashlog

Seems to crash one of three ways (on both machines still, so it's not a hardware fault).

100% reproducable, almost seems to do the three alternate crashes in turn (does one, then the next, then the next, then back to the first one, etc).

Attached a "run" and "bt" log of all three types of crashes with -ggdb -g and nostrip.
Comment 4 Markus Meier gentoo-dev 2008-11-29 07:30:53 UTC
thanks, reported upstream.
Comment 5 Markus Meier gentoo-dev 2008-12-01 21:00:25 UTC
response from upstream:
> We cannot reproduce this problem with the latest release, 6.4.6-5. If you are unable to upgrade and require a patch against ImageMagick 6.4.5-7 let us know and we will post a patch for the problem here.

so, could you please try if the problem is solved in the 6.4.6-5 version?
you can copy the existing ebuild (imagemagick-6.4.5.7-r1.ebuild to imagemagick-6.4.6.5.ebuild), update the manifest with `ebuild imagemagick-6.4.6.5.ebuild manifest` and emerge it.