Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39691 - CVS Gnuplot crashes when terminal window gets resized
Summary: CVS Gnuplot crashes when terminal window gets resized
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 12:42 UTC by Frank Hellmuth
Modified: 2004-05-20 17:36 UTC (History)
1 user (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 Frank Hellmuth 2004-01-28 12:42:38 UTC
The current CVS version of gnuplot, 3.8k (found at http://sourceforge.net/projects/gnuplot/) crashes when the xterm window gest resized and linked against GNU readline. The bug is described at http://sourceforge.net/tracker/index.php?func=detail&aid=608874&group_id=2055&atid=102055
(under the misleading subject "(Solaris, readline-4.x) prompt displayed twice").

A patch is also available at that page, claiming this will be in the next version of libreadline and being approved by the readline developers 8 months ago. As that patch still isn't included in readline-4.3, is it possible to include that fix in the ebuild if it's harmless to other applications?

Reproducible: Always
Steps to Reproduce:
1. checkout guplot cvs
2. link it against readline (./configure --with-readline=gnu)
3. resize the terminal window gnuplot runs in

Actual Results:  
crashes without any error messages 

Expected Results:  
no crash ;) 

Portage 2.0.50_pre20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 
2.6.1-rc1) 
================================================================= 
System uname: 2.6.1-rc1 i686 AMD Athlon(tm) XP 1700+ 
Gentoo Base System version 1.4.3.12 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59 
Automake: sys-devel/automake-1.7.8 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
rsync://ftp.belnet.be/gentoo/ 
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ 
http://ftp.belnet.be/mirror/rsync.gentoo.org/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 Xaw3d alsa apm arts avi berkdb cdr crypt cups dvd emacs encode 
foomaticdb gd gdbm gif gphoto2 gpm gtk gtk2 imap imlib java jpeg kde ldap 
libg++ libwww mad mbox mikmod mmx motif mozilla mpeg mule mysql ncurses nls 
oggvorbis opengl oss pam pdflib plotutils png python qt quicktime readline 
samba scanner sdl slang spell ssl svga tcpd tetex tiff truetype usb wmf x86 
xinerama xml2 xmms xv zlib"
Comment 1 Yi Quang (RETIRED) gentoo-dev 2004-02-06 23:21:36 UTC
The current CVS version of gnuplot is not in portage, is this something we need to fix now?
Comment 2 Frank Hellmuth 2004-02-07 03:21:16 UTC
But the mentioned readline version is in portage, and as the gnuplot developers release quite seldom, there are significant improvements in the CVS gunplot (pm3d and mouse support). There are a lot of people, like me, who use gnuplot CVS because of the new features and are affected by the readline bug. In any case, it's a readline bug, so it should be fixed, esp. since the patch is already done. I'm thinking about writing a CVS gnuplot ebuild.
Comment 3 Frank Hellmuth 2004-02-09 04:35:21 UTC
Now gnuplot 3.8j is in portage, and this version is affected
by the above described bug.
Comment 4 Grant Goodyear (RETIRED) gentoo-dev 2004-02-12 07:52:34 UTC
From what I can tell this bug is actually a bug in readline, right?

I'm not willing to put my life at risk by touching readline, so I'm tossing
this bug to base-system.
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-28 22:19:11 UTC
Looks like this bug was reassigned to sci.
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-28 22:34:48 UTC
what version of readline does this need, Frank?
Comment 7 Frank Hellmuth 2004-03-29 10:05:38 UTC
According to the last comment, dated 2003-04-30, on
http://sourceforge.net/tracker/index.php?func=detail&aid=608874&group_id=2055&atid=102055
the "next" version of readline. Since the last release is readline 4.3,
released on 2002-07-17, as far as I can see on
ftp://ftp.gnu.org/gnu/readline/
I guess it's still the next release. None of the patches on
ftp://ftp.cwru.edu/pub/bash/readline-4.3-patches
contains the bugfix mentioned on sourceforge. So I'm sorry I can't tell if there is a fixed version. I once tried the suggested fix, and it worked at least for me with gnuplot cvs some moths ago and readline 4.3. 
Comment 8 Frank Hellmuth 2004-04-30 12:29:14 UTC
At least for me the bug is fixed in the 4.0 version, which is in
portage by now. I can't find any entries mentioning this bug in the
Changelog, but who cares if it works... ;) 
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2004-05-20 17:36:33 UTC
seems to work now according to reporter.