I get a glib error when trying to save a file by hitting F2 in mc. But it only happens when mc is running as root in an xterm, it doesn't happen when mc runs as user. As soon as I hit F2 I get:
(mc:73921): GLib-ERROR **: 15:55:28.036: ../glib/gmem.c:113: failed to allocate 18446744073709551588 bytes
Seems a lot of bytes what it's trying to allocate.
After the crash the xterm is also broken, scrolling with the mouse etc.
Sorry, due to a lack of time I have reset the maintainer of this port back to ports@FreeBSD.org. Hopefully someone else is able to step in to help.
Resetting the assignee of this bug accordingly.
Discovered that it has something to do with setting ncurses. Using the default slang works without problems.
I've rebuilt misc/mc with Ncurses instead of S-Lang, but could not reproduce this bug, under any user, X11 (xterm) or bare console. We need more information, ideally the exact steps that definitely lead to a crash.
(In reply to Alexey Dokuchaev from comment #3)
> We need more information [...]
Nevermind, I've reproduced the crash and got a core dump. The problem is with drawing shadows when the dialog window does not fit the screen (shrink your xterm window small enough and it will start crashing on every fart). Should not be hard to fix; meanwhile, you can run mc(1) in colorless mode (with -b switch) to avoid hitting buggy code path.