Description of Problem: Since the upgrade to man-1.5j, lesspipe.sh fails when trying to view a man page ... Version-Release number of selected component (if applicable): man-1.5j-1 How Reproducible: less /usr/share/doc/rpm-devel-4.0.4/apidocs/man/man3/queryformat.3.gz man -- /tmp/queryformat.3 Basically lesspipe.sh fails to work as expected because man -- /filename segfaults. Rebuilding the source package on the current Raw Hide snapshot failed to make any difference (it did fix netpbm-progs though :o) It looks like the new option-processing code in 1.5j doesn't like the bare -- option. Downgrading the man-1.5i-whatever fixes it for now.
I can't reproduce this with man-1.5j-2 and less-358-24, assuming it's fixed.
[bill@pikachu bill]$ man -- /usr/share/doc/rpm-devel-4.0.4/apidocs/man/man3/queryformat.3.gz Segmentation fault [bill@pikachu bill]$ man --version man, version 1.5j [bill@pikachu bill]$ rpm -q man man-1.5j-2 [bill@pikachu bill]$ rpm -q less less-358-24
Also: [root@pikachu root]# rpm -V man less [root@pikachu root]# I think the problem relates to option processing, so it could be a glibc issue? [bill@pikachu bill]$ ldd /usr/bin/man libc.so.6 => /lib/i686/libc.so.6 (0x40037000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [bill@pikachu bill]$ rpm -q glibc glibc-2.2.90-3 But it was segfaulting with glibc 2.2.3, too. (by the way, "man /path/to/file works fine, it's only with the -- as the only option that it faults) I wonder if it's a feature of the i686 glibc on an Athlon? I'll try this at work on a PII.
Created attachment 47981 [details] Backtrace showing source location where segfault occurs.
Looks like it may actually be a glibc bug ... _getopt_internal gets called twice, the second time for some reason with argv = { "dummy", ... } and that segfaults.
fixed in man-1.5j-10