Active Topics

 



Notices


Reply
Thread Tools
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#61
It seems that latest mc 4.8.10 is still far from to be a stable version:
http://www.midnight-commander.org/ticket/3059

Today it's the third segfault i receive while moving files....

My opinion is that so far the best rock solid version is 4.7.5.6.
 

The Following 4 Users Say Thank You to xes For This Useful Post:
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#62
Originally Posted by xes View Post
It seems that latest mc 4.8.10 is still far from to be a stable version:
http://www.midnight-commander.org/ticket/3059
I've included the patch from your link in mc 4.8.10-0maemo4. It is in extras-devel now.
 

The Following 5 Users Say Thank You to ginggs For This Useful Post:
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#63
Originally Posted by ginggs View Post
I've included the patch from your link in mc 4.8.10-0maemo4. It is in extras-devel now.
There was a second part to that patch which I missed (see ticket #3059), so you might still experience random crashes while moving files with the current version. I'll upload a new version soon, along with some other fixes from Debian.

I'm now a maintainer for mc, so I'll be able to push it to extras-testing too.

I've been able to reproduce the 100% CPU / ncurses issue on my desktop ('sudo mc' was the key) and there has been some activity in ticket #2244. If that finally gets resolved, I may revert from slang back to ncurses. Although most of the big distributions build mc with slang, we can save space on the N900 by building with ncurses as it is used by many other apps.
 

The Following 6 Users Say Thank You to ginggs For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#64
@ginggs,

On Maemo the MC problem happens because busybox doesn't send the SIGHUP signal to its children, so when you close xtem busybox dies but MC is still alive, but without any I/O means (tty) -> which triggers the bug in MC itself.

https://bugs.maemo.org/show_bug.cgi?id=5317

I find it odd that this happens also with Ubuntu. I have to check that at home (but I always quit mc before closing the terminal anyway).
 

The Following 4 Users Say Thank You to reinob For This Useful Post:
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#65
Originally Posted by reinob View Post
On Maemo the MC problem happens because busybox doesn't send the SIGHUP signal to its children, so when you close xtem busybox dies but MC is still alive, but without any I/O means (tty) -> which triggers the bug in MC itself.
Opinion seems to be divided. If this is the case, then I don't understand why the problem does not occur when mc is built with slang.

Edit: I don't think the problem is busybox as I am using bash. I was only able to reproduce the problem on the N900 with subshell (Ctrl-O) enabled, which required changing my default shell. See steps to reproduce in comment #57.

Originally Posted by reinob View Post
I find it odd that this happens also with Ubuntu. I have to check that at home (but I always quit mc before closing the terminal anyway).
From the upstream ticket, the problem is reported in Gentoo as well.
Remember to build mc with ncurses and run mc as root (sudo mc).

Last edited by ginggs; 2013-09-17 at 09:54.
 

The Following User Says Thank You to ginggs For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#66
Originally Posted by ginggs View Post
Opinion seems to be divided. If this is the case, then I don't understand why the problem does not occur when mc is built with slang.

Edit: I don't think the problem is busybox as I am using bash. I was only able to reproduce the problem on the N900 with subshell (Ctrl-O) enabled, which required changing my default shell. See steps to reproduce in comment #57.


From the upstream ticket, the problem is reported in Gentoo as well.
Remember to build mc with ncurses and run mc as root (sudo mc).
To make it more clear:

1. MC has a bug which causes an infinite loop when it is compiled using ncurses (as opposed to slang) *and* the tty is gone. Workaround is to use slang because it doesn't expose this bug.

2. No interactive program should be kept running without any means of doing I/O. This is a bug in whatever program is MC's parent or grand-parent because it's not properly sending the SIGHUP signal when closing.

With bash/dash this depends on the "huponexit" shell variable (shopt). I just tested on my wheezy VPS (dash) and huponexit is off.

With busybox I'm not sure, because stock is different than enhanced busybox, plus you can set this option ("trap SIGHUP ...") in /etc/profile and such. All I know is that with other versions of mc (presumably compiled with ncurses) I didn't have the problem.

In any case, the proper solution for mc (and any other program) is not -- ever -- to go into an infinite loop, unless by design.
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#67
Midnight Commander 4.8.10-0maemo5 is now in extras-testing.
  • Built with S-Lang instead of ncurses to work around 100% CPU usage issue (ticket #2244)
  • Fix scratchbox paths for Virtual File System programs
  • Fix "compute totals" progress bar and segfault on copy/move operations (tickets #2075, #3059)
  • Fix mc arguments handling (ticket #3047)
  • Fix saving changes to nested archives (ticket #3070)

To use Virtual FIle System (VFS), the suggested packages perl, zip, unzip bzip2, arj, etc. need to be installed.

For subshell (Ctrl-O) support, the suggested package bash (or another compatible shell) needs to installed and set as your default shell.
 

The Following 8 Users Say Thank You to ginggs For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#68
@ginggs,

Would it be possible to ./configure --enable-vfs-sftpfs and maybe also vfs-smbfs?
Perhaps you could try that and report if any libraries (libssh2?) are missing.
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#69
Originally Posted by reinob View Post
Would it be possible to ./configure --enable-vfs-sftpfs and maybe also vfs-smbfs?
Perhaps you could try that and report if any libraries (libssh2?) are missing.
I could try that. I haven't used vfs-sftpfs or vfs-smbfs before. What advantages does vfs-sftpfs have over fish (shell link)?

Please test and vote for 4.8.10-0maemo5 here.
 

The Following 2 Users Say Thank You to ginggs For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#70
Originally Posted by ginggs View Post
I could try that. I haven't used vfs-sftpfs or vfs-smbfs before. What advantages does vfs-sftpfs have over fish (shell link)?
Not much according to this: http://www.midnight-commander.org/ticket/2946, except for allowing ftp without ssh/rsh and old unsafe sftp
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:41.