Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85244 - MRXVT causes a seg fault on resize
Summary: MRXVT causes a seg fault on resize
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 12:01 UTC by Andrew Smith
Modified: 2005-05-03 10:22 UTC (History)
1 user (show)

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


Attachments
gdb backtrace (gdb-bt.txt,938 bytes, text/plain)
2005-03-14 12:03 UTC, Andrew Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Smith 2005-03-14 12:01:13 UTC
After emerging X.org 6.8.2, mrxvt seg faults on any resize of the window. If not rezied using it is fine.

Reproducible: Always
Steps to Reproduce:
1. Ugrade to X.org 6.8.2
2. Emerge mrxvt
3. Run mrxvt and resize window

Actual Results:  
mrxvt seg faults

Expected Results:  
Been resized to the new size

beeflinux espadav8 # emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
 2.6.11-mm2 i686)
=================================================================
System uname: 2.6.11-mm2 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 17 2005, 10:27:28)
]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/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 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://212.219.56.162/sites/www.ibiblio.org/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mir.zyrianes.net/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
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="x86 3dnow X alsa apm audiofile avi berkdb bitmap-fonts crypt curl emboss
encode esd fam flac font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2
gvim imagemagick imlib ipv6 java jbig jpeg jpeg2k kde libg++ libwww mad mikmod
mmx mng motif mp3 mpeg ncurses nptl nptlonly oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline real sdl spell sse ssl svg svga tcltk tcpd
tiff truetype truetype-fonts type1-fonts userlocales vim wmf xine xml xml2 xmms
xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Andrew Smith 2005-03-14 12:03:15 UTC
Created attachment 53450 [details]
gdb backtrace
Comment 2 rob holland (RETIRED) gentoo-dev 2005-03-15 02:01:10 UTC
I can't replicate this, but the value for prev_rows and total_rows seems very screwey. How do you trigger this? Any kind of resize?
Comment 3 Andrew Smith 2005-03-15 03:35:15 UTC
Yes, any resize will cause this to happen, either maximise or drag to a new size.
Comment 4 rob holland (RETIRED) gentoo-dev 2005-03-15 04:06:50 UTC
Settings approaching 65535 for saveLines causes segfaults on resizing mrxvt. At a quick glance this seems to be due to some loops in screen.c which don't check against MAX_SAVELINES and/or allow the value to wrap. This should be reported upstream.
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-04-05 22:13:01 UTC
Yeah, if I set MAX_SAVELINES to 65534 mrxvt segfaults.
(mrxvt 0.4.0)
Jimmy, could you take a look at this bug?
Comment 6 Jimmy Zhou 2005-04-12 19:49:31 UTC
yes, I am aware of this problem. it has been fixed in my CVS tree, hopefully. according to Andrew Smith, it looks my patch is working.
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-03 10:22:18 UTC
It is fixed in mrxvt-0.4.1. Thanks Andrew and Jimmy.