Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52533 - arts fails to comiple (mcopidl segfault)
Summary: arts fails to comiple (mcopidl segfault)
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 62633 65384 68148 68955 73974 74004 74050 74401 74964 75080 95499 100648 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-31 02:46 UTC by Hanno Böck
Modified: 2007-03-18 07:27 UTC (History)
16 users (show)

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


Attachments
strace output for mcopidl (strace-output,29.64 KB, text/plain)
2004-06-01 06:17 UTC, Hanno Böck
Details
arts-1.3.0-mcopidl.patch (arts-1.3.0-mcopidl.patch,396 bytes, patch)
2004-09-10 08:40 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
adds -fno-stack-protector-all to patch from comment #18 (arts-1.3.0-mcopidl.patch,418 bytes, patch)
2004-10-02 19:33 UTC, Keith Landry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2004-05-31 02:46:08 UTC
When I try to compile arts, I get the following error:

make[3]: Entering directory `/var/tmp/portage/arts-1.3.0_alpha1/work/arts-1.2.90
/flow'
../mcopidl/mcopidl -t ../flow/artsflow.idl
../mcopidl/mcopidl -t ../flow/artsflow.idl
make[3]: *** [artsflow.cc] Segmentation fault
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [artsflow.h] Segmentation fault
make[3]: Leaving directory `/var/tmp/portage/arts-1.3.0_alpha1/work/arts-1.2.90/
flow'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.3.0_alpha1/work/arts-1.2.90/
flow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.3.0_alpha1/work/arts-1.2.90'
make: *** [all] Error 2



It's the same error for gcc 3.2 and 3.3-alpha ebuilds. Can other people with gcc 3.4 reproduce this?
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-05-31 21:13:15 UTC
works for me, can you give us the output of emerge info?
Comment 2 Hanno Böck gentoo-dev 2004-06-01 00:43:44 UTC
emerge info:

Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.          6.6)
=================================================================
System uname: 2.6.6 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -fstack-protector -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s          hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dv          ipdfm/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="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -fstack-protector -pip          e"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 avi caca crypt cups dvd dvdr encode foomaticdb gd gif           gimpprint gpm gtk2 gtkhtml hbci input_devices_synaptics jpeg kde libcaca libg++           libwww linguas_de mad mikmod mmx mng mozilla mpeg ncurses nls nptl oggvorbis ooo          -kde opengl pam pdflib perl png python qt quicktime readline scanner sdl slang s          se ssl tetex truetype x86 xface xml2 xv xvid zlib"
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-06-01 05:20:51 UTC
this doesn't look to be gcc 3.4 related, but probably more likely due to the -msse2 flag.
Comment 4 Hanno Böck gentoo-dev 2004-06-01 05:46:46 UTC
caleb: Tried, fails with the same error without the msse2-flag.
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-06-01 05:52:21 UTC
Hmm.  I've seen errors regarding both mcopidl and dcopidl that just segfault and I'm not exactly sure what the common theme is that could be causing it.  Can you try running them (mcopidl) in the workdir and seeing if it segfaults outside of portage...perhaps with strace?
Comment 6 Hanno Böck gentoo-dev 2004-06-01 06:16:23 UTC
starting mcopidl without parameters, it shows it's helpscreen, starting it with -t artsflow.idl, I get the same segfault.

strace-output is attached.

Comment 7 Hanno Böck gentoo-dev 2004-06-01 06:17:52 UTC
Created attachment 32455 [details]
strace output for mcopidl
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-06-01 06:31:57 UTC
When I run the command, where your segfault happens, I get:

write(2, "a", 1a)                        = 1
write(2, "r", 1r)                        = 1
write(2, "t", 1t)                        = 1
write(2, "s", 1s)                        = 1
write(2, "f", 1f)                        = 1
write(2, "l", 1l)                        = 1
write(2, "o", 1o)                        = 1
write(2, "w", 1w)                        = 1
write(2, ".", 1.)                        = 1
write(2, "i", 1i)                        = 1
write(2, "d", 1d)                        = 1
write(2, "l", 1l)                        = 1

