gnustep-dev
[Top][All Lists]
Advanced

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

Re: Thread IDs on BSD


From: Riccardo Mottola
Subject: Re: Thread IDs on BSD
Date: Wed, 01 Apr 2015 23:49:08 +0200
User-agent: Mozilla/5.0 (X11; NetBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Wolfgang,

On 04/01/15 10:46, Wolfgang Lux wrote:
The two errors in the log above are due to using the wrong comment syntax and using a non-standard operator in a test command in the configure script, respectively. I've fixed both of them.

Fine! Now configure ends and I can compile on NetBSD

I get a very high number of warnings about weak:

GNUstepBase/GSConfig.h:417:0: warning: "__weak" redefined [enabled by default]
 #    define __weak
 ^
In file included from /usr/include/sys/cdefs.h:60:0,
                 from /usr/include/i386/ansi.h:37,
                 from /usr/include/string.h:36,
                 from common.h:15,
                 from NSSocketPortNameServer.m:31:
/usr/include/sys/cdefs_elf.h:68:0: note: this is the location of the previous definition
 #define __weak __attribute__((__weak__))

I don't remember getting these.

The output of "lazy thread" for me is:
grid$ grid$ ./lazy_thread
WARNING thread 0xb9139150 terminated without calling +exit!
Passed test: lazy_thread.m:17 ... NSThread lazily created from POSIX thread
Passed test:     lazy_thread.m:20 ... Spawned thread is not main thread
WARNING thread 0xb91391b0 terminated without calling +exit!
Passed test: lazy_thread.m:23 ... NSThread lazily created from POSIX thread
Passed test:     lazy_thread.m:25 ... Spawned thread is not main thread
2015-04-01 23:47:07.160 lazy_thread[13081:3105067152] autorelease called without pool for object (0xb9199f70) of class NSDataStatic in thread <NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152} 2015-04-01 23:47:07.164 lazy_thread[13081:3105067152] autorelease called without pool for object (0xb8d270b0) of class NSDataStatic in thread <NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152} 2015-04-01 23:47:07.164 lazy_thread[13081:3105067152] autorelease called without pool for object (0xb8d28140) of class NSMutableDataMalloc in thread <NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152} 2015-04-01 23:47:07.164 lazy_thread[13081:3105067152] Thread description is '<NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152}' 2015-04-01 23:47:07.164 lazy_thread[13081:3105067152] autorelease called without pool for object (0xb8d38090) of class GSCInlineString in thread <NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152} 2015-04-01 23:47:07.164 lazy_thread[13081:3105067152] autorelease called without pool for object (0xb9139270) of class GSCInlineString in thread <NSThread: 0xb9139090>{name = xxxtestxxx, num = 3105067152}
Passed test:     lazy_thread.m:31 ... thread description contains name

if I run it several times, I always get the same "num"... a bit a high number, it looks suspect to me.

Riccardo




reply via email to

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