gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault on [NSApplication sharedApplication];


From: Richard Frith-Macdonald
Subject: Re: segfault on [NSApplication sharedApplication];
Date: Sat, 7 Jul 2001 20:13:29 +0100

On Saturday, July 7, 2001, at 06:24 PM, Robert E. Hartley wrote:

Program received signal SIGSEGV, Segmentation fault.

0x405ff8ec in objc_msg_lookup (receiver=0x40766ce8, op=0x405ca568) at objc/sarray.h:230

(xxgdb) info stack

#0 0x405ff8ec in objc_msg_lookup (receiver=0x40766ce8, op=0x405ca568) at objc/sarray.h:230

#1 0x404c2e40 in _i_NSFileManager__fileSystemRepresentationWithPath_ (self=0x212ef20, _cmd=0x405ca308, path=0x40766ce8) at NSFileManager.m:1316

#2 0x404c1180 in _i_NSFileManager__fileExistsAtPath_isDirectory_ (self=0x212ef20, _cmd=0x40961124, path=0x40766ce8, isDirectory=0xbfffed27 "@ address@hidden \f\021\002híÿ¿Ðé\027\002¸k\027\002Pa\027\002 \f\021") at NSFileManager.m:818

#3 0x409250d4 in loadCache (self=0x217e578, async=0 '\000') at XGFontManager.m:90


I looked at the code - and it would seem that it is possible for the path passed to be uninitialised - which would cause the crash. I have hacked the XGFontManager.m code to ensure that path is initialised
to a reasonable value.

You could try again with the latest code from CVS.

However, the only way that I can see for the path to be uninitialised is if the GNUSTEP_USER_ROOT is not set, which should not be happening as that should be set up by the standard GNUstep.sh script.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]