Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250830 - media-gfx/eog-2.24.2 sigbuses on sparc when opening a PNG file with metadata
Summary: media-gfx/eog-2.24.2 sigbuses on sparc when opening a PNG file with metadata
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Sparc Porters
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: 242812
  Show dependency tree
 
Reported: 2008-12-13 14:32 UTC by Raúl Porcel (RETIRED)
Modified: 2008-12-14 21:55 UTC (History)
1 user (show)

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


Attachments
backtrace.log (backtrace.log,1.91 KB, text/plain)
2008-12-13 14:35 UTC, Raúl Porcel (RETIRED)
Details
eog-sigbus.patch (eog-sigbus.patch,502 bytes, patch)
2008-12-14 11:40 UTC, Friedrich Oslage (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl Porcel (RETIRED) gentoo-dev 2008-12-13 14:32:42 UTC
$subj, i'll attach the backtrace.

with media-gfx/eog-2.22.3-r1 i can open a PNG file with XMP metadata(2.22.3 doesn't have XMP support), and it doesn't sigbus.
with media-gfx/eog-2.24.2 if i open a PNG file with XMP metadata(with xmp USE-flag), it sigbuses. Same without xmp USE-flag.
It doesn't sigbus with another kind of graphic file(JPG,GIF) with XMP metadata. It doesn't sigbus either with a normal PNG file.

I think its related to eog itself, because nautilus can display the PNG file thumbnail with XMP support, and it can read its metadata without sigbusing.

Portage 2.1.4.5 (default/linux/sparc/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r2 sparc64)
=================================================================
System uname: 2.6.26-gentoo-r2 sparc64 sun4v
Timestamp of tree: Sat, 13 Dec 2008 03:01:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.osuosl.org/pub/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j33"
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"
SYNC="rsync://raptor.gentoo.org/gentoo-portage"
USE="X acl berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gcc64 gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg mad midi mikmod mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session sparc spell spl ssl startup-nfication svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xv zlib" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-12-13 14:35:36 UTC
Created attachment 175195 [details]
backtrace.log
Comment 2 Friedrich Oslage (RETIRED) gentoo-dev 2008-12-14 11:40:34 UTC
Created attachment 175241 [details, diff]
eog-sigbus.patch

This patch fixes it. xmp_chunk is aligned by 4 so doing +18 doesn't work(+16 or +20 would work).

But I'm woundering why they want to check if the string is terminated by 5 \0's. Usually one \0 is enought ;)
Comment 3 Gilles Dartiguelongue gentoo-dev 2008-12-14 15:28:27 UTC
doh, bad memory manipulation, thanks for the patch, will include it asap.
Comment 4 Gilles Dartiguelongue gentoo-dev 2008-12-14 21:55:38 UTC
commited, thanks for reporting and patching.