Summary: | screen and Midnight Commander don't work on a serial console | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sasha Polonsky <apl> |
Component: | Current packages | Assignee: | Alex Alexander (RETIRED) <wired> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bazik, desktop-misc, exg, hansmi, jakub, polynomial-c, slyfox, swegener |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 122768 | ||
Attachments: |
Screenshot
mc-open-nonblock.diff strace log for mc on a serial console strace log for screen on a serial console shell log with stty settings strace -ff log for screen on a serial console strange second strace -ff log for screen on a serial console mc-4.6.1-nonblock.patch |
Description
Sasha Polonsky
2006-03-24 05:04:09 UTC
I can confirm this on Sparc64 (Sun Ultra 2) using TeraTermPro from Windows or Minicom from another Sparc. Although I dont have to kill the mc process as I can still cancel this one with ctrl-c. But for the screen process I have to kill it or close/reopen the serial connection. Can you try to recompile mc with USE="-ncurses" and tell us if it helps? See above and post back. Thanks. Created attachment 83219 [details]
Screenshot
So the serial console looks like. Mc should not be killed in ssh session, it can be stopped with Ctrl-C, but still does not work
I have recompiled mc with USE="-ncurses" and it does not help (see screenshot). I also need working screen. OK, this apparently doesn't move anywhere, no idea what's causing this problem. Attach some debugging info (like strace) and reopen then. http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap3 Created attachment 83835 [details, diff]
mc-open-nonblock.diff
Can you please test this patch? I've no idea what other implications it has except that mc starts over a real serial console (with the DCD line implemented).
Reopen Created attachment 83882 [details]
strace log for mc on a serial console
Created attachment 83884 [details]
strace log for screen on a serial console
Created attachment 83886 [details]
shell log with stty settings
I'm really wondering what I should do with those logs I'm really wondering what I should do with those logs Can you please submit the output files of "strace -ff -o mc-strace mc"? And does it work after applying the patch? Yes, after applying the patch mc started to work on a serial console. I have also tested it in ssh and telnet sessions and it worked there too. But I cannot test mc on a virtual console right now because that machine has no monitor and keyboard attached and this is a server used in a project, so it should be always up. Screen still does not work. I will upload it's strace -ff log today. Created attachment 84054 [details]
strace -ff log for screen on a serial console
Created attachment 84055 [details]
strange second strace -ff log for screen on a serial console
I have also noticed that on a serial console screen gives the error message
Directory '/var/run/screen' must have mode 777.,
and after chmod 777 /var/run/screen it gives the message
Directory '/var/run/screen' must have mode 775. in ssh session, so I should run
chmod 777 /var/run/screen.
The maintainer of the screen ebuild will check in the patch not long from now. Please wait until then. Any information on this? I didn't understand what you mean. The maintainer of screen has not contacted me. I emerge --sync'ed yesterday and saw that mc was updated to version 4.6.1, and it also does not work on a serial console and your patch does not work with this version. So on a machine with a serial console I used to emerge "=app-misc/mc-4.6.0" with your patch applied manually. Lanius: Please use the attached patch for screen. (In reply to comment #19) > Lanius: Please use the attached patch for screen. Good luck w/ lanius. ;) exg, can you perhaps revbump mc w/ this patch? Created attachment 85846 [details, diff]
mc-4.6.1-nonblock.patch
Can you please verify that mc-4.6.1 works with this patch?
Yes, the patch for mc 4.6.1 works. The only thing left is to add this patch to portage. BTW, what attached patch for screen do you mean? I cannot find it. fixed in mc-4.6.1-r1.ebuild. This old bug seems to be back in mc-4.7.0.3, same symptoms and same patch works. Assigning to current mc maintainers So that would be what is known as a regression. Please file a new bug report. |