Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311993 - gnuplot-4.x fails to build with texlive error
Summary: gnuplot-4.x fails to build with texlive error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-29 21:20 UTC by Bob Johnson
Modified: 2010-03-30 17:22 UTC (History)
1 user (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 Bob Johnson 2010-03-29 21:20:44 UTC
When emerging gnuplot, the build fails with a segmentation fault while attempting to build the documentation. It fails with both the stable 4.2.6 and the unstable 4.4.0.

Reproducible: Always

Steps to Reproduce:
1.emerge -1v gnuplot with doc use flag set
2.
3.

Actual Results:  
Fail.


When the doc use flag is turned off, gnuplot builds just fine. Rebuild texlive-latex doesn't help any; I still get the same error.

Here's the emerge info:
emerge --info =sci-visualization/gnuplot-4.2.6                  
Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686)                                                                   
=================================================================               
                        System Settings                                         
=================================================================               
System uname: Linux-2.6.31-gentoo-r10-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13                                                      
Timestamp of tree: Mon, 29 Mar 2010 20:15:02 +0000                              
app-shells/bash:     4.0_p37                                                    
dev-java/java-config: 2.1.10                                                    
dev-lang/python:     2.6.4-r1                                                   
dev-util/cmake:      2.6.4-r3                                                   
sys-apps/baselayout: 1.12.13                                                    
sys-apps/sandbox:    1.6-r2                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                              
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                   
sys-devel/binutils:  2.18-r3                                                    
sys-devel/gcc:       4.3.4                                                      
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6b                                                     
virtual/os-headers:  2.6.30-r1                                                  
ACCEPT_KEYWORDS="x86"                                                           
ACCEPT_LICENSE="* -@EULA vmware"                                                
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=prescott -O2 -pipe"                                              
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                  
CXXFLAGS="-march=prescott -O2 -pipe"                                            
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                 
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                    
LDFLAGS="-Wl,-O1"                                                               
LINGUAS="en_US"                                                                 
MAKEOPTS="-j5"                                                                  
PKGDIR="/usr/portage/packages"                                                  
PORTAGE_CONFIGROOT="/"                                                          
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="/var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amr amrnb amrwb apache2 berkdb blas bluetooth bzip2 cdda cli cracklib crypt css cups curl cxx dbus doc dri dts dv dvd dvdr dvdread dvi encode examples exif ffmpeg flac fortran gcj gd gdbm gif gimp graphviz gstreamer gtk guile hal hddtemp iconv id3tag ieee1394 imagemagick imlib ipv6 jack jadetex java jbig joystick jpeg jpeg2k kpathsea ladcca ladspa lcms libsamplerate libv4l2 lm_sensors mad mbox midi mikmod mmx mng modules mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia odbc ogg openal opengl openmp pam pcre pdf perl png posix povray ppds pppd python qt3support quicktime raw readline reflection rtc samba scanner sdl session sox spell spl srt sse ssl svg sysfs t1lib tcl tcpd templates theora threads tiff tk truetype unicode usb v4l v4l2 vcd vorbis win32codecs wmf x86 xanim xattr xine xinerama xml xorg xpm xulrunner xv xvid xvmc 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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev vmmouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev intel radeon radeonhd vesa vmware nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-visualization/gnuplot-4.2.6 was built with the following:
USE="X gd pdf readline doc -emacs -ggi -latex -lua -plotutils -svga -wxwidgets -xemacs"

Here's the relevant part of the build log:

make -j5 pdf
epstopdf eg7.eps
Building LaTeX tutorial (PDF version)
TEXINPUTS=.:.:: pdflatex tutorial
This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009)
entering extended mode
(./tutorial.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(./header.tex (/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/base/latexsym.sty)
(/usr/share/texmf-dist/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/usr/share/texmf-dist/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg))) (./tutorial.aux)
(/usr/share/texmf-dist/tex/latex/base/ulasy.fd) (./tutorial.toc) [1{//var/lib/t
exmf/fonts/map/pdftex/updmap/pdftex.map}] (./eg1.tex) [1] (./eg2.tex) [2]
[3] (./eg3.tex) [4] (./eg4.tex) (./eg5.tex) [5] (./eg6.tex) (./test.tex)
[6] [7] (/usr/share/texmf-dist/tex/latex/base/omscmr.fd) (./eg7.texmake: *** [tutorial.pdf] Segmentation fault
make: *** Deleting file `tutorial.pdf'
 ^[[31;01m*^[[0m ERROR: sci-visualization/gnuplot-4.2.6 failed:
 ^[[31;01m*^[[0m   (no error message)
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m     ebuild.sh, line  54:  Called src_compile
 ^[[31;01m*^[[0m   environment, line 3160:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m           emake pdf || die;
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the output of 'emerge --info =sci-visualization/gnuplot-4.2.6'
Comment 1 Thomas Kahle (RETIRED) gentoo-dev 2010-03-30 00:35:58 UTC
Everything looks fine here, it seems that this is more a problem with texlive than gnuplot. I cannot imagine any Latex source that will make texlive segfault.
Can you try pdflatex on some other .tex files ?
Comment 2 Bob Johnson 2010-03-30 17:22:42 UTC
(In reply to comment #1)
> Everything looks fine here, it seems that this is more a problem with texlive
> than gnuplot. I cannot imagine any Latex source that will make texlive
> segfault.
> Can you try pdflatex on some other .tex files ?
> 

Yes, this is strange. When I emerge gnuplot on another x86 box I have, the gnuplot tutorial builds fine with the doc USE flag. It's definitely related to pdflatex, because if I go into the /var/tmp/portage build directory and run pdflatex directly on the tutorial.tex file I get the same segfault. gdb backtrace shows the segfault is in strlen in glib. strace seems to point to a problem with the font files perhaps:?

open("/var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2", O_RDONLY) = 9                                                                        
fstat64(9, {st_mode=S_IFREG|0644, st_size=33624, ...}) = 0                      
mmap2(NULL, 33624, PROT_READ, MAP_SHARED, 9, 0) = 0xb4898000                    
close(9)                                = 0                                     
stat64("/usr/share/fonts/encodings/large", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0                                                                       
open("/var/cache/fontconfig/5ca8086aeacc9c68e81a71e7ef846b3b-x86.cache-2", O_RDONLY) = 9                                                                        
fstat64(9, {st_mode=S_IFREG|0644, st_size=88, ...}) = 0                         
read(9, "\4\374\2\374\2\0\0\0X\0\0\0 \0\0\0H\0\0\0\0\0\0\0H\0\0\0A\331#K"..., 88) = 88                                                                          
close(9)                                = 0                                     
brk(0x8613000)                          = 0x8613000                             
--- SIGSEGV (Segmentation fault) @ 0 (0) ---                                    
+++ killed by SIGSEGV +++                                                       
Segmentation fault    


In any case, this is starting to look more like an issue on this one system than a bug in gnuplot per se. I'm going to see if I can get more help on the forums, and I'll close this bug as INVALID for gnuplot for now. Thanks!