I'm reporting this bug because the bugle library crashed when I was using it. The command was: # BUGLE_CHAIN="trace" LD_PRELOAD=/usr/lib/libbugle.so /usr/bin/glxgears *** %n in writable segment detected *** # I read that this issue is well known (http://www.opengl.org/sdk/tools/BuGLe/documentation/faq.php) and the solution is to add -U_FORTIFY_SOURCE to the CFLAGS of bugle. I modified the ebuild and everything works fine now. (I attach my ebuild below... sorry it's the first time I use bugzilla and I don't know how to post it ;) ) emerge --info Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r6-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_275-with-gentoo-1.12.13 Timestamp of tree: Wed, 05 May 2010 12:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p35 dev-java/java-config: 1.3.7-r1, 2.1.9-r1 dev-lang/python: 2.4.4-r9, 2.5.4-r2, 2.6.4 dev-python/pycrypto: 2.1.0_beta1 dev-util/ccache: 2.4-r7 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.3 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.33 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-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" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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" 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" 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/crs4 /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3-support qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner 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 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 keyboard mouse mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # bugle-0.0.20090801-r1.ebuild # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/bugle/bugle-0.0.20090801.ebuild,v 1. 2 2010/01/08 15:05:33 ssuominen Exp $ EAPI="2" inherit autotools eutils toolchain-funcs DESCRIPTION="A tool for OpenGL debugging" HOMEPAGE="http://www.opengl.org/sdk/tools/BuGLe/" SRC_URI="mirror://sourceforge/bugle/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ffmpeg gtk readline" DEPEND="ffmpeg? ( >=media-video/ffmpeg-0.5 ) gtk? ( x11-libs/gtk+ x11-libs/gtkglext ) readline? ( sys-libs/readline ) virtual/opengl media-libs/glew sys-libs/ncurses" RDEPEND="${DEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-asneeded.patch eautoreconf } src_configure() { econf \ --disable-dependency-tracking \ $(use_with ffmpeg lavc) \ $(use_with readline) \ $(use_with gtk) \ $(use_with gtk gtkglext) } src_compile() { emake CFLAGS="${CFLAGS} -U_FORTIFY_SOURCE" || die } src_install() { dodoc README TODO NEWS doc/*.{txt,html} || die "dodoc failed" docinto examples dodoc doc/examples/* || die "dodoc failed" emake DESTDIR="${D}" install || die "emake install failed" } pkg_postinst() { elog "See man 3 bugle for an introduction to BuGLe." } Reproducible: Always
Please create a diff -u and attach it to the report. (Hit "create new attachment")
Created attachment 230617 [details, diff] dev-util/bugle: diff file - add CFLAGS
Thanks for the patch, forwarding to maintainer.
Comment on attachment 230617 [details, diff] dev-util/bugle: diff file - add CFLAGS Will apply later today
Removed from main tree.