Subject: | |
From: | |
Reply To: | |
Date: | Wed, 2 Jan 2008 13:19:54 +0000 |
Content-Type: | multipart/signed |
Parts/Attachments: |
|
|
Adrian Sevcenco wrote:
> Valery Mitsyn wrote:
>> 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.
> No.. i would have expected that on NFS but its just a local SL5
>
>>> 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"
> Yeah, i know i just posted it for a "heads up" ;)
> Thanks
> Best regards,
> Adrian
>
I tracked down the problem to gethostbyname() (similar problem found in
FreeBSD mail lists). In my case was enough to write in /etc/hosts
the normal alias of 127.0.0.1 (which wasn't there (!!!???))
Best regards,
Adrian
|
|
|