So it seems to me that something is prohibiting your implementation from writing to the file.
Comment 9 Hanno Böck gentoo-dev 2004-06-01 12:50:50 UTC
caleb: any idea what i could try to find out the reason for this?
Comment 10 Hanno Böck gentoo-dev 2004-06-10 08:14:48 UTC
After some further investigation, I found out that mcopidl doesn't segfault if it's compiled without -fstack-protector.
So here seems to be the problem. Adding gentoo-hardened to cc, please have a look at this.
Comment 11 solar (RETIRED) gentoo-dev 2004-06-10 09:07:03 UTC
strace is only so helpfull in this case something happening after the mmap() call

How about gdb && ltrace

ulimit -c unlimited
FEATURES="nostrip keepwork keeptemp" CFLAGS="-g -ggdb" CXXFLAGS="-g -ggdb" LDFLAGS="-ggdb" ebuild arts-1.2.90.ebuild clean unpack compile

Then go get a backtrace off of the core dump.
gdb /path/to/mcopidl /path/to/core
bt full

ltrace works pretty much exactly like strace but it can trace libs (your quickest bet).

Also what does mcopidl do in the build process of arts? 
It it linked to the c library right?

If all else fails you could always write a patch which appends -fno-stack-protector when mcopidl gets compiled.

Note this is probably an upstream bug.
Comment 12 solar (RETIRED) gentoo-dev 2004-07-15 08:39:10 UTC
Lv, why did you reassign this bug to the toolchain herd?
Comment 13 Naadir Jeewa 2004-09-01 01:08:43 UTC
I'm using GCC 3.4. Removing -fstack-protector still resulted in failure.
However, I was successful when doing the following:
Bad CFLAGS="-march=pentium-m -fstack-protector -pipe -O2 -fomit-frame-pointer"
Successful CFLAGS="-march=i686 -fno-unit-at-a-time -O2 -pipe -fomit-frame-pointer"
Change MAKEOPTS to "-j1"
Removed distcc from FEATURES.
Not sure which one cured it, but I doubt distcc was at fault as another machine also failed on building arts without distcc.

emerge info output:
Portage 2.0.50-r10 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-nitro6)
=================================================================
System uname: 2.6.8-nitro6 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /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="-march=pentium-m -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/mirror/www.ibiblio.org/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X X509 Xaw3d aac aalib accessibility accounting acl acpi acpi4linux activefilter adns aim aliaschain alsa amd anthy antlr apache2 arts asterisk async athena atlas auctex audiofile avantgo avi bcel bcmath bdf beep berkdb bidi blas blender-game bluetooth bonobo bootsplash bsh bzlib c calendar canna cap caps cardbus cdb cddb cdf cdinstall cdparanoia cdr cdrom cgi chasen chroot cjk clamav clanJavaScript clanVoice client clisp cln cmucl cnamefix codecs cpdflib crypt cscope ctype cups curl curlwrappers cyrus dba dbcp dbm dbx dedicated dga dillo dio directfb distcache distribution divx4linux djbfft dmx dnd dnsdb drac droproot dts dv dvb dvd dvdr dvdread editor edl emacs emacs-w3 encode erandom escreen esd estraier ethereal etwin evo exif extensions f77 faac faad fam fastcgi fax fbcon fbdev ffmpeg fftw flac flash flatfile flood fluidsynth fmod foomaticdb foreign-package foreign-sysvinit frascend freetts freetype freewnn frlargefiles frxp fs ftp fwdzone gatos gb gcj gcl gd gdbm geoip ggi gif gimp gimpprint ginac gkrellm glade glgd gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gnutls gphoto2 gpm gps graphvis graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile hardened hardenedphp hbci hdf hdf5 hub iconv icq icu ide idea idl ieee1394 image imagemagick imap imlib imlib2 inifile innodb intl ipalias ipcs ipv6 ipv6arpa irda irmc j2ee jabber jack jack-tmpfs java javacomm javadoc javamail javascript jbig jboss jce jdepend jikes jit jmx joystick jp2 jpeg jsch jta jython kadu-modules kadu-voice kakasi kde kerberos ladcca latex lcd lcms ldap ldirectord leim libcaca libdsk libg++ libgda libsamplerate libwww lids lirc live lm_sensors lmtp log4j ltsp lua lucid lufsusermount lzo lzw lzw-tiff m17n-lib mad maildrop mailwrapper matroska mbox mbrola mcal mcve md5sum mdb mecab mhash migemo mikmod milter mime ming mixer mldonkeypango mmap mmx mmx2 mng moneyplex monkey mono motif mozcalendar moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msdav msn mule multipleip music mysql mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nas native ncurses net netcdf nethack network neural nhc98 nis nls nntp nocd nptl ntlm nvidia nviz oav objc ocaml offensive ofx oggvorbis openal opengl opie optional-tasks orathreads oro oscar ospfapi oss pam parse-clocks passfile pcap pcmcia pcntl pcre pda pdf pdflib pear-db perl php physfs pic pie plotutils png pnp portaudio postgresql ppds prelude print procmail psyco pthreads python qemu-fast qhull qt quicktime quotes radeon radius readline recode regexp rhino rogue roundrobin rplay rtc samba sasl sdl semanticfix server servlet-2.4 session shaper shared sharedmem sheep silc silverxp simplexml skey skk slang slp smartcard smime sndfile snmp snortsam soap sockets softmmu softquota soundtouch sox spamassassin speedo speex spell spl sqlite src sse sse2 ssl stats stencil-buffer stroke struts subject-rewrite svg svga sysvipc szip t1lib tcltk tcpd tcsim tetex tga theora threads tidy tiff timidity tlen tokenizer tools transcode translator transparent-proxy truetype trusted type1 ucs4 uim unicode usagi usb uudeview v4l v4l2 vda vhosts videos vim-with-x virus-scan vnc vpopmail wavelan wddx wifi wildlsearch wmf wolk-bootsplash wolk-supermount wsconvert wxwin wxwindows x86 xalan xatrix xchatdccserver xchatnogtk xchattext xemacs xerces xface xforms xine xinerama xml xml2 xmlrpc xmma xmms xosd xpm xprint xrandr xsl xv xvid xvmc yahoo yaz yv12 zeo zlib zvbi"
Comment 14 Travis Tilley (RETIRED) gentoo-dev 2004-09-01 01:24:59 UTC
...i did?

