On Thu, 03 Aug 2000 20:55:19 +0200, [EMAIL PROTECTED] wrote:
> The _initWithHostEntry is called in this order.
>
> _initWithHostEntry(name="GNUstep local host")
> _initWithHostEntry(name="neonhost.localdomain")
> _initWithHostEntry(name="localhost")
> _initWithHostEntry(name="127.0.0.1")
>
> in the last case entry->h_aliases will be a null pointer for some reason (the
> rest of "entry" is just fine though). I've put this evil while() statement
> inside an if() { ... } to ignore it when name="127.0.0.1". Then the
> application I'm trying to run is actually started (even though all DGS
> widgets are really really messed up.. but that's another problem I'd guess).
> I've also attatched a backtrace from the point when the app crashes.
>
> If there's anything left to try, please say so. But perhaps It's time to
> update my glibc and/or egcs...
Well - as a workaround, I've modified NSHost to skip the attempt to add
aliases or additional addresses if entry->h_aliases or entry->h_addr_list is
null.
However, my understanding of this is that these should *never* be nul pointers.
If there are no aliases, entry->h_aliases should be a pointer to an array
whose first entry is a nul pointer - it shouldn't be nul itsself.
I guess that RedHat-6.2 must come with a library that has a buggy
gethostbyaddr() function. Perhaps a new glibc would fix things.