On Mon, 24 Dec 2007, Adrian Sevcenco wrote:

Troy Dawson wrote:
Adrian Sevcenco wrote:
Hi! It seems that mc is not working.. after launching the mc the cursor
just stops and nothing happens. What can i do do debug whats going on?
Thank you!
Adrian

There is always strace
  strace -o /tmp/mc.strace mc

You can then look at the strace file (/tmp/mc.strace) and see what it's
stuck on.

Troy
Thanks for the tip ... in fact is something strange : i forgot about mc
and after ~45 seconds it appeared on the screen.

Did you have your HOME in NFS/AFS?
Looks like, mc is wait for some network FS. I have something like that
when mc start from NFS on SL45.

In trace file i see a lots of
time(NULL)                              = 1198533795
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2195, ...}) = 0
I run an strace -c but total seconds is 0.002628 which is very strange
as i count 45 second from command to GUI drawing.
this is from strace -c
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
86.68    0.002278         456         5           statfs64
...
...
------ ----------- ----------- --------- --------- ----------------
100.00    0.002628                  1605       169 total


also an strace -cf
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
91.57    0.054312         936        58        26 waitpid
...
...
------ ----------- ----------- --------- --------- ----------------
100.00    0.059310                  6280       921 total

What can i do more?
Thanks for your help!!

and not related :
/etc/X11/xinit/Xsession: line 15: unask: command not found

Ohhh! should be "umask", bug in TUV distro? but it is not related to mc.
sed -i -e 's|unask 077|umask 077|' /etc/X11/xinit/Xsession
to get rid of "unask: command not found"

--
Best regards,
 Valery Mitsyn

Reply via email to