i doubt that it was -fno-unit-at-a-time that fixed this, since arts 1.3.0 compiles fine here using gcc 3.4. -march=pentium-m is more likely, there have been a number of issues caused by this already.
Comment 15 Naadir Jeewa 2004-09-01 07:46:42 UTC
Well, I had tried march=pentium3, and that also failed. Also, the fact that it fails in the same place on an Athlon-XP system indicates that it should be something else. I have a feeling it's makeopts. I'll give it a go and find out.
Comment 16 solar (RETIRED) gentoo-dev 2004-09-01 16:42:51 UTC
Well somebody has that uses arts and -fstack-* needs to edit the Makefile where arts builds the mcopidl append -fno-stack-protector make a diff and attach it here.

Then the ebuild should do something like so in the src_unpack().

if (is-flag-fstack-protector || is-flag -fstack-protector-all || use hardened); 
then
       epatch ${FILESDIR}/${PN}-${PV}-mcopidl.patch
fi
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2004-09-02 14:05:12 UTC
*** Bug 62633 has been marked as a duplicate of this bug. ***
Comment 18 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-09-10 08:40:57 UTC
Created attachment 39322 [details, diff]
arts-1.3.0-mcopidl.patch

This patch (along with ebuild modifications that solar proposed in comment #16)
lets me compile arts-1.3.0 with hardened gcc-3.4.2
Comment 19 Keith Landry 2004-10-02 19:33:35 UTC
Created attachment 40965 [details, diff]
adds -fno-stack-protector-all to patch from comment  #18

Added -fno-stack-protector-all to patch as well. 
Allows build to complete when using this flag.
Comment 20 Andreas Kobara 2004-10-14 12:20:03 UTC
needed for arts-1.3.1 as well, please commit to portage-tree
Comment 21 Simone Gotti (RETIRED) gentoo-dev 2004-10-20 14:05:39 UTC
*** Bug 68148 has been marked as a duplicate of this bug. ***
Comment 22 Simone Gotti (RETIRED) gentoo-dev 2004-10-26 03:19:17 UTC
*** Bug 68955 has been marked as a duplicate of this bug. ***
Comment 23 Caleb Tennis (RETIRED) gentoo-dev 2004-12-08 18:22:12 UTC
*** Bug 65384 has been marked as a duplicate of this bug. ***
Comment 24 Shawn Stricker 2004-12-09 02:52:44 UTC
i just encountered the same bug in 1.3.2 on an Athlon-XP 1900
Comment 25 Shawn Stricker 2004-12-09 03:04:24 UTC
after appling patch from <a href="http://bugs.gentoo.org/show_bug.cgi?id=52533#c19">comment #19</a> emerge completed successfully
Comment 26 Caleb Tennis (RETIRED) gentoo-dev 2004-12-09 03:32:53 UTC
This patch should now be applied for arts 1.3.2
Comment 27 Caleb Tennis (RETIRED) gentoo-dev 2004-12-10 04:42:30 UTC
*** Bug 73974 has been marked as a duplicate of this bug. ***
Comment 28 Tro 2004-12-10 07:51:47 UTC
Just synced and tried emerging arts 1.3.2. Didn't work.

Making all in gslpp
make[3]: Entering directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2/flow/gslpp'
/bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../flow -I../../flow/gsl -I../../flow -I../../mcop -I../.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include  -I../../libltdl  -DQT_THREAD_SUPPORT  -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -ftemplate-depth-99  -c -o datahandle.lo `test -f 'datahandle.cpp' || echo './'`datahandle.cpp
/bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -ftemplate-depth-99    -o libgslpp.la  datahandle.lo
make[3]: Leaving directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2/flow/gslpp'
make[3]: Entering directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2/flow'
../mcopidl/mcopidl -t ../flow/artsflow.idl
../mcopidl/mcopidl -t ../flow/artsflow.idl
make[3]: *** [artsflow.cc] Segmentation fault
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [artsflow.h] Segmentation fault
make[3]: Leaving directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2/flow'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2/flow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.3.2/work/arts-1.3.2'
make: *** [all] Error 2

!!! ERROR: kde-base/arts-1.3.2 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.

==================================

Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Mobile Intel(R) Pentium(R) 4     CPU 2.80GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov  6 2004, 18:01:00)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks moo sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/ http://gentoo.mirrors.pair.com/ http://gentoo.seren.com/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 acpi aim alsa apm arts artswrappersuid avantgo avi berkdb bigger-fonts bitmap-fonts bootspla bootsplash bzlib cddb cdparanoia cdr cdromclient codecs crypt cups curl curlwrappers dba dbx divx4linux dv dvd dvdread emacs encode escreen exif f77 faac faad fam fbcon flac foomaticdb fortran freetype gd gdbm gif gimpprint gnutls gphoto2 gpm gs gtk gtk2 gtkhtml icq idea imagemagick imap imlib ipv6 jabber java javascript jikes jpeg junit kde ldap libg++ libwww lm_sensors mad maildir mailwrapper md5sum mikmod mime motif mozilla moznocompose moznoirc moznomail moznoxft mp3 mpeg mpeg4 mplayer msn ncurses network nls nntp nvidia odbc oggvorbis ooo-kde opengl operanom2 oscar oss pam pcmcia pcre pda pdf pdflib perl png pnp povray prelude python qt quicktime radeon readline real ruby samba scanner sdl silc slang smime speedo spell ssl svga tcltk tcpd tidy tiff transcode truetype type1 unicode usb v4l vim-with-x wifi x86 xine xml xml2 xmlrpc xmms xscreensaver xv xvid xvmc zlib"

