discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSThread problem


From: Ivan Vučica
Subject: Re: NSThread problem
Date: Thu, 23 Oct 2014 21:18:36 +0100

Are you sure you have only one libgnustep-base on the system?

I'm also not sure you get useful lines without -O0 -g3. To see if -g3 is used:
  make messages=yes

OTOH, I think make debug=yes will make debugging possible. You'll probably want to rebuild at least -base completely. (I'm not sure if -O0 and -g3 need to come from gnustep-make.)

FWIW, I don't see GSPerformHolder implementation inside NSThread.m at all.
  http://svn.gna.org/svn/gnustep/libs/base/trunk/Source/NSThread.m

On Thu, Oct 23, 2014 at 6:11 PM, Andreas Höschler <ahoesch@smartsoft.de> wrote:
Hi all,

I have a multi-threaded tool that quite often stops working (continues to run but does nothing anymore). When I back trace the beast with gdb I get

#0  0xfdd78aab in __lwp_park () from /lib/libc.so.1
#1  0xfdd718f3 in mutex_lock_queue () from /lib/libc.so.1
#2  0xfdd7225c in mutex_lock_impl () from /lib/libc.so.1
#3  0xfdd72335 in pthread_mutex_lock () from /lib/libc.so.1
#4  0xfe68f36a in __objc_mutex_lock (mutex=0x4d) at ../gcc/gthr-posix.h:95
#5  0xfe68ea23 in objc_mutex_lock (mutex=0x822b208) at /usr/share/src/gcc-3.4.4/libobjc/thr.c:326
#6  0xfdf4d3b8 in -[NSLock lock] (self=0x822b228, _cmd=0xfe1edcc0) at NSLock.m:241
#7  0xfdfba858 in +[GSPerformHolder receivedEvent:type:extra:forMode:] (self=0xfe1ed940, _cmd=0xfe2029a0, 
    data="" type=ET_RDESC, extra=0x5, mode=0xfe1e8ae8) at NSThread.m:918
#8  0xfe031317 in -[GSRunLoopCtxt pollUntil:within:] (self=0x82173d8, _cmd=0xfe1e8a30, milliseconds=25, 
    contexts=0x81c2e38) at GSRunLoopCtxt.m:585
#9  0xfdf92567 in -[NSRunLoop acceptInputForMode:beforeDate:] (self=0x81c2e88, _cmd=0xfe1e8a58, 
    mode=0xfe1e8ae8, limit_date=0x8807fd8) at NSRunLoop.m:969

However, the line numbers make no sense. There is no lock call at NSThread.m:918. I made

cd  /usr/src/core/base
make

but nothing was newly built. What the hack ... Does the above backtrace ring any bells? I am clueless! :-(

Thanks a lot,

 Andreas


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep




--
Ivan Vučica
ivan@vucica.net

reply via email to

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