On Thu, 03 Aug 2000 15:18:47 +0200, [EMAIL PROTECTED] wrote:
>the base/Testing stuff also crashes. I've now added some NSLog's in the NSHost.m
>to see how everything's done.. I discovered a crazy thing, the app really does
>crash at the assignment (after a couple of loops which seem to run well). Here's
>the output:  (the aliases are correct: localhost and neonhost)
>
>---------------------------------------------------------------
>Now we're entering _initWithHostEntry..
> Now we're entering _initWithHostEntry..
>   Now we're entering that crashing while loop..
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[1]: "localhost"
>       Now lets add it to "names"..
>     Done!
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[2]: "neonhost"
>       Now lets add it to "names"..
>     Done!
>   Now we're entering that crashing while loop..
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[1]: "localhost"
>       Now lets add it to "names"..
>     Done!
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[2]: "neonhost"
>       Now lets add it to "names"..
>     Done!
> Now we're entering _initWithHostEntry..
>   Now we're entering that crashing while loop..
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[1]: "localhost"
>       Now lets add it to "names"..
>     Done!
>     First of all, read the ptr to my own NSString (just for the debug
>purpose)..
>       h_aliases[2]: "neonhost"
>       Now lets add it to "names"..
>     Done!
> Now we're entering _initWithHostEntry..
>   Now we're entering that crashing while loop..
>Segmenteringsfel (core dumped)
>------------------------------------------------------------


Well - I can't pretend I understand this ...
There is no context abouve to see why _initWithHostEntry:key: is being called
repeatedly.  Also, I can't see how you get this -
>Now we're entering _initWithHostEntry..
> Now we're entering _initWithHostEntry..

Is entry->h_aliases nul?  That's the only reason I can see for the crash.
But I have no idea how entry->h_aliases could be nul.

It would be interesting to see what the entry name argument to
_initWithHostEntry:key: is on the occasion that it crashes.

A stack dump might also be useful.

Reply via email to