As you can see, I don't even have the -fstack-protector flag.
Comment 29 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-10 09:21:05 UTC
*** Bug 74004 has been marked as a duplicate of this bug. ***
Comment 30 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-10 09:21:45 UTC
still an issue as it seems
Comment 31 Caleb Tennis (RETIRED) gentoo-dev 2004-12-10 09:30:57 UTC
did you use to have it?  Did you run the hardened use flag?  Perhaps ccache still has some old object files lying around.
Comment 32 Andreas Korinek 2004-12-10 09:51:34 UTC
This is the first time the problem occurs, and I don't have hardenend in my use flags.
Comment 33 Tro 2004-12-10 11:32:13 UTC
First time this error occurs. Don't use hardened.

I've been having problems compiling kde packages in general. It's a different error for each, I think, but all may be caused by the same thing that's breaking arts.
Comment 34 Tro 2004-12-10 15:47:30 UTC
I just added -fstack-protector to my CFLAGS and arts compiled properly. Here's the forum post with this workaround: http://forums.gentoo.org/viewtopic.php?t=234702&highlight=arts#1864070
Comment 35 Andreas Korinek 2004-12-11 00:52:35 UTC
Adding -fstack-protector doesn't help in my case
Comment 36 Caleb Tennis (RETIRED) gentoo-dev 2004-12-11 03:41:17 UTC
*** Bug 74050 has been marked as a duplicate of this bug. ***
Comment 37 James 2004-12-12 07:04:07 UTC
I also have the same problem.
make[3]: *** [artsflow.cc] Segmentation fault 

emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc1 i686)
=================================================================
System uname: 2.6.10-rc1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 12 2004, 20:31:45)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r1
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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 -pipe"
DISTDIR="/u/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/u/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups dba dvd dvdr encode esd f77 fam flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java joystick jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls objc oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl scanner sdl slang spell sqlite ssl svga tcltk tcpd tetex threads tiff truetype usb x86 xml xml2 xmms xv zlib"
Comment 38 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-14 10:38:19 UTC
*** Bug 74401 has been marked as a duplicate of this bug. ***
Comment 39 Theodore Randall 2004-12-16 21:26:51 UTC
I was having this problem, and I found that by adding -fstack-protector, arts-1.3.2 compiles as stated by Dmitri Vassilenko.

This is my setup after adding -fstack-protector only.

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3y i686)
=================================================================
System uname: 2.6.9-gentoo-r3y i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Jun  6 2004, 15:37:34)]
distcc 2.18.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r1
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fstack-protector"
CHOST="i686-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/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dga directfb encode esd f77 fam fbcon foomaticdb fortran gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml gtksharp guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype usb x86 xml xml2 xmms xv zlib"
Comment 40 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-19 12:45:17 UTC
*** Bug 74964 has been marked as a duplicate of this bug. ***
Comment 41 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-20 13:15:11 UTC
*** Bug 75080 has been marked as a duplicate of this bug. ***
Comment 42 Alexander Skwar 2005-06-06 22:06:20 UTC
I'd like to report, that I've got this problem as well with arts 3.4.1.

- I never used a "hardened" tc.
- CFLAGS="-O2 -march=athlon-xp -pipe"
- Adding -fstack-protector or -fno-stack-protector doesn't change anything.


[06:48:07 alexander@server:~] $ emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-ck8-r1.ASN.003.reiser4.module i686)
=================================================================
System uname: 2.6.11-ck8-r1.ASN.003.reiser4.module i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acl alsa apache2 apm arts artswrappersuid async avi
bash-completion bluetooth bzlib cairo calendar caps cdda cddb cdparanoia cdr
cdrom codecs crypt cscope css cups dga divx4linux dvdread eds encode esd
ethereal exif faad fam fbcon fbdev ffmpeg fftw firefox flash foomaticdb ftp
fwdzone gd gdbm gif gimp gimpprint gmail gnokii gnome gphoto2 gpm gs gstreamer
gtk gtk2 guile hal iconv idn imagemagick imap imlib java javascript jpeg kde
kdeenablefinal kdexdeltas libedit libwww logitech-mouse logrotate lufsusermount
lzo lzw lzw-tiff mad maildir matroska matrox mbox mime mmap mmx mng mozdevelop
mozilla moznocompose moznoirc mozp3p mozsvg mp3 mpeg mplayer ncurses network nls
no-old-linux no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging
nocommonsnet nojdepend nojsch nojython nolog4j nooro nopop3d noregexp norhino
noxalan noxerces nptl offensive ofx ogg oggvorbis opengl oss pam parse-clocks
pcntl pcre pda pdflib perl pic pie png posix ppds python qt quicktime quotes
rdesktop readline real recode samba sasl shared slang sockets speex spell sse
ssl svg symlink sysvipc tcltk tcpd theora tidy tiff truetype truetype-fonts
type1-fonts unicode usb usepackagedmakefiles vcd videos vim vim-pager vim-with-x
vorbis wmf wsconvert x11vnc xchattext xfs xine xml2 xmms xv xvid zlib
video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Comment 43 Alexander Skwar 2005-06-08 01:07:47 UTC
Here's my backtrace of running
/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcopidl/.libs/lt-mcopidl. Please
also see bug #95423, which, in my oppinion, seems to be somewhat related.

$
LD_LIBRARY_PATH=/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcopidl/../mcop/.libs:

/usr/lib:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4: gdb 
/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcopidl/.libs/lt-m 
copidl core

GNU gdb 6.3

Copyright 2004 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".



