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: [Pkg-mc-devel] Bug#743566: mc: Failed gpm connect attempt

2017-11-14 Thread Bodo Eggert
This bug just crashed my system by generating 2.2 GB of logs and caused a 
day of debugging - exactly when I needed to leave for a week.



Bug#743566: mc: Failed gpm connect attempt

2015-03-13 Thread Mateusz Łukasik

Control: severity critical -1

I think this bug should be bump to cricical. mc burn my cpu. Simple 
patch from last answer fixes the problem and it should be added to 
jessie version.


Also I attach my nmu debdiff.

Mateusz
diff -Nru mc-4.8.13/debian/changelog mc-4.8.13/debian/changelog
--- mc-4.8.13/debian/changelog  2014-12-13 11:36:08.0 +0100
+++ mc-4.8.13/debian/changelog  2015-03-13 22:46:12.0 +0100
@@ -1,3 +1,21 @@
+mc (3:4.8.13-3.1) unstable; urgency=low
+
+  [ Denis Briand ]
+  * Add lintian override on debian-watch-may-check-gpg-signature
+Upstream doesn't provide gpg signature.
+  * Add Keywords entry into debian/mc.desktop file.
+  * Add mcedit.desktop file.
+  * Denis Briand goes back into the package devel team.
+Add into 'uploaders' field. 
+  * Add mcedit into Debian menu.
+  * Add mcedit icon.
+
+  [ Mateusz Łukasik ]
+  * Add fix-usage-of-GPM-under-screen-tmux.patch for fix burning cpu when
+gpm is running under screen or tmux. (Closes: #743566)
+
+ -- Mateusz Łukasik mat...@linuxmint.pl  Fri, 13 Mar 2015 22:44:48 +0100
+
 mc (3:4.8.13-3) unstable; urgency=medium
 
   * New upstream patch to fix loss of destination file when pre-allocation
diff -Nru mc-4.8.13/debian/control mc-4.8.13/debian/control
--- mc-4.8.13/debian/control2014-09-29 09:00:44.0 +0200
+++ mc-4.8.13/debian/control2015-03-09 20:38:07.0 +0100
@@ -2,8 +2,11 @@
 Section: utils
 Priority: optional
 Maintainer: Debian MC Packaging Group pkg-mc-de...@lists.alioth.debian.org
-Uploaders: Patrick Winnertz win...@debian.org, Yury V. Zaytsev 
y...@shurup.com,
- Andreas Tille ti...@debian.org, Dmitry Smirnov only...@debian.org
+Uploaders: Patrick Winnertz win...@debian.org
+  ,Yury V. Zaytsev y...@shurup.com
+  ,Andreas Tille ti...@debian.org
+  ,Dmitry Smirnov only...@debian.org
+  ,Denis Briand deb...@denis-briand.fr
 Build-Depends: debhelper (= 9), dh-autoreconf, autopoint, intltool, bison
  ,check
  ,e2fslibs-dev
diff -Nru mc-4.8.13/debian/copyright mc-4.8.13/debian/copyright
--- mc-4.8.13/debian/copyright  2014-09-09 08:41:17.0 +0200
+++ mc-4.8.13/debian/copyright  2015-03-09 20:38:07.0 +0100
@@ -7,24 +7,6 @@
  This package was debianized on Tue Apr 1 14:32:15 1997 by
  Paul Seelig psee...@mail.uni-mainz.de.
 
-Files: debian/*
-Copyright: 2002-2004  Adam Byrtek al...@debian.org
-   2011   Andreas Tille ti...@debian.org
-   2002   Colin Watson cjwat...@debian.org
-   2008-2010  Denis Briand de...@narcan.fr
-   2012-2014  Dmitry Smirnov only...@debian.org
-   1997   Fernando Alegre ale...@debian.org
-   2004-2007  Ludovic Drolez ldro...@debian.org
-   1999-2001  Martin Bialasinski mart...@debian.org
-   1999   Martin Bialasinski m...@internet-treff.uni-koeln.de
-   1998-1999  Michael Bramer gr...@debian.org
-   2008-2009  Patrick Winnertz win...@debian.org
-   1998   Paul Seelig psee...@goofy.zdv.uni-mainz.de
-   2004-2007  Stefano Melchior stefano.melch...@openlabs.it
-   1997   Vincent Renardias vinc...@waw.com
-   2008-2010  Yury V. Zaytsev y...@shurup.com
-License: GPL-2+
-
 Files: *
 Copyright: 1991-1992,1994-2014 Free Software Foundation
  with portions:
@@ -49,6 +31,25 @@
  Note that all these authors assigned the copyright to FSF.
 
 
+Files: debian/*
+Copyright: 2002-2004  Adam Byrtek al...@debian.org
+   2011   Andreas Tille ti...@debian.org
+   2002   Colin Watson cjwat...@debian.org
+   2008-2015  Denis Briand deb...@denis-briand.fr
+   2012-2014  Dmitry Smirnov only...@debian.org
+   1997   Fernando Alegre ale...@debian.org
+   2004-2007  Ludovic Drolez ldro...@debian.org
+   1999-2001  Martin Bialasinski mart...@debian.org
+   1999   Martin Bialasinski m...@internet-treff.uni-koeln.de
+   1998-1999  Michael Bramer gr...@debian.org
+   2008-2009  Patrick Winnertz win...@debian.org
+   1998   Paul Seelig psee...@goofy.zdv.uni-mainz.de
+   2004-2007  Stefano Melchior stefano.melch...@openlabs.it
+   1997   Vincent Renardias vinc...@waw.com
+   2008-2010  Yury V. Zaytsev y...@shurup.com
+License: GPL-2+
+
+
 Files: src/vfs/smbfs/helpers/*
 Copyright: 2011   Free Software Foundation
1992-1998  Andrew Tridgell
diff -Nru mc-4.8.13/debian/icons/mcedit.xpm mc-4.8.13/debian/icons/mcedit.xpm
--- mc-4.8.13/debian/icons/mcedit.xpm   1970-01-01 01:00:00.0 +0100
+++ mc-4.8.13/debian/icons/mcedit.xpm   2015-03-09 20:38:07.0 +0100
@@ -0,0 +1,42 @@
+/* XPM */
+static char * mcedit_xpm[] = {
+32 32 7 1,
+  c None,
+. c #CC,
++ c #E5E5E5,
+@ c #00,
+# c #33,
+$ c #FF,
+% c #00,
+.+.+.+..+..+.+.+.+.+..++..+..+.+,
+.@@#,
++$$#,

Bug#743566: [Pkg-mc-devel] Bug#743566: mc: Failed gpm connect attempt

2015-03-13 Thread Dmitry Smirnov
Control: severity -1 important

Dear Mateusz,

On Fri, 13 Mar 2015 22:55:11 Mateusz Łukasik wrote:
 Control: severity critical -1

Please do not panic. There is no need to re-(set) severity level to a 
dramatically incorrect value -- see

https://www.debian.org/Bugs/Developer#severities


 I think this bug should be bump to cricical. mc burn my cpu.

Thanks. Maintainer may decide to reconsider severity level however at the 
moment he believes that correct severity level is important.

 Simple
 patch from last answer fixes the problem and it should be added to
 jessie version.

I'm not convinced that this patch is the correct solution to the problem.
We will follow upstream decision on this. Earlier I gave my analysis of the 
problem in

http://www.midnight-commander.org/ticket/3208#comment:1

where I've noted that setting TERM=xterm may be easier workaround than 
patching.

It may be helpful if you remind upstream how important this problem really is.


 Also I attach my nmu debdiff.

Thank you but I must say that considering late freeze a correct NMU should 
contain one and only one isolated fix addressing this particular problem.

You can read more about NMUs and freeze here:

https://www.debian.org/doc/manuals/developers-reference/pkgs.html#nmu
https://release.debian.org/jessie/freeze_policy.html

-- 
Regards,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B


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


Bug#743566: mc: Failed gpm connect attempt

2014-12-20 Thread Dmitry Borisyuk
 It should work with mouse if gpm package is installed... Also this 
 functionality depends on value of TERM environment variable. See details in 
 the upstream ticket:
 
http://www.midnight-commander.org/ticket/3208

It _should_ work, but _does_ it work?
I cannot make it work in console, in both wheezy and jessie, regardless of 
$TERM.
I have gpm and screen installed, I login in, say, tty1, and do screen mc - it 
doesn't respond to mouse.

OK, if we assume this is normal, then I propose this simple patch:


--- a/lib/tty/key.c
+++ b/lib/tty/key.c
@@ -2092,7 +2092,6 @@
 
 /* Try to reopen gpm_mouse connection */
 disable_mouse ();
-enable_mouse ();
 }
 }
 }


After this, syslog isn't flooded, and screen mc even works with mouse under X.


-- 
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

2014-12-19 Thread Dmitry Smirnov
Hi Dmitry,

On Fri, 19 Dec 2014 17:51:56 Dmitry Borisyuk wrote:
 can please anyone confirm, does mc see the mouse when under 'screen'?
 For me, even in wheezy, mc does not respond to any mouse actions when it is
 run as 'screen mc'.

It should work with mouse if gpm package is installed... Also this 
functionality depends on value of TERM environment variable. See details in 
the upstream ticket:

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

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


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


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.