[...] it appears that fgets eventually calls malloc and for some reason malloc hangs. This is symptomatic of running a fairly old ld.so on a fairly new kernel. ------------------------------------------------------------------------------