[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 11:58:54 +0100 |
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