pdfnup from the package pdfjam fails with a segmentation fault of pdflatex (?). Reproducible: Always Steps to Reproduce: 1. pdfnup somepdf.pdf Actual Results: pdfnup somepdf.pdf This is pdfnup version 1.20 Processing somepdf.pdf... Temporary LaTeX file for this job is /var/tmp/pdfnup.zD2S4p/30382-1.tex Calling pdflatex... /usr/bin/pdfnup: line 269: 30422 Segmentation fault "$pdflatex" --interaction batchmode "$texFile" > "$msgFile" Finished: output is /tmp/somepdf-2x1.pdf the pdf is not really created... Expected Results: without the segfault and with a created pdf. [ebuild R ] app-text/pdfjam-1.20-r1 0 kB # emerge -pv `cat /var/lib/portage/world | grep tex` [ebuild R ] dev-texlive/texlive-latex-2009 USE="-doc -source" 0 kB [ebuild R ] app-text/ghostscript-gpl-8.64-r3 USE="X cairo cups gtk jpeg2k -bindist -cjk -djvu" 0 kB [ebuild R ] dev-texlive/texlive-fontsrecommended-2009 USE="-doc -source" 0 kB [ebuild R ] dev-texlive/texlive-fontutils-2009 USE="-doc -source" 0 kB [ebuild R ] dev-texlive/texlive-langgerman-2009 USE="-doc -source" 0 kB [ebuild R ] app-text/acroread-9.2 USE="cups ldap nsplugin -minimal" LINGUAS="de en -fr -ja" 0 kB [ebuild R ] dev-texlive/texlive-latexrecommended-2009 USE="-doc -source" 0 kB [ebuild R ] dev-texlive/texlive-latex3-2009 USE="-doc -source" 0 kB [ebuild R ] app-text/pstotext-1.9-r2 0 kB [ebuild R ] app-text/xournal-0.4.2.1-r1 USE="pdf -debug -doc" 0 kB [ebuild R ] app-text/texlive-2009 USE="X png truetype xml -cjk -context -cyrillic -detex -doc -dvi2tty -dvipdfm -extra -games -graphics -humanities -jadetex -latex3 -luatex -music -omega -pstricks -publishers -science -tex4ht -xetex -xindy" LINGUAS="de en -af -ar -bg -bn -bo -cs -cy -da -el -en_GB -eo -es -et -fi -fr -ga -he -hi -hr -hsb -hu -hy -id -is -it -ja -ko -la -lt -lv -ml -mn -nl -no -pl -pt -ro -ru -sk -sl -sr -sv -ta -th -tr -uk -vi -zh" 0 kB [ebuild R ] app-text/pdfjam-1.20-r1 0 kB [ebuild R ] dev-tex/chktex-1.6.4 USE="-debug -doc" 0 kB [ebuild R ] dev-tex/fundus-19970826 0 kB [ebuild R ] dev-tex/mh-20080903 USE="-doc" 0 kB #emerge --info Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.10.1-r1, 2.6.30-gentoo-r8 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-1.12.13 Timestamp of tree: Tue, 02 Feb 2010 10:15:02 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 1.3.7-r1, 2.1.10 dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.4 dev-python/pycrypto: 2.0.1-r8 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.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.1.2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i486-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i486-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/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 /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/genoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j4" 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="/usr/local/portage /usr/portage/local/g-ctan" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi afs alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 java jpeg jpeg2k kde kpathsea latex ldap libnotify mad mikmod mng modules mp3 mp4 mpeg msn mudflap mule ncurses nls nptl nptlonly nsplugin ogg opengl openmp oscar pam pcre pdf perl png ppds pppd preview-latex python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sql ssl startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vorbis webkit win32codecs wma x264 x86 xinerama xml xorg xulrunner xv xvid 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="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Actually it seems to be related to the package pdfpages... # pdflatex "\documentclass{article}\begin{document}a\end{document}"; mv article.pdf input.pdf; pdflatex "\documentclass{article}\usepackage{pdfpages}\begin{document}\includepdf{input.pdf}\end{document}" This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) entering extended mode LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, german, ngerman, loaded. (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo)) (./article.aux) [1{/home/sve n/.texlive2009/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./article.aux)</ usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb> Output written on article.pdf (1 page, 10152 bytes). Transcript written on article.log. This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) entering extended mode LaTeX2e <2009/09/24> Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, german, ngerman, loaded. (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo)) (/home/sven/texmf/tex/latex/pdfpages/pdfpages.sty (/usr/share/texmf-dist/tex/latex/base/ifthen.sty) (/home/sven/texmf/tex/latex/tools/calc.sty) (/usr/share/texmf-dist/tex/latex/eso-pic/eso-pic.sty (/home/sven/texmf/tex/latex/oberdiek/atbegshi.sty (/home/sven/texmf/tex/latex/oberdiek/infwarerr.sty) (/home/sven/texmf/tex/latex/oberdiek/ifpdf.sty)) (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty) (/home/sven/texmf/tex/latex/xcolor/xcolor.sty (/usr/share/texmf-dist/tex/latex/latexconfig/color.cfg) (/usr/share/texmf-dist/tex/latex/pdftex-def/pdftex.def))) (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg))) (/home/sven/texmf/tex/latex/pdfpages/pppdftex.def)) (./article.aux) (/usr/share/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] )Segmentation fault
Peter since this bug is very well reproducible could you try to rebuild dev-texlive/texlive-latex with debugging symbols enabled[1] (basically add -ggdb into CFLAGS and splitdebug into FEATURES) and try to gather backtrace? Personally I failed to reproduce this problem on my systems. Reassigning anyway. [1] http://www.gentoo.org/proj/en/qa/backtraces.xml
I get this output: Program received signal SIGSEGV, Segmentation fault. 0xb7dc957c in GlobalParams::scanEncodingDirs () from /usr/lib/libpoppler.so.5 I decided to rebuild all poppler related packages... [ebuild R ] app-text/poppler-data-0.4.0 0 kB [ebuild R ] app-text/poppler-0.12.3-r3 USE="abiword cairo jpeg jpeg2k lcms png qt4 utils xpdf-headers -cjk -debug -doc -exceptions" 0 kB [ebuild R ] virtual/poppler-utils-0.12.3-r1 USE="abiword png" 0 kB [ebuild R ] virtual/poppler-qt4-0.12.3-r1 0 kB [ebuild R ] virtual/poppler-0.12.3-r1 USE="lcms" 0 kB and to revdep-rebuild... and to updated world... However, the failure remains (using root the fault does not occur).
works fine here; gimme the output of 'ldd /usr/bin/pdflatex' as your user that triggers the segfault and as root also try emerge @preserved-rebuild and/or revdep-rebuild
user-account: linux-gate.so.1 => (0xb7f77000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7f33000) libz.so.1 => /lib/libz.so.1 (0xb7f20000) libpoppler.so.5 => /usr/lib/libpoppler.so.5 (0xb7d1c000) libkpathsea.so.5 => /usr/lib/libkpathsea.so.5 (0xb7d04000) libstdc++.so.6 => /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7c1b000) libm.so.6 => /lib/libm.so.6 (0xb7bf4000) libgcc_s.so.1 => /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7be8000) libc.so.6 => /lib/libc.so.6 (0xb7aa4000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a21000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb79f6000) libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0xb79bf000) libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb79a1000) liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb796e000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb784e000) /lib/ld-linux.so.2 (0xb7f78000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb782d000) libdl.so.2 => /lib/libdl.so.2 (0xb7829000) root linux-gate.so.1 => (0xb7fa2000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7f5e000) libz.so.1 => /lib/libz.so.1 (0xb7f4b000) libpoppler.so.5 => /usr/lib/libpoppler.so.5 (0xb7d47000) libkpathsea.so.5 => /usr/lib/libkpathsea.so.5 (0xb7d2f000) libstdc++.so.6 => /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/libstdc++.so.6 (0xb7c46000) libm.so.6 => /lib/libm.so.6 (0xb7c1f000) libgcc_s.so.1 => /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/libgcc_s.so.1 (0xb7c13000) libc.so.6 => /lib/libc.so.6 (0xb7acf000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7a4c000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7a21000) libjpeg.so.7 => /usr/lib/libjpeg.so.7 (0xb79ea000) libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0xb79cc000) liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb7999000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7879000) /lib/ld-linux.so.2 (0xb7fa3000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7858000) libdl.so.2 => /lib/libdl.so.2 (0xb7854000) I already did revdep-rebuild but #emerge @preserved-rebuild fails... !!! '@preserved-rebuild' is not a valid package atom. (guess I am too much of a noob here.. ;-)
since my portage is not outdated: Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.10.1-r1, 2.6.30-gentoo-r8 i686) I wonder why it does not understand @...
cleaned up package.keywords removed virtual/poppler-0.12.3-r1 virtual/poppler-qt4-0.12.3-r1 virtual/poppler-utils-0.12.3-r1 (don't have a clue why they were still on the system..(?)) revdep-rebuild showed some poppler-depended packages I is still compiling some of these packages but the pdflatex succeeds. [RESOLVED] for me...
@preserved-rebuild only exist in hardmasked portage. revdep-rebuild is a replacement in currently stable portage. Since this is issue with mixing arch and ~arch and in general we do not support such configurations I guess this is invalid issue.
For the record, I had the same problem in a ~x86 install. The thing that worked was to emerge the standalone pdftex (dev-tex/pdftex-1.40.10) which brought app-admin/eselect-pdftex-0.3. texlive-core-2009 refused to work even after reemerging poppler, revdep-rebuild and emerge @preserved-rebuild. Portage 2.2_rc67_p40 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.33-gentoo i686) ================================================================= System uname: Linux-2.6.33-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 16 Apr 2010 17:00:02 +0000 app-shells/bash: 4.1_p5 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.5-r1, 3.1.2-r2 dev-util/cmake: 2.8.1-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1 sys-devel/gcc: 4.3.4, 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.33 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/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" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.klid.dk/gentoo/ http://mirror.elen.ktu.lt/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ rsync://mirrors.evolva.ro/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/" LDFLAGS="-Wl,--as-needed" LINGUAS="pt_BR en en_US en_GB" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac accessibility acpi adsl aim alsa apache2 artswrappersuid artworkextra asf async avahi bash-completion berkdb branding bzip2 cairo captury cdaudio cdb cddb cdparanoia cdr cdrom cli consolekit cracklib crypt css cups cxx dbus desktopglobe dhclient dhcp djvu dri dts dvb dvd dvdr dvdread dvi emboss encode exif extra extras faac fam fbsplash ffmpeg firefox flac fontforge fortran fts3 fuse gdbm gif gimpprint glep glib glitz gmp gnokii gnutls google-gadgets gpm graphics graphviz gs gtk hal halimagemagick htmlhandbook iconv inotify insecure-drivers ipod java java6 jpeg jpeg2k kde kipi kpathsea lame laptop latex lcms libffi libnotify libwww logrotate lua mad messenger mikmod mime mng modules mono moznocompose moznoirc moznomail mozsha1 mozsvg mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql nautilus ncurses netcdf networkmanager nls noamazon nptl nptlonly nsplugin nss ntfs ntp obex ofx ogg opengl openmp oscar oss pam pango pch pcre pdf perl php pic plasma png policykit ppds pppd pstricks python qt3support qt4 readline reflection resolvconf samba sasl science semantic-desktop session smp spell spl sqlite sse2 ssl startup-notification svg sysfs t1lib tetex tex4ht theora threads tiff truetype tunepimp unicode usb vcd vnc vorbis webkit wifi win32codecs winbind wlm wmf x264 x86 xcb xcomposite xine xinerama xml xorg xosd xpm xrandr xulrunner xv xvid yahoo 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="pt_BR en en_US en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Problem is incompatibility in layout of GlobalParams class; poppler has #if MULTITHREADED GooMutex mutex; GooMutex unicodeMapCacheMutex; GooMutex cMapCacheMutex; #endif but these members are missing from the debug object in texlive-core. I guess this could be down to the poppler/xpdf fork; could texlive be picking up the GlobalParams.h from its bundled xpdf?
Works for me after re-emerging texlive-core.
worksforme then; if this happens again please try rebuilding texlive-core; it's possible poppler changed its abi without abi bump...