Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79952 - (toolchain) While emerging app-text/docbook-sgml-utils-0.6.12, app-text/openjade-1.3.2-r1 crashes because of SSP
Summary: (toolchain) While emerging app-text/docbook-sgml-utils-0.6.12, app-text/openj...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 06:41 UTC by voidptr
Modified: 2005-06-12 19:38 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 voidptr 2005-01-29 06:41:27 UTC
While emerging app-text/docbook-sgml-utils-0.6.12 (+doc dependancy of iputils, during emerge system):

Making all in HTML
make[2]: Entering directory `/var/tmp/portage/docbook-sgml-utils-0.6.12/work/docbook-utils-0.6.12/doc/HTML'
SGML_CATALOG_FILES=/etc/sgml/catalog \
SGML_SEARCH_PATH=../..:../../doc:.. \
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml
SGML_CATALOG_FILES=/etc/sgml/catalog \
SGML_SEARCH_PATH=../..:../../doc:.. \
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml
SGML_CATALOG_FILES=/etc/sgml/catalog \
SGML_SEARCH_PATH=../..:../../doc:.. \
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml
jade: stack smashing attack in function virtual void OpenSP::ArcEngineImpl::pi(OpenSP::PiEvent*)()
make[2]: *** [api.html] Aborted
make[2]: *** Waiting for unfinished jobs....
jade: stack smashing attack in function virtual void OpenSP::ArcEngineImpl::pi(OpenSP::PiEvent*)()
make[2]: *** [backend-spec.html] Aborted
jade: stack smashing attack in function virtual void OpenSP::ArcEngineImpl::pi(OpenSP::PiEvent*)()
make[2]: *** [docbook2man.html] Aborted
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/docbook-sgml-utils-0.6.12/work/docbook-utils-0.6.12/doc'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/docbook-sgml-utils-0.6.12 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

I was told before that C++ code is/was not supported by SSP. Maybe this is related, i'll leave that to the Hardened folks :)

[ebuild   R   ] app-text/openjade-1.3.2-r1  +debug 0 kB 
*  app-text/openjade
      Latest version available: 1.3.2-r1
      Latest version installed: 1.3.2-r1


# emerge -pv iputils
[ebuild  N    ] app-text/docbook-sgml-utils-0.6.12  -tetex 0 kB 
[ebuild  N    ] net-misc/iputils-021109-r3  +debug +doc +ipv6 -static (-uclibc) 418 kB 


Portage 2.0.51-r15 (hardened/amd64, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 29 2005, 13:51:05)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.9.4, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O0 -march=nocona -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O0 -march=nocona -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzlib crypt debug doc emacs ethereal freetds ftp gd gdbm gif gmp hardened hardenedphp imap imlib innodb ipv6 java jpeg kerberos ldap mbox msql mssql mysql mysqli ncurses nls oci8 oracle7 pam pcre pdflib perl php pic pie png postgres prelude python readline ssl tcpd tiff unicode vhosts xml xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


Reproducible: Always
Steps to Reproduce:
Comment 1 voidptr 2005-01-29 06:45:30 UTC
Workaround for those that want to keep a global +doc use-flag:

# echo "net-misc/iputils -doc" >> /etc/portage/package.use
Comment 2 solar (RETIRED) gentoo-dev 2005-01-29 08:46:15 UTC
I can't get OpenSP which is a dep to the openjade to compile on amd64 so I can't confirm this bug.
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2005-01-29 09:12:23 UTC
Both app-text/docbook-sgml-utils-0.6.12, app-text/openjade-1.3.2-r1 are built fine here, on both my machines (athlon-xp and pentium3).

Perhaps it's an amd64 issue?
Comment 4 solar (RETIRED) gentoo-dev 2005-01-29 10:18:23 UTC
32/64 bit issues with size_t and int perhaps
Comment 5 Joshua Hoblitt 2005-06-03 17:23:11 UTC
I have a similar issue with osp on multiple amd64 boxes.

jade: error while loading shared libraries: libosp.so.3: cannot open shared
object file: No such file or directory
make[2]: *** [api.html] Error 127jade: error while loading shared libraries:
libosp.so.3: cannot open shared object file: No such file or directory

make[2]: *** Waiting for unfinished jobs....
make[2]: *** [docbook2texi.html] Error 127
jade: error while loading shared libraries: libosp.so.3: cannot open shared
object file: No such file or directory
jade: error while loading shared libraries: libosp.so.3: cannot open shared
object file: No such file or directory
make[2]: *** [backend-spec.html] Error 127
make[1]: jade: error while loading shared libraries: libosp.so.3: cannot open
shared object file: No such file or directory
*** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/docbook-sgml-utils-0.6.12/work/docbook-utils-0.6.12/doc'
make: *** [all-recursive] Error 1
Comment 6 Timothy Miller 2005-06-06 11:54:31 UTC
I'm having a similar problem on Pentium 4: 
 
puck root # emerge -uDv world 
Calculating world dependencies ...done! 
>>> emerge (1 of 132) app-text/docbook-sgml-utils-0.6.14 to / 
>>> md5 files   ;-) docbook-sgml-utils-0.6.12.ebuild 
>>> md5 files   ;-) docbook-sgml-utils-0.6.12-r2.ebuild 
>>> md5 files   ;-) docbook-sgml-utils-0.6.14.ebuild 
>>> md5 files   ;-) ChangeLog 
>>> md5 files   ;-) metadata.xml 
>>> md5 files   ;-) files/docbook-sgml-utils-frontend.patch 
>>> md5 files   ;-) files/docbook-sgml-utils-head-jw.patch 
>>> md5 files   ;-) files/docbook-sgml-utils-backend.patch 
>>> md5 files   ;-) files/digest-docbook-sgml-utils-0.6.12-r2 
>>> md5 files   ;-) files/docbook-sgml-utils-0.6.14-backend.patch 
>>> md5 files   ;-) files/digest-docbook-sgml-utils-0.6.12 
>>> md5 files   ;-) files/digest-docbook-sgml-utils-0.6.14 
>>> md5 src_uri ;-) docbook-utils-0.6.14.tar.gz 
>>> Unpacking source... 
>>> Unpacking docbook-utils-0.6.14.tar.gz 
to /var/tmp/portage/docbook-sgml-utils-0.6.14/work 
>>> Source unpacked. 
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
    If a cross compiler is detected then cross compile mode will be used. 
checking for a BSD-compatible install... /bin/install -c 
checking whether build environment is sane... yes 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip 
configure: creating ./config.status 
config.status: creating Makefile 
config.status: creating docbook-utils.spec 
config.status: creating bin/Makefile 
config.status: creating bin/jw 
config.status: creating bin/sgmldiff 
config.status: creating backends/Makefile 
config.status: creating backends/man 
config.status: creating backends/texi 
config.status: creating frontends/Makefile 
config.status: creating frontends/docbook 
config.status: creating helpers/Makefile 
config.status: creating doc/Makefile 
config.status: creating doc/version 
config.status: creating doc/refentry/Makefile 
config.status: creating doc/man/Makefile 
config.status: creating doc/HTML/Makefile 
Making all in backends 
make[1]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/backends' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/backends' 
Making all in bin 
make[1]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/bin' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/bin' 
Making all in doc 
make[1]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc' 
Making all in refentry 
make[2]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc/refentry' 
make[2]: Nothing to be done for `all'. 
make[2]: Leaving directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc/refentry' 
Making all in man 
make[2]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc/man' 
make[2]: Nothing to be done for `all'. 
make[2]: Leaving directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc/man' 
Making all in HTML 
make[2]: Entering directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc/HTML' 
SGML_CATALOG_FILES=/etc/sgml/catalog \ 
SGML_SEARCH_PATH=../..:../../doc:.. \ 
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \ 
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml 
SGML_CATALOG_FILES=/etc/sgml/catalog \ 
SGML_SEARCH_PATH=../..:../../doc:.. \ 
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \ 
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml 
SGML_CATALOG_FILES=/etc/sgml/catalog \ 
SGML_SEARCH_PATH=../..:../../doc:.. \ 
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \ 
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml 
SGML_CATALOG_FILES=/etc/sgml/catalog \ 
SGML_SEARCH_PATH=../..:../../doc:.. \ 
        jade -t sgml -i html -d ../../docbook-utils.dsl\#html \ 
                -V '%use-id-as-filename%' ../../doc/docbook-utils.sgml 
jade: error while loading shared libraries: libosp.so.3: cannot open shared 
object file: No such file or directory 
make[2]: *** [api.html] Error 127 
make[2]: *** Waiting for unfinished jobs.... 
jade: error while loading shared libraries: libosp.so.3: cannot open shared 
object file: No such file or directory 
make[2]: *** [backend-spec.html] Error 127 
jade: error while loading shared libraries: libosp.so.3: cannot open shared 
object file: No such file or directory 
make[2]: *** [docbook2man.html] Error 127 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/docbook-sgml-utils-0.6.14/work/docbook-utils-0.6.14/doc' 
make: *** [all-recursive] Error 1 
 
!!! ERROR: app-text/docbook-sgml-utils-0.6.14 failed. 
!!! Function src_compile, Line 556, Exitcode 2 
!!! emake failed 
!!! If you need support, post the topmost build error, NOT this status message. 
 
puck root # jade: error while loading shared libraries: libosp.so.3: cannot 
open shared object file: No such file or directory 
 
 
My emerge info: 
 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun  1 2005, 11:53:48)] 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse 
-fprefetch-loop-arrays -fforce-addr -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse 
-fprefetch-loop-arrays -fforce-addr -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://gentoo.binarycompass.org http://gentoo.mirror.sdv.fr 
http://www.gigaload.org/gentoo.org/ http://ftp.easynet.nl/mirror/gentoo/" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X Xaw3d aalib acpi aim alsa apache2 apm arts audiofile avi 
bash-completion berkdb bitmap-fonts bmp bonobo bzlib calendar cdr crypt cups 
curl dga dio directfb divx4linux doc eds emacs emacs-w3 emboss encode esd evo 
f77 f90 fam fbcon foomaticdb fortran ftp gb gcj gd gdbm ggi gif gnome gpm 
gstreamer gtk gtk2 gtkhtml icq imagemagick imlib innodb ipv6 jabber java jpeg 
junit kde ldap lesstif libg++ libgda libwww mad mikmod mime mmap mmx motif 
mozilla mp3 mpeg mpi msn msqli mysql ncurses nls offensive ogg oggvorbis openal 
opengl oss pam pcre pdflib perl php pie png postgres ppds python qt quicktime 
readline ruby samba scanner sdl session shared sharedmem slang sockets spell 
spl sse ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts 
type1-fonts unicode usb vorbis wxwindows xml xml2 xmms xslt xv xvid yahoo zlib 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, 
PORTDIR_OVERLAY 
 
Comment 7 Stephen Bennett (RETIRED) gentoo-dev 2005-06-06 12:08:54 UTC
Re comments 5 & 6: that's a different issue, caused by upgrading opensp to a
version with a different soname without rebuilding the packages depending on it.
Either remerge openjade to fix this particular issue, or run revdep-rebuild
(part of gentoolkit) to catch the more general problems like that.
Comment 8 Joshua Hoblitt 2005-06-07 03:01:23 UTC
That is incorrect.  re-emerging openjade does not resolve the problem nore does
 revdep-rebuild find any inconsistencies.

# revdep-rebuild -a

Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/libexec/evolution-webcal (requires libgnutls.so.11)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

All prepared. Starting rebuild...
emerge --oneshot --nodeps -a =gnome-extra/evolution-webcal-2.0.1
..........

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] gnome-extra/evolution-webcal-2.0.1

Do you want me to merge these packages? [Yes/No] Interrupted.
Comment 9 Frank Lomax 2005-06-12 13:33:26 UTC
This has nothing to do with amd64 or hardened.  I was doing emerge -uD world and
had the same crash.  Re-emerging openjade solved the problem, as described in
this forum post:

http://forums.gentoo.org/viewtopic-t-312018-highlight-docbooksgmlutils.html?sid=2557527ba1e73b3ecacfe12ebb550a3c

I /am/ on amd32 but I doubt that makes a difference.
Comment 10 solar (RETIRED) gentoo-dev 2005-06-12 19:38:20 UTC
changing resolution