Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2019-08-23 Thread Thorsten Glaser
On Thu, 3 Apr 2014, Jakub Wilk wrote:

> When I run mc on a virtual terminal, under screen(1), mc is super slow,
> consuming 50% of CPU, and spewing literally hundreds of messages like this to
> syslog:

Yeah, this is an old issue.

I do this to work around that (plus mouse support is irritating anyway):

tglase@tglase:~ $ fgrep -B1 mc.distrib 
/var/lib/dpkg/info/mirabilos-support.preinst 
dpkg-divert --package mirabilos-support \
--divert /usr/bin/mc.distrib --rename /usr/bin/mc
tglase@tglase:~ $ cat /usr/bin/mc
#!/bin/mksh-static
#-
# Wrapper to forcibly disable mouse support, as this fills
# syslog at several dozen MiB/s rate when gpm is already
# used by some other instance, or when logging in via ssh.

exec -a "$0" -- /usr/bin/mc.distrib -d "$@"


HTH & HAND,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

**

Mit der tarent Academy bieten wir auch Trainings und Schulungen in den
Bereichen Softwareentwicklung, Agiles Arbeiten und Zukunftstechnologien an.

Besuchen Sie uns auf www.tarent.de/academy. Wir freuen uns auf Ihren Kontakt.

**



Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2014-04-25 Thread Jakub Wilk

* Dmitry Smirnov only...@debian.org, 2014-04-04, 08:52:

Running mc under screen is not something I do often,
I do it quite often and I've never seen this problem nor I can 
reproduce it even with gpm installed. How exactly can one reproduce 
it?


I've reproduced this on a fairly clean amd64 VM:

1) apt-get install screen mc gpm
2) login on tty1
3) run:
screen mc

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2014-04-03 Thread Jakub Wilk

Package: mc
Version: 3:4.8.12-1
Usertags: serious

When I run mc on a virtual terminal, under screen(1), mc is super slow, 
consuming 50% of CPU, and spewing literally hundreds of messages like 
this to syslog:


mc: *** info
mc: Warning: closing connection
/usr/sbin/gpm[2296]: *** warning [daemon/processconn.c(133)]:
/usr/sbin/gpm[2296]: Failed gpm connect attempt by uid 500 for vc /dev/tty0


-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mc depends on:
ii  e2fslibs  1.42.9-3
ii  libc6 2.18-4
ii  libglib2.0-0  2.40.0-2
ii  libgpm2   1.20.4-6.1
ii  libslang2 2.2.4-16
ii  libssh2-1 1.4.3-2
ii  mc-data   3:4.8.12-1

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2014-04-03 Thread Dmitry Smirnov
Hi Jakub,

I'd like to reproduce the problem but nothing like this is happening here in 
`screen` or `tmux` (I don't have package gpm installed). 

Do you think it might be a regression? Did it work for you before (which 
version)?

-- 
Regards,
 Dmitry Smirnov.


signature.asc
Description: This is a digitally signed message part.


Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2014-04-03 Thread Jakub Wilk

* Dmitry Smirnov only...@debian.org, 2014-04-04, 07:05:
Do you think it might be a regression? Did it work for you before 
(which version)?


Running mc under screen is not something I do often, so it might have 
been broken for a while. I tested it in a few chroots I had at hand:

- works in wheezy (3:4.8.3-10);
- broken in jessie (3:4.8.11-1) and unstable (3:4.8.12-1).

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#743566: mc: Failed gpm connect attempt ... for vc /dev/tty0

2014-04-03 Thread Dmitry Smirnov
On Thu, 3 Apr 2014 22:44:33 Jakub Wilk wrote:
 Running mc under screen is not something I do often,

I do it quite often and I've never seen this problem nor I can reproduce it 
even with gpm installed. How exactly can one reproduce it?


 so it might have
 been broken for a while. I tested it in a few chroots I had at hand:
 - works in wheezy (3:4.8.3-10);
 - broken in jessie (3:4.8.11-1) and unstable (3:4.8.12-1).

There were probably related upstream change in 4.8.7:

http://www.midnight-commander.org/ticket/3108

May be you could discuss the matter with upstream? It would be very helpful if 
you could. I can't communicate this problem with them as I don't understand 
it... 

-- 
All the best,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B


signature.asc
Description: This is a digitally signed message part.