problem with man- it hangs on Debian-1.3

1998-01-08 Thread David Konerding

Dear Fellow Debian Users:

(let me know if I've posted this to the wrong place; I don't think
it's a Debian bug per-se, but a local installation problem I can't
solve).

I'm running Debian-1.3 on two machines, my home computer and my
work computer.  My home computer runs man just fine, but on my
work computer, man doesn't work.

If I type man whatever, some disk activity and CPU are used, but
then the man process appears to just hang (no more disk or CPU
consumed).  I know that man is actually a front-end to several processing
steps, so I suspect that one of the intermediate steps is hanging.
I have deinstalled and reinstalled packages relevant to man and
the problem has not gone away.

I can read manpages using the following:

zcat /usr/man/man1/whatever.gz | nroff -man | less

If I hit control-c during the processing of the man page, I see:
 /bin/gzip -dc '/var/catman/cat3/dlopen.3.gz' | \
{ export MAN_PN LESS; MAN_PN='dlopen(3)';\
LESS=$LESS\$-Pm\:\$ix8mPm Manual page $MAN_PN ?ltline %lt?L/%L.:byte %bB?s/%s.
.?e (END):?pB %pB\\%..;
 less; } 

and if I enter that into the shell, I can read the manpage.


Here is a tail of the strace of a man that locks up:


Script started on Thu Jan  8 12:39:57 1998

[EMAIL PROTECTED]:~
strace man dlopen
execve(/usr/bin/man, [man, dlopen], [/* 35 vars */]) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007
000
mprotect(0x4000, 20301, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x800, 68846, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat(/etc/ld.so.cache, {st_mode=S_IFREG|0644, st_size=7501, ...}) = 0
open(/etc/ld.so.cache, O_RDONLY)  = 3
mmap(0, 7501, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3)= 0
stat(/etc/ld.so.preload, 0xb600)  = -1 ENOENT (No such file or directory)
open(/usr/lib/libdb.so.1, O_RDONLY)   = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3..., 4096) = 4096
mmap(0, 61440, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000a000
mmap(0x4000a000, 55899, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4
000a000
mmap(0x40018000, 3304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) 
= 0x40018000
close(3)= 0
mprotect(0x4000a000, 55899, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open(/lib/libc.so.5, O_RDONLY)= 3

blah blah blah

fstat(3, {st_mode=S_IFREG|0644, st_size=6047, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008
000
read(3, .\\\ -*- nroff -*-\n.\\\ Copyr..., 4096) = 4096
close(3)= 0
munmap(0x40008000, 4096)= 0
access(./mandb_nfmt, X_OK)= -1 ENOENT (No such file or directory)
stat(/usr/man/man3/dlopen.3.gz, {st_mode=S_IFREG|0644, st_size=2656, ...}) = 
0
stat(/usr/man/cat3/dlopen.3.gz, 0xb3f8) = -1 ENOENT (No such file or dire
ctory)
stat(/usr/man/man3/dlopen.3.gz, {st_mode=S_IFREG|0644, st_size=2656, ...}) = 
0
stat(/var/catman/cat3/dlopen.3.gz, {st_mode=S_IFREG|0644, st_size=2565, ...})
 = 0
stat(/var/catman/cat3, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
access(/var/catman/cat3/dlopen.3.gz, R_OK) = 0
geteuid()   = 6
geteuid()   = 6
setuid(2899)= 0
sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}) = 0
sigprocmask(SIG_BLOCK, [CHLD], [])  = 0
fork()  = 2106
wait4(2106,  unfinished ...

-
Email: [EMAIL PROTECTED]   David Konerding   WWW: http://picasso.ucsf.edu/~dek
-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: problem with man- it hangs on Debian-1.3

1998-01-08 Thread hawk

 Dear Fellow Debian Users:
 
 (let me know if I've posted this to the wrong place; I don't think
 it's a Debian bug per-se, but a local installation problem I can't
 solve).
 
 I'm running Debian-1.3 on two machines, my home computer and my
 work computer.  My home computer runs man just fine, but on my
 work computer, man doesn't work.
 
 If I type man whatever, some disk activity and CPU are used, but
 then the man process appears to just hang (no more disk or CPU
 consumed).  I know that man is actually a front-end to several processing
 steps, so I suspect that one of the intermediate steps is hanging.
 I have deinstalled and reinstalled packages relevant to man and
 the problem has not gone away.

Have you partially upgraded to unstable?  I saw similar behavior under those 
circumstances

rick

-- 
These opinions will not be those of ISU until it pays my retainer.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: problem with man- it hangs on Debian-1.3

1998-01-08 Thread Heikki Vatiainen
Are you using bash as your shell and have 'set -a' in /etc/profile or in any 
of your bash startup files? If so, try removing 'set -a' or running man under 
some other shell.

Bash hanging with man when 'set -a' was in use was reported as bug #8390 
during last summer.

// Heikki
-- 
Heikki Vatiainen  * [EMAIL PROTECTED]
Tampere University of Technology  * Tampere, Finland



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .