Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 4803

Summary: Screen & ircii coredumps
Product: [Retired] Red Hat Raw Hide Reporter: Pekka Savola <pekkas>
Component: screenAssignee: Bill Nottingham <notting>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-31 19:23:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pekka Savola 1999-08-31 13:39:19 UTC
After upgrading to the latest Raw Hide (RH6.0 worked fine, I
think a Rawhide like 6-10 days back did too), irc coredumps
right after being run when used with 'screen'.

screen-3.9.4-2
ircii-4.4-7
glibc-2.1.2-5
rawhide-release-19990824-1

Comment 1 Bill Nottingham 1999-08-31 14:42:59 UTC
Works for me on a clean install;
screen-3.9.4-2, ircii-4.4-7, glibc-2.1.2-7.

Do you have anything odd in your ircii configuration?

Comment 2 Pekka Savola 1999-08-31 14:53:59 UTC
It seems to work if I set my TERM to e.g. vt102, but if TERM=xterm,
there will be a core dump.

Comment 3 Bill Nottingham 1999-08-31 15:02:59 UTC
Works OK here, in the console, xterm, & gnome-terminal.

What does `rpm  -V termcap` say - do you have a modified
termcap?

Comment 4 Pekka Savola 1999-08-31 17:14:59 UTC
--- rpm -V termcap ---
S.5...GT c /etc/termcap
---
--- rpm -q termcap ---
termcap-9.12.6-15
---
--- ls -la /etc/termcap ---
-rw-r--r--   1 root     adm        548317 Jan 28  1999 /etc/termcap
---

Originally, this was a Redhat 5.2 box but I upgraded it to Rawhide.
That might have left something behind.  I haven't edited the termcap
file, and it didn't help after re-installing termcap RPM either -- rpm
-Uvh didn't seem to replace the old termcap.

I did 'rpm -e --nodeps termcap' and installed it again.  Now rpm -V
reports nothing and the file looks like this:
--- ls -la /etc/termcap ---
-rw-r--r--   1 root     root       434898 Mar 29 19:08 /etc/termcap
---

However, it still dumps the core.

Here's a part of strace if it's of any help..
------- strace irc --
ioctl(0, TIOCGWINSZ, {ws_row=28, ws_col=112, ws_xpixel=0,
ws_ypixel=0}) = 0
open("/dev/tty", O_RDWR)                = 3
ioctl(3, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(3, SNDCTL_TMR_STOP, {B38400 opost isig -icanon -echo ...}) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
-------------------

Comment 5 Bill Nottingham 1999-08-31 19:04:59 UTC
Aha. You're running the rawhide libtermcap, correct?

It's horribly horribly broken. Don't use it - it might even open
up security holes.
Downgrade to the 6.0 errata version, or wait for libtermcap-2.0.8-17,
which will be in next Raw Hide release.

Comment 6 Pekka Savola 1999-08-31 19:21:59 UTC
Libtermcap was indeed causing this.

Thanks for the diagnosis!