Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147222 - strfry() segfaults on amd64
Summary: strfry() segfaults on amd64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://eli.neoturbine.net/coding/echo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-11 12:34 UTC by eli
Modified: 2006-09-12 12:40 UTC (History)
0 users

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


Attachments
this is a short example of a C program that will segfault on amd64 (strfry.c,114 bytes, text/plain)
2006-09-11 15:32 UTC, eli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eli 2006-09-11 12:34:55 UTC
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/ ftp://ftp.wwc.edu/pub/mirrors/ftp.gentoo.org "
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/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa amd64 apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cjk cli crypt ctype cups dba debug dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild fbcon firefox-bin foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp gkrellm glitz glut gmp gnome gpm gstreamer gtk2 gtkhtml guile gvim idn imlib ipv6 isdnlog javascript joystick jpeg kde kdgraphics kernel_linux lcms libcaca libg++ libwww lzw lzw-tiff mad mbrola memlimit mikmod mng motif mp3 mpeg mplayer msn ncurses nls nptl nptlonly nsplugin nv nvidia ogg openal opengl oscar oss pam pcre pdf pdflib perl php png posix ppds pppd python qt qt3 qt4 quicktime readline reflection reiser4 reiserfs samba sdl session simplexml slang soap sockets sox spell spl sse-filters ssl svg syslog tcltk tcpd thesaurus tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU utf8 v4l v4l2 video-cards-nv video-cards-nvidia vim vim-with-x vorbis wma wma123 wordperfect x264 xanim xine xinerama xinetd xml xml2 xmms xorg xosd xpm xsl xv yahoo zip zlib input_devices_keyboard input_devices_mouse video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 14:38:57 UTC
How about posting some description and attaching some code to reproduce?
Comment 2 eli 2006-09-11 15:32:37 UTC
Created attachment 96756 [details]
this is a short example of a C program that will segfault on amd64

this only crashes on amd64, it works fine on my athlon.  it may be an issue for the glibc programmers...  i've googled around a bit but i'm not sure where to go with it.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 23:39:07 UTC
If you don't reopen after providing requested info, chances are noone will ever notice again.
Comment 4 SpanKY gentoo-dev 2006-09-12 12:40:31 UTC
your code sucks; read the strfry manpage

you need to define _GNU_SOURCE