Core was generated by
`/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcopidl/.libs/lt-mcopidl'.

Program terminated with signal 11, Segmentation fault.



warning: current_sos: Can't read pathname for load map: Eingabe-/Ausgabefehler



Reading symbols from
/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcop/.libs/libmcop.so.1...done.

Loaded symbols for
/var/tmp/portage/arts-3.4.1-r1/work/arts-1.4.1/mcopidl/../mcop/.libs/libmcop.so.1

Reading symbols from /usr/lib/libgmodule-2.0.so.0...done.

Loaded symbols for /usr/lib/libgmodule-2.0.so.0

Reading symbols from /usr/lib/libgthread-2.0.so.0...done.

Loaded symbols for /usr/lib/libgthread-2.0.so.0

Reading symbols from /usr/lib/libglib-2.0.so.0...done.

Loaded symbols for /usr/lib/libglib-2.0.so.0

Reading symbols from /lib/libdl.so.2...done.

Loaded symbols for /lib/libdl.so.2

Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4/libstdc++.so.6...done.

Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6

Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1...done.

Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1

Reading symbols from /lib/tls/libpthread.so.0...done.

Loaded symbols for /lib/tls/libpthread.so.0

Reading symbols from /lib/tls/libm.so.6...done.

Loaded symbols for /lib/tls/libm.so.6

Reading symbols from /usr/lib/libc.so.6...done.

Loaded symbols for /usr/lib/libc.so.6

Reading symbols from /lib/ld-linux.so.2...done.

Loaded symbols for /lib/ld-linux.so.2

#0  0xb7cdbf0c in memcpy () from /usr/lib/libc.so.6

(gdb) bt full

#0  0xb7cdbf0c in memcpy () from /usr/lib/libc.so.6

No symbol table info available.

#1  0xb7d350df in __libc_pthread_init () from /usr/lib/libc.so.6

No symbol table info available.

#2  0xb7daf79f in __pthread_initialize_minimal_internal () from
/lib/tls/libpthread.so.0

No symbol table info available.

#3  0xb7daf348 in call_initialize_minimal () from /lib/tls/libpthread.so.0

No symbol table info available.

#4  0xb7daeef8 in _init () from /lib/tls/libpthread.so.0

No symbol table info available.

#5  0xb7ff6914 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2

No symbol table info available.

#6  0xb7ff6a60 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2

No symbol table info available.

#7  0xb7feb86f in ?? () from /lib/ld-linux.so.2

No symbol table info available.

(gdb) _alexander@server:~\[[01;31m10:05:39
[01;38malexander[00m@[01;35mserver[00m:[01;34m~[00m] $ [K
Comment 44 Dan Armak (RETIRED) gentoo-dev 2005-07-01 09:20:42 UTC
Just a note for people experiencing this bug: KDE can be built without arts 
(USE=-arts) except for a few apps (use the split ebuilds). 
Comment 45 Patrick Audley 2005-07-02 09:12:25 UTC
I just ran into this problem on my new Athlon64.  After tinkering quite a bit I 
eventually compared my use flags to my working athlon system and found one 
difference: "threads".  After removing it and running "emerge -e system" I was 
then able to build arts (both the ebuild and SVN head for arts). CFLAGS and 
LDFLAGS make no difference after the threads use flag change - both moderate and 
 more aggressive values work well now.
Comment 46 Dan Armak (RETIRED) gentoo-dev 2005-07-02 09:59:02 UTC
On my athlon64: 
------------- 
beta / # equery h threads 
[ Searching for USE flag threads in all categories among: ] 
 * installed packages 
[I--] [  ] app-crypt/gpg-agent-1.9.16 (0) 
[I--] [  ] dev-lang/ruby-1.8.3_pre1 (1.8) 
[I--] [  ] dev-libs/qsa-1.1.1 (0) 
[I--] [  ] dev-libs/boost-1.32.0-r4 (1) 
[I--] [  ] media-video/ffmpeg-0.4.9_p20050226-r5 (0) 
beta / #   
----------- 
None of these can affect the building of arts in any way. Patrick, does the 
above command show any other interesting packages on your box? 
Comment 47 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-29 00:59:37 UTC
*** Bug 100648 has been marked as a duplicate of this bug. ***
Comment 48 Hans-Christian Armingeon 2005-07-29 01:12:47 UTC
Well, debian fixed the issue another way. 
http://lists.debian.org/debian-qt-kde/2005/03/msg00135.html  
 
btw, what means kdeenablefinal? 
Comment 49 Hans-Christian Armingeon 2005-07-29 01:49:04 UTC
Adding hardened fixed this issue for me.  
USE="hardened" emerge --oneshot arts  
  
I'm trying to build with   
USE="hardened kdeenablefinal" emerge --oneshot arts  
 
and it works, too. 
 
Johnny 
Comment 50 Dan Armak (RETIRED) gentoo-dev 2005-07-29 06:06:57 UTC
Summary of debian bug 260747, referenced from debian bug 265961 (which you   
linked to): a bug in gcc 3.4.1, believed fixed in debian gcc-3.4.2-3 (and I  
can't reproduce here - amd64, gcc 3.4.4), with the following testcase:  
-------- foo.cpp ---------------  
#include <iostream>  
  
class Foo {  
  public:  
    Foo() { destroyed_ = false; }  
    ~Foo() { if (destroyed_) std::cerr << "Destructor called twice!\n";  
destroyed_ = true; }  
    void nop() { }  
  
  private:  
    bool destroyed_;  
};  
  
Foo bar;  
  
int main() {  
  bar.nop();  
  return 0;  
}  
  
extern Foo bar;  
---------------------  
With a buggy gcc, the destructor of the global Foo object was called twice,   
causing the segfault in mcopidl.  
  
The original bugreport here was with gcc 3.4.0, so this may have been the same 
bug, but now people are reporting this with gcc 3.4.4.... People still  
experiencing this, please try out the above testcase. 
 
I'm also still waiting for an answer as to how USE=threads could be affecting 
anything. 
 
And, kdeenablefinal enables the --enable-final parameter to KDE configure 
scripts. What this does is take all the .cpp files used to build a binary, 
create a new .cpp that #includes them all, and compile that. This means you 
only get one .o per binary, rather than several. Because a lot of headers etc. 
are processed again for every compilation run (lacking precompiled headers), 
this makes compilation much faster, but it also requires a LOT of ram, hence 
it's optional. The final output isn't bit-identical, of course, but generally 
speaking there's no real difference in performance etc., so the only time we 
care whether something was compiled with enable-final is when the compiler is 
buggy (or the code is). 
Comment 51 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-19 10:36:04 UTC
*** Bug 95499 has been marked as a duplicate of this bug. ***
Comment 52 Dave Andruczyk 2006-02-02 14:41:54 UTC
I WAS using a hardened gcc-config profile (gcc-3.4.4) and it crashed in the same area with the same problem.  Switching to the non-hardened profile and all compiled nice-nice.

emerge info:
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.16
-rc1 i686)
=================================================================
System uname: 2.6.16-rc1 i686 AMD Athlon(tm) MP
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon-mp -O2 -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/
mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/sh
are/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/te
x/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=athlon-mp -O2 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/g
entoo ftp://gentoo.blueyonder.co.uk/mirrors/gentoo"
MAKEOPTS=" -j3 "
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acl alsa apm arts avi berkdb bidi bitmap
-fonts cdparanoia cdr crypt cups curl dga directfb dts dv dvb dvd dvdread eds em
boss encode esd fame fbcon foomaticdb fortran gdbm ggi gif gnome gpm gstreamer g
tk gtk2 imagemagick imlib ipv6 jack java joystick jpeg kde libcaca libg++ libwww
 lirc live mad matroksa mikmod mjpeg mmx mmxext motif mp3 mpeg mythtv ncurses ne
twork nls nptl nsplugin nvidia ogg oggvorbis openal opengl oss pam pdflib perl p
ng ppds python qt quicktime readline real rtc ruby samba sdl spell sse sse2 ssl 
svga tcpd tga theora tiff truetype truetype-fonts type1-fonts usb v4l v4l2 video
s vorbis win32codecs wmf xanim xml2 xmms xprint xv xvid zlib elibc_glibc kernel_
linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 53 Benjamin W. Fisher 2006-07-31 23:29:47 UTC
I am having this same problem here now, months later.  Looks like this has been a long-standing bug.  BTW, my -march is i686.

~ $ emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Dual Core AMD Opteron(tm) Processor 170
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hardened hardenedphp imlib isdnlog ithreads jpeg kerberos krb4 ldap libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl php png postgres pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd threads truetype truetype-fonts type1-fonts udev usb verbose vorbis wifi win32codecs xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

here's my error:
../mcopidl/mcopidl -t ../flow/artsflow.idl
make[3]: *** [artsflow.cc] Segmentation fault
make[3]: Leaving directory `/var/tmp/portage/arts-3.5.2-r1/work/arts-1.5.2/flow'make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-3.5.2-r1/work/arts-1.5.2/flow'make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-3.5.2-r1/work/arts-1.5.2'
make: *** [all] Error 2

