Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81854 - mc hangs system when i press ctrl-o in console
Summary: mc hangs system when i press ctrl-o in console
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 06:43 UTC by Alexander Fedorov
Modified: 2005-03-02 02:33 UTC (History)
0 users

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 Alexander Fedorov 2005-02-13 06:43:43 UTC
i use 2.6.10-gentoo-r6 kernel and mc-4.6.0-r8. I runnig mc in the console. When I ctrl-o mc goes to console and i can use it. When i ctrl-o again, when mc must go to mc(blue-white interface) system totally hangs (ATX power button stop working, mplayer stop playing). And i must hardware reboot (reset or switching on/off the pc). 

I did an strace and here end of its output: 
time(NULL)                              = 1108298881
time(NULL)                              = 1108298881
time(NULL)                              = 1108298881
time(NULL)                              = 1108298881
time(NULL)                              = 1108298881
rt_sigaction(SIGTSTP, {SIG_IGN}, {0xb7e7ca60, [], SA_NOMASK}, 8) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=48, ws_col=128, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost -isig -icanon -echo ...}) = 0
write(1, "\33[1;48r\33[39;49m\33]R\33[0;10m\33[4l\33[3"..., 2800

Here my emerge --info: emerge --info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -pipe -O2"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"


Reproducible: Always
Steps to Reproduce:
1.run mc in console
2.press ctrl-o
3.press ctrl-o again

Actual Results:  
system totally hangs. I think kernel hangs.

Expected Results:  
mc must working in normal mode

it happens on clean, yesterday installed gentoo system.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-13 07:58:15 UTC
please try vanilla-2.6.10 kernel
Comment 2 Alexander Fedorov 2005-02-13 08:07:20 UTC
i made a mistake in mc version. a use mc-4.6.0-r12 version, not r8
Comment 3 Alexander Fedorov 2005-02-13 08:54:57 UTC
I have try 2.6.10-vanilla and everything works fine. 
Comment 4 Alexander Fedorov 2005-02-13 10:28:02 UTC
problems has been solved when i switch off CONFIG_FB_VESA_TNG in the kernl config file. 
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-19 12:00:43 UTC
then it's a kernel thing, so
Comment 6 Zbigniew Koza 2005-03-02 01:39:08 UTC
I have a similar problem with mc in the text console, except that 
in my case the "offending" action is to hit enter on a file.
Then mc either hangs the system immediately (eg. on *.pdf file), or takes a proper action (eg. opens nano on *.tex) and hangs the system on exiting nano. 

This problem does not appear in X console.
I also use CONFIG_FB_VESA_TNG flag in kernel.
The last message of strace is also 
write(1, "\33[1;48r\33[39;49m\33]R\33[0;10m\33[4l\33[3"..., 2800

Should I report this behavior as a separate bug to bugs.gento.org?
Or anywhere else?
After all, it's not a nice thing to have in your system 
a very popular program that can easily hang the system!
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2005-03-02 02:33:03 UTC
please report a bug against gentoo-dev-sources