[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segfault on [NSApplication sharedApplication];
From: |
Robert E. Hartley |
Subject: |
Re: segfault on [NSApplication sharedApplication]; |
Date: |
Sat, 30 Jun 2001 00:40:44 -0400 |
Hi,
Thanks for your patience. GDB v5 does not build nicely for me on the
Netwinder, so I have to use gdb with undemangled names.
(Still not sure if this is a GCC problem or a GNUStep problem.)
Running any application from Gnustep gives me results as follows:
Program received signal SIGSEGV, Segmentation fault.
0x4023f8ec in objc_msg_lookup (receiver=0x204d658, op=0x40220084) at
objc/sarray.h:230
(xxgdb) stack
Undefined command: "stack". Try "help".
(xxgdb) info stack
#0 0x4023f8ec in objc_msg_lookup (receiver=0x204d658, op=0x40220084) at
objc/sarray.h:230
#1 0x4018abb4 in
_i_NSConcreteTimeZoneDetail__initWithTimeZone_withAbbrev_withOffset_withDST_
() from
/opt/GNUstep/System/Libraries/armv4l/linux-gnu/gnu-gnu-gnu/libgnustep-base.so.1
(xxgdb)
And it shows it failing at:
filename: /opt/gcc/gcc/armv4l-unknown-linux-gnu/libobjc/objc/sarray.h
Line number: 230
static inline void* sarray_get_safe(struct sarray* array, sidx index)
{ <<==== fails at exactly this point.
if(soffset_decode(index) < array->capacity)
return sarray_get(array, index);
else
return (array->empty_bucket->elems[0]);
}
#endif /* __sarray_INCLUDE_GNU */
Thank you,
Robert
Nicola Pero wrote:
> > Hello,
> >
> > I keep geting seg faults on the sample apps at the following lines:
> >
> > // in the file: gnustep/usr-apps/examples/gui/HostAddress/main.m
> > [NSApplication sharedApplication];
> >
> > // in the file: gnustep/usr-apps/examples/gui/Calculator/main.m
> > app = [NSApplication sharedApplication];
>
> Can you provide us with more information, such as the error messages you
> get (possibly a stack trace from the debugger) ?
>
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnustep-dev
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Robert Hartley Mail: 201 Broadway =
= Central Region Systems Engineer Cambridge, MA 02139 =
= Integrated Computer Email: address@hidden =
= Solutions, Inc. Web Site: www.ics.com =
= Tech Support: address@hidden Phone: 800-800-4271 =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Visit the MotifZone (www.motifzone.org) for info on Motif!
robert.hartley.vcf
Description: Card for Robert E. Hartley