Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270664 - media-gfx/ristretto-0.0.22 Keeps allocating memory when opening tiff file
Summary: media-gfx/ristretto-0.0.22 Keeps allocating memory when opening tiff file
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: XFCE Team
URL: http://bugzilla.xfce.org/show_bug.cgi...
Whiteboard: Upstream
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 07:09 UTC by Michiel
Modified: 2009-08-23 03:00 UTC (History)
0 users

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


Attachments
Backtrace (ristretto-bt.txt,3.07 KB, text/plain)
2009-05-21 07:12 UTC, Michiel
Details
First 500 KB of the tiff file that causes this (ristretto-debug.tiff,488.28 KB, application/octet-stream)
2009-05-26 21:09 UTC, Michiel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel 2009-05-21 07:09:39 UTC
When I open a certain 40 MB tiff file with ristretto it starts using all available memory very fast. The thumbnail does display fine though.

Reproducible: Always

Steps to Reproduce:
1. Open a big tiff file with ristretto
2. 
3.

Actual Results:  
Ristretto starts allocating memory indefinately it seems.

Expected Results:  
An image to display
Comment 1 Michiel 2009-05-21 07:12:53 UTC
Created attachment 192003 [details]
Backtrace
Comment 2 Michiel 2009-05-21 07:34:37 UTC
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.0
Timestamp of tree: Wed, 20 May 2009 20:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
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"
ARCH="x86"
AUTOCLEAN="yes"
BROWSER="/usr/bin/firefox"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -ggdb -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="Terminal"
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/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-O2 -ggdb -march=pentium4 -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-3T70fgc2eE,guid=c172d23aeeffebab04b24ad44a14d7ef"
DESKTOP_SESSION="xfce"
DESKTOP_STARTUP_ID=""
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="buildsyspkg ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox usersync"
FETCHCOMMAND="/usr/bin/wget --limit-rate=100k --progress=bar:force -t 5 -T 60 -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="xfce"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo"
GLADE_CATALOG_PATH=":"
GLADE_MODULE_PATH=":"
GLADE_PIXMAP_PATH=":"
GTK_PATH=":/usr/lib/gtk-2.0"
HOME="/home/boy"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.1.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info"
INPUT_DEVICES="evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ADDRESS="nl_NL.utf8"
LC_ALL=""
LC_COLLATE="nl_NL.utf8"
LC_CTYPE="nl_NL.utf8"
LC_IDENTIFICATION="nl_NL.utf8"
LC_MEASUREMENT="nl_NL.utf8"
LC_MESSAGES="en_US.utf8"
LC_MONETARY="nl_NL.utf8"
LC_NAME="nl_NL.utf8"
LC_NUMERIC="nl_NL.utf8"
LC_PAPER="nl_NL.utf8"
LC_TELEPHONE="nl_NL.utf8"
LC_TIME="nl_NL.utf8"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBGLADE_MODULE_PATH=":/usr/lib/libglade/2.0"
LINGUAS="en_US"
LOGNAME="boy"
LS_COLORS="rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.19.1/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.1.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man:/etc/java-config/system-vm/man/"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NOCOLOR="true"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3:/usr/games/bin:/home/boy/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa amd64-fbsd sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error info log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="19"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnash-cvs"
PRELINK_PATH_MASK="/usr/lib/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/boy"
RESUMECOMMAND="/usr/bin/wget --limit-rate=100k --progress=bar:force --continue -t 5 -T 60 -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.3"
RPMDIR="/usr/portage/rpm"
SESSION_MANAGER="local/anthrax:@/tmp/.ICE-unix/3661,unix/anthrax:/tmp/.ICE-unix/3661"
SHELL="/bin/bash"
SHLVL="2"
SSH_AGENT_PID="3653"
SSH_AUTH_SOCK="/tmp/ssh-pWQZsf3628/agent.3628"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X a52 aac aalib acl acpi adns aften alsa audiofile avahi berkdb branding bzip2 cairo caps cddb cdinstall cdparanoia cli consolekit crypt cups curl dbus dirac djvu dri dts dvd encode exif expat faac faad fam fbcon ffmpeg fftw flac fontconfig fortran gd gdbm gif gmp gnutls gpm gstreamer gtk hal hardened iconv icu id3 idea idn imagemagick imap imlib isdnlog java jpeg jpeg2k lame lcms libcaca libffi libnotify libsamplerate lm_sensors lzma lzo mad mbox midi mmap mmx mp3 mpeg mplayer mtp mudflap musepack ncurses nls nntp nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl pic plotutils png policykit ppds pppd pulseaudio python qdbm quicktime readline reflection schroedinger sdl session smi smime smp sndfile sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora threads tiff truetype twolame unicode vorbis wavpack webkit win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xfce xml xorg xpm xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="sis radeon"
USER="boy"
USERLAND="GNU"
USERNAME="boy"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="sis radeon"
WINDOWID="46137348"
WINDOWPATH="7"
XAUTHORITY="/home/boy/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm:/usr/share"
XDG_SESSION_COOKIE="24328b9b39044ddc1bffd98c49e8baef-1242879983.495569-1994350759"
XSESSION="Xfce4"
_="/usr/bin/emerge"
Comment 3 Michiel 2009-05-21 07:42:15 UTC
Running "valgrind --tool=memcheck --leak-check=full ristretto"
And then opening the image, gives this output:

==31404== LEAK SUMMARY:
==31404==    definitely lost: 3,234 bytes in 13 blocks.
==31404==    indirectly lost: 10,068 bytes in 505 blocks.
==31404==      possibly lost: 197,247 bytes in 236 blocks.
==31404==    still reachable: 1,076,691,176 bytes in 29,200 blocks.
==31404==         suppressed: 0 bytes in 0 blocks.
==31404== Reachable blocks (those to which a pointer was found) are not shown.
==31404== To see them, rerun with: --leak-check=full --show-reachable=yes
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-05-26 19:40:07 UTC
Can you confirm that 0.0.21 does not have this flaw?
Comment 5 Michiel 2009-05-26 20:29:09 UTC
It's the same with 0.0.21
Comment 6 Michiel 2009-05-26 21:09:53 UTC
Created attachment 192542 [details]
First 500 KB of the tiff file that causes this

Here's the first 500 KB of the file that causes this. Opening this has the same effect as opening the entire file, only it's a bit smaller.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-06-07 17:48:13 UTC
Sent upstream where it belongs. We can't do much about it, as packagers.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-08-23 03:00:57 UTC
Upstream says that the image is bad itself. Please follow the status on http://bugzilla.xfce.org/show_bug.cgi?id=5434