Description of problem:
Trying to build vnc hangs in find-debuginfo.sh, in file:
#0 donote (ms=0x9990848, nbuf=0xbfebb9f0 "ï¿½ï¿½ï¿½ï¿½G\211D$\bï¿½\020", offset=0,
size=8192, class=1, swap=0, align=136791912) at readelf.c:281
#1 0x00b4923f in dophn_exec (ms=0x9990848, class=1, swap=0, fd=6,
off=587516788558334024, num=2, size=3219896816) at readelf.c:639
#2 0x00b4969d in file_tryelf (ms=0x9990848, fd=6, buf=0x0, nbytes=65537)
#3 0x00b431da in magic_file (ms=0x9990848, inname=0xbff98ba3 "Xvnc")
#4 0x08049284 in process (inname=0xbff98ba3 "Xvnc", wid=0) at file.c:375
#5 0x08048f0a in main (argc=2, argv=0xbfecdd54) at file.c:302
ELF binary available at porkchop:~twaugh/Xvnc-109495
(This issue is blocking an errata build.)
Created attachment 95847 [details]
This patch fixes it for me.
Created attachment 95907 [details]
Here is a more complete patch to fix the other return value confusion bugs in
Tim, I tried to reproduce the problem with file-4.02-2 and
but no "luck". What version of vnc were you rebuilding when you got
I'm pretty sure it was vnc-4.0-0.beta4.3.2. But you can see that the
code was wrong by inspection.
I got a hang with bcc as in dev86-0.16.15-1, od and tty as in
coreutils-5.2.1-3, pbmtogem and ppmtopcx as in netpbm-progs-10.19-6.1
These are all ELF files. And it is on x86. x86-64 works fine.
file hangs when running:
using the latest FC2Test3 with the latest updates applied.
Seems ELF PT_NOTE parsing has been completely broken in file(1).
Please try ftp://people.redhat.com/jakub/file/
With file-4.07-3, these files in /usr/bin caused hangs:
getconf magicfilter-t pbmtogem pgmmorphconv pilot-archive ppmtopcx
After updating to file-4.07-4 I can't find a file in /usr/bin/, /bin/,
/usr/sbin or /sbin that causes a hang.
this bug seems to be fixed now
Seems to be fixed in file-4.10-1. Tested on all files from /usr/bin