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...


#0  0x40421cd8 in _i_NSHost_Private__initWithHostEntry_key_ (self=0x8248a00, 
    _cmd=0x404ee548, entry=0x408be824, name=0x8248878) at NSHost.m:198
#1  0x40422950 in _c_NSHost__hostWithName_ (self=0x404ee340, _cmd=0x404f5908, 
    name=0x8248878) at NSHost.m:324
#2  0x404497e2 in _i_GSPortCom__open_ (self=0x8248748, _cmd=0x404f59f8, 
    hostname=0x8248878) at NSPortNameServer.m:344
#3  0x4044a20f in _i_GSPortCom__startPortLookup_onHost_ (self=0x8248748, 
    _cmd=0x404f5bf8, name=0x404e7600, host=0x8248878) at NSPortNameServer.m:471
#4  0x4044bd79 in _i_NSPortNameServer__portForName_onHost_ (self=0x820ed00, 
    _cmd=0x404df648, name=0x404e7600, host=0x404e7614)
    at NSPortNameServer.m:715
#5  0x403c5492 in _c_NSConnection__connectionWithRegisteredName_host_usingNameServer_ 
(self=0x404df360, _cmd=0x404df640, n=0x404e7600, h=0x404e7614, 
    s=0x820ed00) at NSConnection.m:407
#6  0x403c541d in _c_NSConnection__connectionWithRegisteredName_host_ (
    self=0x404df360, _cmd=0x404df720, n=0x404e7600, h=0x404e7614)
    at NSConnection.m:394
#7  0x403c5dc7 in _c_NSConnection__rootProxyForConnectionWithRegisteredName_host_ 
(self=0x404df360, _cmd=0x404e73e0, n=0x404e7600, h=0x404e7614)
    at NSConnection.m:529
#8  0x403eed00 in _i_NSDistributedNotificationCenter_Private__connect (
    self=0x8247ff8, _cmd=0x404e7290) at NSDistributedNotificationCenter.m:317
#9  0x403edee0 in 
_i_NSDistributedNotificationCenter__addObserver_selector_name_object_suspensionBehavior_
 (self=0x8247ff8, _cmd=0x404e7238, 
    anObserver=0x8246148, aSelector=0x402b3770, notificationName=0x0, 
    anObject=0x402b4000, 
    suspensionBehavior=NSNotificationSuspensionBehaviorCoalesce)
    at NSDistributedNotificationCenter.m:166
#10 0x403edac5 in 
_i_NSDistributedNotificationCenter__addObserver_selector_name_object_ (self=0x8247ff8, 
_cmd=0x402b3778, anObserver=0x8246148, 
    aSelector=0x402b3770, notificationName=0x0, anObject=0x402b4000)
---Type <return> to continue, or q <return> to quit---
    at NSDistributedNotificationCenter.m:123
#11 0x401d4959 in _i__GSWorkspaceCenter__init (self=0x8246148, _cmd=0x404f2508)
    at NSWorkspace.m:79
#12 0x40436fa5 in _c_NSObject__new (self=0x402b3700, _cmd=0x402b37f0)
    at NSObject.m:663
#13 0x401d4dd4 in _c_NSWorkspace__initialize (self=0x402b3620, _cmd=0x80c0a88)
    at NSWorkspace.m:173
#14 0x804dd98 in __objc_send_initialize (class=0x402b3620)
    at ../../gcc/objc/sendmsg.c:308
#15 0x804dc25 in __objc_init_install_dtable (receiver=0x402b3620, 
    op=0x402701b8) at ../../gcc/objc/sendmsg.c:248
#16 0x804e6cf in objc_msg_lookup (receiver=0x402b3620, op=0x402701b8)
    at ../../gcc/objc/sendmsg.c:164
#17 0x400a4c17 in _i_NSApplication__finishLaunching (self=0x8112060, 
    _cmd=0x40270348) at NSApplication.m:703
#18 0x400a5a95 in _i_NSApplication__run (self=0x8112060, _cmd=0x805a390)
    at NSApplication.m:869
#19 0x804cdb2 in main () at main.m:238

Reply via email to