Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6477 - Man does not run
Summary: Man does not run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: J Robert Ray
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-14 14:43 UTC by Francisco León
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of strace (debug.txt,6.85 KB, text/plain)
2002-08-14 18:55 UTC, Francisco León
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco León 2002-08-14 14:43:13 UTC
espectro@fjl espectro $ man dd
sh: /usr/bin/less:/usr/bin/less: No such file or directory
Error executing formatting or display command.
System command (cd /usr/share/man && (echo ".pl 1100i"; /bin/gunzip -c
'/usr/share/man/man1/dd.1.gz'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl |
/usr/bin/nroff -mandoc | /usr/bin/less:/usr/bin/less) exited with status 127.
No manual entry for dd

I tried unzipping dd.1.gz and opening it with less, and i got:
espectro@fjl espectro $ less dd.1 
Segmentation fault

I tried re emerging less, man and groff

This used to work before.
Comment 1 SpanKY gentoo-dev 2002-08-14 18:22:27 UTC
what versions of man, less, groff ?

does `strace less <file>` show anything useful ? (`emerge strace` if you havent)
Comment 2 Francisco León 2002-08-14 18:54:17 UTC
espectro@fjl espectro $ man --version
man, version 1.5k

espectro@fjl espectro $ less --version
less 376

espectro@fjl espectro $ groff --version
GNU groff version 1.17.2

I am attaching the debug of strace since it's a little long. Some file not found
errors there... My portage tree is up to date
Comment 3 Francisco León 2002-08-14 18:55:13 UTC
Created attachment 3080 [details]
Log of strace
Comment 4 Brandon Low (RETIRED) gentoo-dev 2002-08-14 20:46:13 UTC
since this is critical, it shouldn't be assigned to me, cuz I'm still out of the
loop until next friday or so... don't really have access to a box with a CVS
tree and a reliable network connection till then.
Comment 5 Francisco León 2002-08-15 00:36:17 UTC
I did an ldconfig, i think that fixed it, however this should not have happened
in the first place, since building anything that requires it should do it on its
own... Weird, but since i can no longer reproduce this, WFM
Comment 6 Francisco León 2002-10-17 16:28:53 UTC
This problem kicked in again a long time ago, it seems random...
Less is the culprit, if i do "man something" it just says that there is no
manual, but if i do a valid one it calls less for formatting and it crashes:

espectro@fjl espectro $ man ddd
sh: /usr/bin/less:/usr/bin/less: No such file or directory
Error executing formatting or display command.
System command (cd /usr/share/man && (echo ".pl 1100i"; /bin/gunzip -c
'/usr/share/man/man1/ddd.1.gz'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl |
/usr/bin/nroff -mandoc | /usr/bin/less:/usr/bin/less) exited with status 127.

if i run less by itself, it says  "missing filename" but if i do less --help, it
does a segmentation fault
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-18 05:02:21 UTC
Robert, care to try this?
Comment 8 J Robert Ray 2002-10-18 10:32:28 UTC
Francisco, can you run less in the debugger and get a stack trace?

For best effect, you need to enable debugging symbols, so temporarily put this
in your make.conf:

CFLAGS="-g"
DEBUGBUILD=true

and emerge less.  Then...

$ gdb `which less`
...
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...
(gdb) run --help

Once it crashes...
(gdb) where


Comment 9 Francisco León 2002-10-18 12:44:49 UTC
I have done as you asked and now less --help does not crash, but still man gives
the same error and since it refuses to run no stack can be made:

fjl espectro # man less
sh: /usr/bin/less:/usr/bin/less: No such file or directory
Error executing formatting or display command.
System command (cd /usr/share/man && (echo ".pl 1100i"; /usr/bin/cat
'/usr/share/man/man1/less.1'; echo; echo ".pl \n(nlu+10") | /usr/bin/gtbl |
/usr/bin/nroff -mandoc | /usr/bin/less:/usr/bin/less) exited with status 127.
No manual entry for less

Comment 10 J Robert Ray 2002-10-18 15:27:19 UTC
Okay, well

sh: /usr/bin/less:/usr/bin/less: No such file or directory

This looks like it is trying to run something called
'/usr/bin/less:/usr/bin/less', something in your env is amiss.

Check the output of 'echo $PAGER' and make sure PAGER is set to something
sensible in /etc/env.d/00basic.

You could also possibly have $MANPAGER set, check that too.
Comment 11 Francisco León 2002-10-18 20:13:40 UTC
 grep LESSOPEN /etc/env.d/*
/etc/env.d/00basic:LESSOPEN="|lesspipe.sh %s"
/etc/env.d/66libs:LESSOPEN="|lesspipe.sh %s"
/etc/env.d/66libs~:LESSOPEN="|lesspipe.sh %s"

some weird emerge (i dont remember modifying that file) left me with a duplicate
variable setting causing me the error!

A guy in irc helped me find out.
FINALLY! I can RTFM again