Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260606 - emerging media-gfx/asymptote-1.66 hangs endless after ../asy -dir ../base -config "" -render=0 -f pdf -noprc CDlabel.asy
Summary: emerging media-gfx/asymptote-1.66 hangs endless after ../asy -dir ../base -c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-28 12:24 UTC by Juergen Rose
Modified: 2009-05-13 12:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-02-28 12:24:39 UTC
'emerge asymptote' comes to:
perl bfnnconv.pl asy-faq.bfnn
unknown question `brokenpdftex' at bfnnconv.pl line 221, <> line 115.
unknown control `\pageref:brokenpdftex::\endpageref..  ' at bfnnconv.pl line 249, <> line 115.
unknown question `unitsizes' at bfnnconv.pl line 221, <> line 909.
unknown control `\pageref:unitsizes::\endpageref..  ' at bfnnconv.pl line 249, <> line 909.
perl bfnnconv.pl asy-faq.bfnn
unknown question `brokenpdftex' at bfnnconv.pl line 221, <> line 115.
unknown control `\pageref:brokenpdftex::\endpageref..  ' at bfnnconv.pl line 249, <> line 115.
unknown question `brokenpdftex' at bfnnconv.pl line 221, <> line 115.
unknown question `unitsizes' at bfnnconv.pl line 221, <> line 909.
unknown control `\pageref:unitsizes::\endpageref..  ' at bfnnconv.pl line 249, <> line 909.
unknown control `\pageref:brokenpdftex::\endpageref..  ' at bfnnconv.pl line 249, <> line 115.
rename xrefdb: No such file or directory at bfnnconv.pl line 191, <> line 1296.
unknown question `unitsizes' at bfnnconv.pl line 221, <> line 909.
unknown control `\pageref:unitsizes::\endpageref..  ' at bfnnconv.pl line 249, <> line 909.
rename xrefdb: No such file or directory at bfnnconv.pl line 191, <> line 1296.
 * Making pdf docs       
make -j3 asymptote.pdf 
../asy -dir ../base -config "" -render=0 -f pdf -noprc Bode.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc CAD1.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc CDlabel.asy


Then it hangs endless. I did already two attemps. If I do 'multitail -l "ps waux | head -n 1 ;  sleep 5" -L "ps waux | grep asy"', I see the following:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      1549  0.0  0.0   3816   588 pts/0    S    10:14   0:00 [media-gfx/asymptote-1.66] sandbox "/usr/lib64/portage/bin/ebuild.sh" compile
root      3431  0.0  0.0  13156  1468 pts/0    S    10:15   0:00 make -j3 asymptote.pdf
root      3433  0.0  0.2  88212 17808 pts/0    Sl   10:15   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc Bode.asy
root      3434  0.0  0.2  88192 17748 pts/0    Sl   10:15   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc CAD1.asy
root      3435  0.0  0.2  88192 17756 pts/0    Sl   10:15   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc CDlabel.asy
root     15382  0.0  0.0   3816   576 pts/0    S+   12:10   0:00 [media-gfx/asymptote-1.66] sandbox "/usr/lib64/portage/bin/ebuild.sh" compile
root     16150  0.0  0.0  13156  1468 pts/0    S+   12:12   0:00 make -j3 asymptote.pdf
root     16152  0.0  0.2  88204 17748 pts/0    Sl+  12:12   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc Bode.asy
root     16153  0.0  0.2  88192 17804 pts/0    Sl+  12:12   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc CAD1.asy
root     16154  0.0  0.2  88192 17772 pts/0    Sl+  12:12   0:00 ../asy -dir ../base -config  -render=0 -f pdf -noprc CDlabel.asy
rose     23982  1.0  0.0  26752  4512 pts/1    R+   12:59   0:00 multitail -l ps waux | head -n 1 ;  sleep 5 -L ps waux | grep asy
rose     23985  0.0  0.0  12420  1256 pts/1    R    12:59   0:00 /bin/sh -c ps waux | grep asy

I.e. all asy processes are sleeping. I have to kill all asy processes some times with signal 9 to proceed.

