discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Warning on first NSLog call


From: David Chisnall
Subject: Re: Warning on first NSLog call
Date: Thu, 5 Apr 2012 12:40:20 +0100

I suspect that this is caused by -base not being able to find the time zone 
data.  I notice that you are linking with GNUstep base in a very strange way.  
How did you compile / install it?

David

On 5 Apr 2012, at 12:37, Rasmus Barringer wrote:

> Stack trace:
> 
> #0  NSEnumerateMapTable (table=0x0) at NSConcreteMapTable.m:537
> #1  0x00007ffff781413c in +[NSBundle bundleForClass:] (self=0x7ffff7d0ce60,
>    _cmd=<value optimized out>, aClass=0x7ffff7d5a280) at NSBundle.m:1278
> #2  0x00007ffff7931f9c in _time_zone_path (subpath=0x7ffff7d8a460,
>    type=0x7ffff7d8a740) at NSTimeZone.m:332
> #3  0x00007ffff7934b3e in +[NSTimeZone systemTimeZone] (self=0x7ffff7d88ae0,
>    _cmd=<value optimized out>) at NSTimeZone.m:1469
> #4  0x00007ffff7930de3 in +[NSTimeZone defaultTimeZone] (self=0x7ffff7d88ae0,
>    _cmd=<value optimized out>) at NSTimeZone.m:1317
> #5  0x00007ffff79301eb in -[NSLocalTimeZone secondsFromGMTForDate:] (
>    self=<value optimized out>, _cmd=<value optimized out>, aDate=0x89dab8)
>    at NSTimeZone.m:639
> #6  0x00007ffff781d1af in offset (self=0x89dab8, _cmd=<value optimized out>,
>    format=0x7ffff7d4d040, locale=0x89fe18) at NSCalendarDate.m:111
> #7  -[NSCalendarDate descriptionWithCalendarFormat:locale:] (self=0x89dab8,
>    _cmd=<value optimized out>, format=0x7ffff7d4d040, locale=0x89fe18)
>    at NSCalendarDate.m:2422
> #8  0x00007ffff78b6a60 in NSLogv (format=0x602c80, args=0x7fffffffe0e0)
>    at NSLog.m:331
> #9  0x00007ffff78b6e09 in NSLog (format=<value optimized out>) at NSLog.m:247
> #10 0x000000000040074a in main ()
> 
> Rasmus
> 
> Den 5 april 2012 12:58 skrev David Chisnall <theraven@sucs.org>:
>> I can't reproduce this on FreeBSD.  Can you put a breakpoint on 
>> NSConcreteMapTable.m:537 and give a back trace where it appears?
>> 
>> David
>> 
>> On 5 Apr 2012, at 10:46, Rasmus Barringer wrote:
>> 
>>> Hi,
>>> 
>>> I am using clang with gnustep-libobjc2 runtime on ubuntu 11.04. I did
>>> not install the full gnustep system as I am only interested in the
>>> Foundation equivalent (gnustep-base-1.24.0). Clang, gnustep-libobjc2
>>> and gnustep-base is compiled from source.
>>> 
>>> Everything works great apart from a suspicious print when using NSLog
>>> for the first time:
>>> 
>>> "File NSConcreteMapTable.m: 537. In NSEnumerateMapTable Null table
>>> argument supplied"
>>> 
>>> Can I fix this somehow?
>>> 
>>> Here is a full example demonstrating the issue:
>>> 
>>> #include <Foundation/Foundation.h>
>>> int main() {
>>>  @autoreleasepool {
>>>    NSLog(@"Hello world");
>>>    NSLog(@"Hello world again");
>>>  }
>>>  return 0;
>>> }
>>> 
>>> Compiled with:
>>> 
>>> clang libgnustep-base.so.1.24 -fconstant-string-class=NSConstantString
>>> -fobjc-arc -fobjc-nonfragile-abi main.m -o prog
>>> 
>>> The full output:
>>> 
>>> 2012-04-05 09:44:24.599 prog[2084] File NSConcreteMapTable.m: 537. In
>>> NSEnumerateMapTable Null table argument supplied
>>> 2012-04-05 11:44:24.599 prog[2084] Hello world
>>> 2012-04-05 11:44:24.600 prog[2084] Hello world again
>>> 
>>> Thanks in advance,
>>> Rasmus
>>> 
>>> _______________________________________________
>>> Discuss-gnustep mailing list
>>> Discuss-gnustep@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>> 
>> 
>> -- Sent from my brain
>> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep


-- Sent from my PDP-11




reply via email to

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