On 32-bit hpux we were not properly reading symfiles and iterating over sections that don't exist. This caused segfaults when, for example, we try to debug gdb with itself. Fixed with the attached patch. committed as obvious. randolph