NetBSD Problem Report #52505
From greywolf@starwolf.com Wed Aug 23 19:13:08 2017
Return-Path: <greywolf@starwolf.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 570807A1F6
for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Aug 2017 19:13:08 +0000 (UTC)
Message-Id: <20170823191306.CEC521A4BD@eddie.starwolf.com>
Date: Wed, 23 Aug 2017 12:13:06 -0700 (PDT)
From: greywolf@starwolf.com <Greywolf@starwolf.com>
Reply-To: greywolf@starwolf.com, relayer@gmail.com
To: gnats-bugs@NetBSD.org
Subject: screen produces error
X-Send-Pr-Version: 3.95
>Number: 52505
>Category: pkg
>Synopsis: screen produces SC: kdch1: unprintable character
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kim
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 23 19:15:00 +0000 2017
>Closed-Date: Mon Jan 06 01:41:05 +0000 2020
>Last-Modified: Mon Jan 06 01:41:05 +0000 2020
>Originator: Greywolf
>Release: NetBSD 8.99.1
>Organization:
None
>Environment:
$ ldd /usr/local/bin/screen
/usr/local/bin/screen:
-lncurses.6 => /usr/local/lib/libncurses.so.6
-lc.12 => /usr/lib/libc.so.12
-lelf.2 => /usr/lib/libelf.so.2
-lutil.7 => /usr/lib/libutil.so.7
-lcrypt.1 => /usr/lib/libcrypt.so.1
System: NetBSD eddie.starwolf.com 8.99.1 NetBSD 8.99.1 (EDDIE) #11: Fri Jul 21 13:55:41 PDT 2017 greywolf@eddie.starwolf.com:/sys/arch/amd64/compile/EDDIE amd64
Architecture: x86_64
Machine: amd64
>Description:
When using any program that is termcap-dependent --
tset/reset, vi, more, less -- inside screen, the message
(program): SC: kdch1: unprintable character
appears
>How-To-Repeat:
cd /usr/src/pkg/misc/screen
make && make install
(/path/to/)screen
tset
reset
more /etc/fstab
vi /tmp/foo
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->kimmo
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Thu, 24 Aug 2017 06:55:34 +0000
Responsible-Changed-Why:
Over to maintainer.
Responsible-Changed-From-To: kimmo->kim
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 06 Dec 2017 00:47:04 +0000
Responsible-Changed-Why:
wrong developer address
State-Changed-From-To: open->feedback
State-Changed-By: kim@NetBSD.org
State-Changed-When: Sun, 05 Jan 2020 18:21:13 +0000
State-Changed-Why:
I'm unable to reproduce. Also, when I install screen from pkgsrc,
it is not linked with ncurses. Further, screen is installed without
read permissions, so ldd without becoming root is not possible.
equinoxe:~# ldd /usr/pkg/bin/screen
/usr/pkg/bin/screen:
-lcurses.7 => /usr/lib/libcurses.so.7
-lterminfo.1 => /usr/lib/libterminfo.so.1
-lc.12 => /usr/lib/libc.so.12
-lutil.7 => /usr/lib/libutil.so.7
-lcrypt.1 => /usr/lib/libcrypt.so.1
lrwxr-xr-x 1 root wheel 12 Dec 18 14:06 /usr/pkg/bin/screen -> screen-4.7.0
-r-s--x--x 1 root wheel 419472 Dec 18 14:06 /usr/pkg/bin/screen-4.7.0
I don't have current running either.
Does the problem still exist for you with the latest pkgsrc?
Can you confirm that /usr/local/bin/screen is from pkgsrc?
Would it be possible for you to try on NetBSD 8.1?
If the problem still exists, please also provide the output
from:
printenv TERM
printenv TERMCAP
I was trying with TERM=screen.xterm-256color
Thanks,
+ Kimmo
From: Greywolf <greywolf@starwolf.com>
To: gnats-bugs@netbsd.org, kim@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org, relayer@gmail.com
Cc:
Subject: Re: pkg/52505 (screen produces SC: kdch1: unprintable character)
Date: Sun, 5 Jan 2020 14:54:24 -0800
On 1/5/2020 10:21, kim@NetBSD.org wrote:
> Synopsis: screen produces SC: kdch1: unprintable character
>
> State-Changed-From-To: open->feedback
> State-Changed-By: kim@NetBSD.org
> State-Changed-When: Sun, 05 Jan 2020 18:21:13 +0000
> State-Changed-Why:
> I'm unable to reproduce. Also, when I install screen from pkgsrc,
> it is not linked with ncurses. Further, screen is installed without
> read permissions, so ldd without becoming root is not possible.
>
> equinoxe:~# ldd /usr/pkg/bin/screen
> /usr/pkg/bin/screen:
> -lcurses.7 => /usr/lib/libcurses.so.7
> -lterminfo.1 => /usr/lib/libterminfo.so.1
> -lc.12 => /usr/lib/libc.so.12
> -lutil.7 => /usr/lib/libutil.so.7
> -lcrypt.1 => /usr/lib/libcrypt.so.1
>
> lrwxr-xr-x 1 root wheel 12 Dec 18 14:06 /usr/pkg/bin/screen -> screen-4.7.0
> -r-s--x--x 1 root wheel 419472 Dec 18 14:06 /usr/pkg/bin/screen-4.7.0
>
> I don't have current running either.
>
> Does the problem still exist for you with the latest pkgsrc?
> Can you confirm that /usr/local/bin/screen is from pkgsrc?
> Would it be possible for you to try on NetBSD 8.1?
>
> If the problem still exists, please also provide the output
> from:
> printenv TERM
> printenv TERMCAP
>
> I was trying with TERM=screen.xterm-256color
>
> Thanks,
> + Kimmo
I still have the problem, but only with bash -- at least things like
tset, reset, more, jove, vi, etc. no longer cause this error.
: eddie; echo $TERM
xterm
: eddie; printenv TERM
xterm
: eddie; printenv TERMCAP
: eddie;
Even when I would set TERM=screen.xterm-256color, I had the issue with
bash, but because tset & co. & other curses things don't have this issue
anymore in screen, I don't see a reason to keep it open. Thank you for
getting back to me -- much appreciated! Not really possible for me to
revert to 8.1 to try as I have already updated to 9.99.13.
--*greywolf;
State-Changed-From-To: feedback->closed
State-Changed-By: kim@NetBSD.org
State-Changed-When: Mon, 06 Jan 2020 01:41:05 +0000
State-Changed-Why:
Ok, I'm closing the ticket then.
But I did try to reproduce with bash, and couldn't.
I have bash 5.0.11nb1 on my NetBSD 8.1 system.
When I start screen, TERM gets set to "screen" but
I did also try with "xterm" and starting a subshell.
I also tried with setting SHELL before starting
screen.
Bash is linked against terminfo, in case yours is
different.
equinoxe:~> ldd /usr/pkg/bin/bash
/usr/pkg/bin/bash:
-lterminfo.1 => /usr/lib/libterminfo.so.1
-lc.12 => /usr/lib/libc.so.12
-lintl.1 => /usr/lib/libintl.so.1
Kind regards,
+ Kimmo
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.