Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159949 - [4.1/bad-code] www-client/kazehakase segfaults at start when compiled with -Os CFLAG
Summary: [4.1/bad-code] www-client/kazehakase segfaults at start when compiled with -O...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-04 04:49 UTC by SWEkht
Modified: 2007-06-02 02:41 UTC (History)
5 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 SWEkht 2007-01-04 04:49:47 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; U;) Gecko/20061223 Kazehakase/0.4.3
Build Identifier: 

Kazehakase segfaults immidiately at start when compiled with the -Os CFLAG.
After I changed it to -O2 in my make.conf and recompiled Kazehakase the problem
is gone.

Reproducible: Always

Steps to Reproduce:
1.Change your CFLAGS to -Os
2.Recompile Kazehakase
3.Run Kazehakase




Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4,
2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 Pentium II (Klamath)
Gentoo Base System version 1.12.6
Last Sync: Sat, 30 Dec 2006 13:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
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.60
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo  http://mirror.gentoo.se
http://ds.thn.htu.se/linux/gentoo"
LANG="sv_SE"
LINGUAS="sv 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 /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.se/gentoo-portage"
USE="x86 X alsa alsa_cards_cs4236 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw
alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix
alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty
alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks
alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa
alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter
alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null
alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route
alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol berkdb
bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dvd dvdr eds
elibc_glibc emboss encode fam firefox fortran gdbm gif gpm gstreamer gtk gtk2
hal iconv input_devices_evdev input_devices_keyboard ipv6 isdnlog jpeg
kernel_linux ldap libg++ linguas_en linguas_sv mad mikmod mmx mp3 mpeg ncurses
nls nptl nptlonly ogg pam pcre perl pic png ppds pppd python qt3 qt4 quicktime
readline reflection samba sdl session spell spl ssl startup-notification tcpd
truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_mach64
vorbis win32codecs xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-04 09:33:06 UTC
Kindly review http://bugs.gentoo.org/page.cgi?id=fields.html#bug_severity and reopen with a backtrace...

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 SWEkht 2007-01-07 12:30:29 UTC
I'm sorry for the wrong severity, anyway here's a backtrace:

Starting program: /usr/bin/kazehakase 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1210751312 (LWP 6100)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210751312 (LWP 6100)]
0xb7dec175 in nsAString_internal::GetReadableBuffer ()
   from /usr/lib/mozilla-firefox/libxpcom_core.so
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2007-01-07 13:55:53 UTC
it works fine on my amd64 with -Os.
does anybody have the same problem?

Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.6
Last Sync: Unknown
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5, 2.4.3-r4
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.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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=k8 -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/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ja_JP.UTF-8"
LINGUAS="ja"
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="/home/matsuu/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="cvs://matsuu@cvs.gentoo.org:/var/cvsroot"
USE="amd64 X aac alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol anthy apache2 arts asf ati berkdb bitmap-fonts bluetooth cjk cli cracklib crypt ctype cups dbus dga divx dlloader dri dv dvd eds elibc_glibc emboss encode esd ffmpeg firefox foomaticdb fortran gcj gif gmedia gnome gpm gstreamer gtk gtk2 iconv imlib immqt-bc input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kerberos kernel_linux linguas_ja lzw lzw-tiff matroska mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pcsc-lite pdf perl png pppd python qt3 qt4 quicktime readline realmedia reflection sdl session slang spell spl ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_ati video_cards_radeon vorbis wmp wxwindows x264 xine xorg xpm xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Adam 2007-05-08 00:16:09 UTC
(In reply to comment #3)
> it works fine on my amd64 with -Os.
> does anybody have the same problem?

Yes, me.

Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-suspend2-r1aid i686)
=================================================================
System uname: 2.6.18-suspend2-r1aid i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 05 May 2007 22:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4m -Os -pipe -mmmx -msse -msse2 -mfpmath=sse,387 -ftracer -falign-functions=4 -falign-jumps=4 -fomit-frame-pointer -frename-registers -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4m -Os -pipe -mmmx -msse -msse2 -mfpmath=sse,387 -ftracer -falign-functions=4 -falign-jumps=4 -fomit-frame-pointer -frename-registers -maccumulate-outgoing-args"
DISTDIR="/home/portage-tmp/distfiles"
FEATURES="candy distcc distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo ftp://trumpetti.atm.tut.fi/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror"
LANG="en_US"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--as-needed -s"
LINGUAS="en en_GB de ja"
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/home/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/local/portage /usr/portage/local/ifolder-overlay /usr/local/portage/chungles-overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac acpi alsa ao avahi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt cscope cups curl dbus dri dvd emacs emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glut gnome gnuplot gpm gstreamer gtk hal iconv ipv6 isdnlog jack java joystick jpeg ldap libcaca libg++ libnotify mad midi mikmod mmx mp3 mpeg ncurses net nls nptl nptlonly nsplugin offensive ogg opengl oss pam pango pcmcia pcre pdf perl pic png ppds pppd pulseaudio python qt3 qt4 quicktime readline reflection ruby samba sdl session sid sndfile spell spl sqlite sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode utf8 vim vorbis win32codecs x86 xml xorg xv 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de ja" USERLAND="GNU" VIDEO_CARDS="apm dummy radeon v4l vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2007-06-02 02:41:57 UTC
Fixed in cvs.