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.
what versions of man, less, groff ? does `strace less <file>` show anything useful ? (`emerge strace` if you havent)
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
Created attachment 3080 [details] Log of strace
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.
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
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
Robert, care to try this?
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
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
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.
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