Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68715 - rxvt-unicode crashed when executed make menuconfig
Summary: rxvt-unicode crashed when executed make menuconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 09:45 UTC by fctk86
Modified: 2005-04-04 05:31 UTC (History)
2 users (show)

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


Attachments
/home/dirtyepic/rxvt-unicode-5.3.ebuild.diff (rxvt-unicode-5.3.ebuild.diff,566 bytes, patch)
2005-03-23 00:20 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fctk86 2004-10-24 09:45:16 UTC
rxvt-unicode version is 3.0.
if i type "make menuconfig" (for example when i want to recompile the kernel) when i'm using the rxvt-unicode console it crashes, saying "aborted" or something similar.

Reproducible: Always
Steps to Reproduce:
1. open a rxvt-unicode console
2. cd /usr/src/linux && make menuconfig
Actual Results:  
the rxvt-unicode windows immediately disappear, and if i had started urxvt from
another console (like xterm) i can also see the error message "Abortito" which
means "Aborted".

Expected Results:  
the window should not disappear and i should be able to run make menuconfig.

bash-2.05b# emerge info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb bitmap-fonts cdr crypt cups encode f77 foomaticdb
gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg
ncurses nls oggvorbis opengl pam pdflib perl png ppds python qt quicktime
readline sdl slang spell ssl svga tcpd truetype usb x86 xml2 xprint xv zlib"
Comment 1 fctk86 2005-01-05 00:39:18 UTC
same problem with rxvt-unicode-4.7:

fctk@thorium ~ $ urxvt
terminate called after throwing an instance of 'out_of_input'
Aborted

many things changed in my system since then but the problem with this app is still the same.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2005-01-23 19:23:10 UTC
I used to have this same problem. It only happens in rare situations, but it's fully reproducible if you make sure the circumstances are exactly the same. For me, a ls in my home directory did it, but it worked fine if I added a file, and started breaking again when I removed that newly created file. I had looked at it a bit, and I don't know if it's a bug in gcc or in urxvt, but it's triggered by -mno-accumulate-outgoing-args, which is implied by -Os. Could you see if it works for you too with -O2?
Comment 3 fctk86 2005-01-24 08:14:25 UTC
thanks! CFLAGS="-O2" emerge rxvt-unicode fixed the problem!
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2005-02-26 16:08:45 UTC
Ok, I've added in 5.2 some code to strip out that flag, as well as replace Os with O2 as needed. Thanks for the info.
Comment 5 hmk 2005-03-16 20:07:55 UTC
The "replace-flags -Os -O2" doesnt seem to have any effect when placed inside pkg_preinst()... I guess the "pkg_preinst" function is called after the compilation of the package, so it takes no effect. I'd advise to place it inside src_unpack, but  I don't know if that would be the proper place... If someone could verify this, I'd say re-open the bug until the ebuild is fixed. (?) 
Comment 6 Florian Engelhardt 2005-03-17 02:48:45 UTC
*** Bug 85494 has been marked as a duplicate of this bug. ***
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2005-03-23 00:14:56 UTC
confirmed.  i can't even emerge with a target of world without triggering a silent crash.  the flag-o-matic functions should be called in src_compile().  reopening bug.

FYI:
  (during configure)
  Rxvt version:               5.3 : 2005-03-13
  Source code location:       .
  Install path:               /usr/bin
  Compiler:                   i686-pc-linux-gnu-g++
**Compiler flags:             -Os -march=pentium3 -fomit-frame-pointer -pipe -I/usr/include/freetype2 -I/usr/include/freetype2/config  
  Linker:                     i686-pc-linux-gnu-gcc
  malloc support:             system default
  Xpm library:                -L/usr/X11R6/lib -lXpm
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2005-03-23 00:20:05 UTC
Created attachment 54210 [details, diff]
/home/dirtyepic/rxvt-unicode-5.3.ebuild.diff

erm, guess i can't reopen it.

here's a ebuild diff anyways.  it simply moves the flag stuff to src_unpack(),
before the sed line that replaces '-g -O3' with ${CFLAGS} in configure.  i'd
put it in src_compile() where it belongs, but the sed line has to come after
the flag replacement so this way avoids shuffling everything around.

tested and wfm.
Comment 9 Tero Grundström 2005-04-04 05:31:43 UTC
I just started to use urxvt (version 5.3, on a ~x86 system) as my main terminal and also run into this problem. So after finding this bug I re-emerged it and it still segfaults here with 'make menuconfig'.

urxvt appears to be quite unstable in other ways too. It can crash for example when I push Page Up/Down puttons when viewing a man page.

BTW, I just love the fact that rxvt-unicode now uses my CFLAGS :)