This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

man incredibly slow because it scans for share directory in PATH??


Hi,

I traced down my problem with really slow man page views this:

{{{

>PATH="/usr/bin:/foo" strace man bar |grep 'foo/share'

}}}

I am getting this:

{{{

   13   39756 [main] man 6688 normalize_posix_path: src /foo/share/man
16 39772 [main] man 6688 normalize_posix_path: /foo/share/man = normalize_posix_path (/foo/share/man) 13 39785 [main] man 6688 mount_info::conv_to_win32_path: conv_to_win32_path (/foo/share/man) 12 39810 [main] man 6688 mount_info::conv_to_win32_path: src_path /foo/share/man, dst C:\tools\cygwin\foo\share\man, flags 0x3000A, rc 0 16 39912 [main] man 6688 mount_info::conv_to_win32_path: conv_to_win32_path (/foo/share) 14 39942 [main] man 6688 mount_info::conv_to_win32_path: src_path /foo/share, dst C:\tools\cygwin\foo\share, flags 0x3000A, rc 0

}}}

If my PATH is the real one this goes on forever, and generates some problems,like:

{{{

>time man bar
No manual entry for bar

real    0m23.650s
user    0m0.000s
sys     0m0.108s

hanging e.g. on

20 2449004 [main] man 8124 mount_info::conv_to_win32_path: src_path //share/man, dst \\share\man, flags 0x4022, rc 0

}}}

VS.

{{{

>PATH=/usr/bin/ bash -c "time man bar"
No manual entry for bar

real    0m0.082s
user    0m0.031s
sys     0m0.045s

}}}

Any ideas why man does look for "share" in the whole path? Tbh I haven't looked at the man source code. Thx in advance!

BR

Till

PS: aliasing man with a limited PATH works for me...

Attachment: cygcheck.out
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]