Reproducible: Always




root@condor:/root(6)# emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28.7 x86_64)
=================================================================
System uname: Linux-2.6.28.7-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sat, 28 Feb 2009 08:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /et
c/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /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=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j3"
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/java-overlay /usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/jokey 
/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonob
o boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3
490 dv dvb dvd dvdr dvdread dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran 
fpx galago gd gdal gdbm geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness 
hddtemp hdf hdf5 hlapi http hvm iconv icq icu id3 ide imagemagick imap innodb ipv6 irda irmc isdnlog ithreads jabber java jbig john jpeg jpeg2k kde kde4 kdeprefix kerberos kexi keyring kvm 
ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo lzw mad maildir mailwrapper math matroska midi mikmod mmx mmxext mng mod mono motif mozdevel
op mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlon
ly nsplugin ntfs numarray numeric nvidia obex ocaml octave odbc ogdi ogg ole opengl openmp pae pam pcre pda pdf perl plotutils plugins png posix postgres postscript ppds pppd preview-latex 
proj projectx pstricks python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl session slang slp smp sndfile snmp soup
 sox speex spell spl sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk truetype unicode usb u
serlocales utempter v4l2 vorbis webkit wmf wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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 a
lias 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_bal
ancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="cx8800 cx88xx tda1004x saa713" ELIBC="glibc" INPUT_DEVICES="keyboard mo
use                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupp
ort groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 MaratIK 2009-02-28 23:18:39 UTC
The same problem for me.
Comment 2 Andrey Grozin gentoo-dev 2009-03-06 18:44:46 UTC
I cannot reproduce this:

 * Making pdf docs
make asymptote.pdf
../asy -dir ../base -config "" -render=0 -f pdf -noprc axis3.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc bezier2.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc bezier.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc beziercurve.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc bigsquare.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc binarytreetest.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc Bode.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc brokenaxis.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc CAD1.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc CDlabel.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc colons.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc colors.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc cube.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc cylinderskeleton.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc datagraph.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc diagonal.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc diatom.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc dots.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc eetomumu.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc elliptic.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc errorbars.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc exp.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc filegraph.asy

and so on.

With what USE flags do you try to emerge asymptote? Have you tried -j1 ?
Comment 3 Michael Li 2009-03-08 13:57:41 UTC
Try "USE=-boehm-gc" this fixed the problem of a hanging /usr/bin/asy (both asymptote-1.65 and 1.66) for me.

I have "dev-libs/boehm-gc-7.0 +threads".
Comment 4 Andrey Grozin gentoo-dev 2009-03-08 14:37:23 UTC
I think this is not a good solution. Without garbage collection, you will be able to run only very short and trivial examples (or you should have a lot of memory). Some time ago, a user with a low-memory computer could not emerge asymptote with -boehm-gc +doc because of the lack of memory.
I think something is wrong with emake -j<n> where n>1 here. This is often the case. I have a single-core processor, and cannot chech this. I'd recommend to try to emerge asymptote with -j1. It works for me. Or just change the line
emake asymptote.pdf
to
emake -j1 asymptote.pdf
If this will fix your problem, I'll commit this change.
Comment 5 Andrey Grozin gentoo-dev 2009-03-19 11:29:44 UTC
Please try asymptote-1.67. I've added -j1 to emake asymptote.pdf. Please check if this fixes your problem.
Comment 6 Andrey Grozin gentoo-dev 2009-03-24 15:48:14 UTC
Please check if -j1 which I included in the recent versions of the ebuild (1.67, 1.68) fixes your problem (I cannot check this because I don't see this problem).
Comment 7 MaratIK 2009-03-24 15:50:21 UTC
(In reply to comment #6)
> Please check if -j1 which I included in the recent versions of the ebuild
> (1.67, 1.68) fixes your problem (I cannot check this because I don't see this
> problem).
> 

Confirm this. 1.67 builds without any problem.
Comment 8 Andrey Grozin gentoo-dev 2009-05-13 12:44:54 UTC
OK, so -j1 has fixed this. Closing.