Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218361 - texmf-update - leaks memory
Summary: texmf-update - leaks memory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-19 04:33 UTC by Joseph
Modified: 2008-04-20 17:32 UTC (History)
0 users

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


Attachments
fmtutil-sys --all (fmtutil-sys--all.txt,24.83 KB, text/plain)
2008-04-20 15:24 UTC, Joseph
Details
fmtutil-sys--all with "xml" flag (fmtutil-sys--all2.txt,27.75 KB, text/plain)
2008-04-20 17:32 UTC, Joseph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph 2008-04-19 04:33:18 UTC
When I tried to use "texmf-update" in 5min. my system was out of memory; 
I couldn't even stop that process.

#Joseph

Reproducible: Always




Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 AMD Athlon(TM) XP 2500+
Timestamp of tree: Fri, 11 Apr 2008 22:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibidio.org/pub/linux/distributions/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org/ http://mirror.datapipe.net/gentoo http://gentoo.binarycompass.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US"
MAKEOPTS="-j4"
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"
SYNC="rsync://10.0.0.101/gentoo-portage"
USE="X acl acpi alsa apache2 arts berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox foomaticdb fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection scanner sdl session spell spl ssl svg tcpd tiff truetype type1 unicode usb vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alexis Ballier gentoo-dev 2008-04-19 15:27:09 UTC
well.. you didnt provide much information...

what tex distribution are you using ? tetex, texlive, etc. ?
whats the output of texmf-update ?
whats the process running ?
can you try running each command run by texmf-update separately ?
Comment 2 Joseph 2008-04-19 17:22:37 UTC
I'm upgrading to texlive from tetex.
I have upgraded my System1 with profile: x86/2006.1 and everything went OK.
When I tried to upgrade my Syste2 with profile: x86/2007.0/desktop (which has "xml" flag enabled") texlive build with "xml" and prevented inclusion of "pdftetex.fmt" file in directory: 
/var/lib/texmf/web2c/pdftex/
Without this file the sql-ldeger will not print to pdf file.

I was trying to unmerge texlive (individual packages) and re-emerging it but texlive always build with "xml" flag: when I tried to run: texmf-update I got:
Configuring TeXLive ...
Generating /etc/texmf/web2c/texmf.cnf from /etc/texmf/texmf.d ...
Generating /etc/texmf/web2c/fmtutil.cnf from /etc/texmf/fmtutil.d ...
Generating /etc/texmf/web2c/updmap.cfg from /etc/texmf/updmap.d ...
Generating /etc/texmf/dvips/config/config.ps from /etc/texmf/dvips.d ...
Generating ls-R files
Generating language.dat file
Generating format files ...

at this point the processes starting to add up and eating the memory till it runs out.
I rebuild the texlive without 'xml" flag and "texmf-update" runs fine.

At this point I don't know what when wrong; I did not get any ebuild error and everything compiled fine each and every time.

#Joseph
Comment 3 Alexis Ballier gentoo-dev 2008-04-20 00:28:04 UTC
can you tell me whats happening when you run (as root): fmtutil-sys --all
Comment 4 Joseph 2008-04-20 15:24:17 UTC
Created attachment 150404 [details]
fmtutil-sys --all 

I have the texfive recompiled without the "xml" flag:
the output of the fmtutil-sys --all attached.

#Joseph
Comment 5 Alexis Ballier gentoo-dev 2008-04-20 15:34:41 UTC
ok; but what does happen if you try to install texlive-htmlxml ?
Does this get stuck ?

I'd like to have an output of a "crashing" fmtutil-sys --all as it probably gets into an infinite loop and I'd like to understand why.
Comment 6 Joseph 2008-04-20 17:32:08 UTC
Created attachment 150437 [details]
fmtutil-sys--all with "xml" flag

I've recompiled "texlive" with "xml" flag so pdfxmltex was build-in as well.
It is not giving me any problems. I have tested on both profiles:
default-linux/x86/2007.0/desktop
default/linux/x86/2008.0/desktop

I can not duplicate the problem now, so I think we can mark as invalid. Maybe the problem was caused by some leftover files which I clean up on the second run.  I had a missing pdflatex.fmt file on the first upgrade-run, now they are both there including pdfxmltex.fmt and everything is working :-)