Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121109 - Reproduceable crash of rxvt-unicode >= version 7.0
Summary: Reproduceable crash of rxvt-unicode >= version 7.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
Depends on:
Reported: 2006-01-31 15:38 UTC by Brian Hall
Modified: 2006-04-09 05:39 UTC (History)
1 user (show)

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

patch against rxvt-unicode-7.7-r1.ebuild (rxvt-unicode-7.7-r1.patch,323 bytes, patch)
2006-04-09 05:37 UTC, Pietro Franchi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Hall 2006-01-31 15:38:08 UTC
I am running a Gentoo 2005.1 dual Opteron system, and I've been happily using urxvtd/c to save memory.

However, I have discovered for versions >=7.0 (up to and including 7.5) or rxvt-unicode, a reproduceable crash:

1) compile rxvt-unicode with -Os
2) after starting urxvtd in ~/.xinitrc, launch urxvtc
3) launch midnight commander (mc -a) in that term
4) urxvtd dies, killing all open urxvtc terms

Changing my CFLAGS to use -O2 vice -Os makes the problem go away. This problem didn't occur prior to 7.0, as far as I can remember. -Os has been working fine for me on my amd64 boxen for awhile now, gcc 3.4.5 is supposed to correctly handle -Os on amd64 AFAIK.

Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r1, 2.6.15-ck3 x86_64)
System uname: 2.6.15-ck3 x86_64 AMD Opteron(tm) Processor 244
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe"
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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe"
FEATURES="autoconfig buildpkg ccache digest distlocks nodoc noinfo parallel-fetch sfperms strict"
USE="amd64 7zip X a52 aac abook acpi allegro alsa apm artworkextra avi bash-completion berkdb bitmap-fonts ccache cdinstall cdio cdparanoia chroot crypt cups dedicated dga dillo dio dnd dvd dvdr dvdread effects emboss emul-linux-x86 encode ext-png ext-zlib extensions fame fat firefox flatfile foomaticdb fortran gb gd gif gimp gimpprint ginac glut glx gmail gmailtimestamps gnome gnome-print gpgme gphoto2 gpm gs gstreamer gtk gtk2 gzip imlib imlib2 inkjar java jikes joystick jpeg kde keyscrub lame lcd lesstif libdsk lm_sensors lynxkeymap lzo lzw lzw-tiff maildir matrox mbox mcal md5sum mimencode mixer mmap mod moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg2 mplayer musepack music ncurses net network nodoc nptl offensive ofx oggvorbis on-the-fly-crypt opengl pam pam_chroot pam_console pam_timestamp parse-clocks pdf pdflib perl physfs pic png ppds python qt quicktime rar rdesktop readline real reiserfs rogue rtc sblive scanner sdl server shorten sounds sox spell ssl sysfs szip tcpd tga theora threads tiff transcode truetype-fonts type1 type1-fonts usb userlocales uudeview v4l v4l2 vfat videos vnc wxwindows x11vnc xatrix xface xosd xpm xprint xscreensaver xv xvmc yv12 zip zlib elibc_glibc kernel_linux userland_GNU"
Comment 1 Brian Hall 2006-02-01 06:43:06 UTC
According to the author, the failure with -Os and amd64 is a gcc problem. While I had believed this to have been fixed in gcc 3.4.5, there are similar open bugs in gcc bugzilla.

The current version of rxvt-unicode is 7.5, which works fine with -O2.
Comment 2 Pietro Franchi 2006-04-09 05:37:47 UTC
Created attachment 84261 [details, diff]
patch against rxvt-unicode-7.7-r1.ebuild

This is confirmed, it causes nasty segfaults. I spoke with the author, and the problem really is -Os (which is what I'd like to use). So I think that while they fix the gcc bug, we can replace -Os with -O2.

This pach against the current 7.7-r1 ebuild does the trick.
Comment 3 Pietro Franchi 2006-04-09 05:39:30 UTC
Ah, I forgot: this is not a AMD64 bug, since is verified also on x86.