discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep with GCC 4.9.1


From: Wolfgang Lux
Subject: Re: GNUstep with GCC 4.9.1
Date: Fri, 29 Aug 2014 09:31:13 +0200

Hi Germán Arias:

> AClock crash with gcc 4.9.1, here the backtrace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> objc_msg_lookup ()
>    at 
> /home/german/Instalados/source/gcc-4.9.1/libobjc/objc-private/sarray.h:237
> 237     if (soffset_decode (indx) < array->capacity)
> (gdb) backtrace
> #0  objc_msg_lookup ()
>    at 
> /home/german/Instalados/source/gcc-4.9.1/libobjc/objc-private/sarray.h:237
> #1  0x006fb6de in -[GSInlineArray initWithObjects:count:] () at GSArray.m:423
> #2  0x006fad11 in -[GSPlaceholderArray initWithObjects:count:] ()
>    at GSArray.m:1141
> #3  0x0074b893 in +[NSArray arrayWithObjects:] () at NSArray.m:266
> #4  0x0804c4bf in +[Clock initialize] () at Clock.m:53
> #5  0x00ba663d in __objc_send_initialize ()
>    at /home/german/Instalados/source/gcc-4.9.1/libobjc/sendmsg.c:524
> #6  0x00ba6728 in __objc_install_dtable_for_class ()
>    at /home/german/Instalados/source/gcc-4.9.1/libobjc/sendmsg.c:1036
> #7  0x00ba7121 in objc_msg_lookup ()
>    at /home/german/Instalados/source/gcc-4.9.1/libobjc/sendmsg.c:270
> #8  0x003ac526 in -[GSNibItem initWithCoder:] () at GSGormLoading.m:551
> #9  0x00878d10 in -[NSUnarchiver decodeValueOfObjCType:at:] ()
>    at NSUnarchiver.m:890
> #10 0x00718c45 in -[GSSet initWithCoder:] () at GSSet.m:247
> #11 0x00878d10 in -[NSUnarchiver decodeValueOfObjCType:at:] ()
>    at NSUnarchiver.m:890
> #12 0x003ab3f7 in -[GSNibContainer initWithCoder:] () at GSGormLoading.m:384
> #13 0x00878d10 in -[NSUnarchiver decodeValueOfObjCType:at:] ()
>    at NSUnarchiver.m:890
> ---Type <return> to continue, or q <return> to quit---
> #14 0x0076c050 in -[NSCoder decodeObject] () at NSCoder.m:248
> #15 0x003d8b51 in -[GSGormLoader loadModelData:externalNameTable:withZone:] ()
>    at GSGormLoader.m:114
> #16 0x002baf46 in -[NSNib instantiateNibWithExternalNameTable:withZone:] ()
>    at NSNib.m:153
> #17 0x00229bad in +[NSBundle(NSBundleAdditions) 
> loadNibFile:externalNameTable:withZone:] () at NSBundleAdditions.m:236
> #18 0x00229d94 in -[NSBundle(NSBundleAdditions) 
> loadNibFile:externalNameTable:withZone:] () at NSBundleAdditions.m:332
> #19 0x00229d13 in +[NSBundle(NSBundleAdditions) loadNibNamed:owner:] ()
>    at NSBundleAdditions.m:278
> #20 0x001e3a57 in NSApplicationMain () at Functions.m:83
> #21 0x08048fd7 in main () at main.m:30
> (gdb)

it is rather surprising that you didn't see this crash with another compiler 
before. The problem is clearly in this frame:
  #4  0x0804c4bf in +[Clock initialize] () at Clock.m:53
The statement at that line is
        dayWeek = [NSArray 
arrayWithObjects:@"su",@"mo",@"tu",@"we",@"th",@"fr",@"sa"];
The argument list lacks the nil sentinel to indicate where the list of objects 
ends.

Wolfgang




reply via email to

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