!!! ERROR: kde-base/arts-3.5.2-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  arts-3.5.2-r1.ebuild, line 70:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 323:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 319:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 54 Charlie Shepherd (RETIRED) gentoo-dev 2007-01-31 22:32:30 UTC
Is this still an issue with arts-3.5.5?
Comment 55 Kornelis 2007-02-25 14:17:39 UTC
(In reply to comment #54)
> Is this still an issue with arts-3.5.5?
> 

Unfortunately it is, i'm currently having the exact same problem on my laptop as well as my desktop computer after upgrading GCC to 4.1.2 :(

I've been trying several versions of QT to compile arts/kdelibs with. With QT4 arts doesn't pass ./configure and with QT 3.3.x it comes to the mcopidl segfault as described in this bug.

I have also tried to add -fstack-protector and -fnostack-protector to my CFLAGS but it didn't help.. Since hardened is not in arts' USE-flags anymore it seems to me that it's useless to try USE="hardened" emerge arts...

Since i've been trying all this on my laptop, here's the emerge --info of it:

Portage 2.1.2-r10 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo-NoBody i686)
=================================================================
System uname: 2.6.20-gentoo-NoBody i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 22 Feb 2007 23:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -mno-sse2 -fomit-frame-pointer -O2 -pipe"
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/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-mtune=pentium4 -mno-sse2 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache clean distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="nl_NL"
LC_ALL="nl_NL.UTF-8"
LINGUAS="nl fy en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acpi alias alsa arts asf audacious autoreplace berkdb bitmap-fonts buttons bzip2 cdparanoia cdr cli connectionstatus contactnotes cpudetection cracklib crypt css cups directfb divx divx4linux dri dvd dvdread eds emboss encode erandom ethereal fbcon foomaticdb fortran fping gdbm gif glib gmedia gpm gstreamer gtk gtk2 highlight iconv ieee1394 imagemagick imlib ipv6 isdnlog java jpeg kde libg++ libwww logitech-mouse mad matroska midi mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg mplayer ncurses network nls nowlistening nptl nsplugin objc objc++ odbc offensive ogg on-the-fly-crypt oss pam pcmcia pcre pdf perl php png pppd python qt qt3 qt3support quicktime rar readline real realmedia reflection rtc samba sasl sdk sdl session sms spell spl sql sse sse2 ssl statistics subtitles symlink tcpd texteffects tiff timidity truetype truetype-fonts type1-fonts unicode urandom v4l v4l2 vcd vorbis wifi win32codecs winpopup wmp x86 xchatdccserver xcomposite xine xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="intel8x0" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl fy en" USERLAND="GNU" VIDEO_CARDS="sis vesa vga fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 56 Kornelis 2007-03-04 01:57:19 UTC
I solved the problem today after starting to use gdb and ldd, to (back)trace the segfault. It appeared mcopidl was using all NPTL libs, except libc.so.6, from /lib/tls. There was an old symlink /usr/lib/libc.so.6, linking to /lib/libc.so.6 (thus the deprecated linuxthreads version). mcopidl used /usr/lib/libc.so.6, combined with libraries from /lib/tls/, causing the segmentation fault (it must use either NPTL or linuxthreads, not both at the same time).

After removing the symlink /usr/lib/libc.so.6, mcopidl works and arts (as well as the other kde-related tools/programs) is now able to fully emerge.

After almost a whole week of recompiling everything one can think of and lots of researching, i hope that this information will be helping others as well in the (near) future.

Since no one else has recently been reporting this bug in here, my thought is that this bug can be closed.
Comment 57 Charlie Shepherd (RETIRED) gentoo-dev 2007-03-18 07:27:10 UTC
(In reply to comment #56)
> Since no one else has recently been reporting this bug in here, my thought is
> that this bug can be closed.

Closing.