bugGNUstep - Bugs: bug #4008, Recursive lock exception when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4008: Recursive lock exception when using DO

Submitted by:  None
Submitted on:  Tue 17 Jun 2003 04:34:16 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Alexander Malmberg <alexm>
Open/Closed: Closed

Tue 25 Nov 2003 01:45:44 PM UTC, comment #3:

No occurrences since the fix. If it had been there, Ian would have triggered it by now. :-) Closing.

Alexander Malmberg <alexm>
Project MemberIn charge of this item.
Tue 08 Jul 2003 01:16:35 AM UTC, comment #2:

Caused by two bugs in [NSConnection -locateLocalTarget:]. Was pulling objects of the wrong class from a map, and was holding a lock it shouldn't have been holding when calling other methods.

Fixed in cvs. Ian has tested for me, and hasn't been able to reproduce it yet (GNUMail has been running for significantly longer than the mean time between failures).

Alexander Malmberg <alexm>
Project MemberIn charge of this item.
Fri 04 Jul 2003 05:47:23 AM UTC, comment #1:

I haven't been able to reproduce this.
It appears in the traceback that an exception is being raised when trying to lock a recursive lock. As I understand it, this should always succeed (same thread) or block (other thread has the lock) ... so the fact that there is an exception sees to imply a bug in the locking code outside gnustep ... perhaps I'm missing something?

Richard Frith-Macdonald <CaS>
Project Member
Tue 17 Jun 2003 04:34:16 PM UTC, original submission:

This can be reproduced by running gnumail, having it automatically collect from both an IMAP account and from a pop account. I set them both to autocheck mail every 1 minute, and within a short time I get the lock exeption.

(gdb) bt
#0 _i_NSException__raise (self=0x848e110, _cmd=0x40589690)
at NSException.m:233
#1 0x40481e7e in c_NSException__raise_format_arguments (self=0x40589600,
_cmd=0x40589678, name=0x4058dffc, format=0x4058e044, argList=0xbfffe3b0)
at NSException.m:196
#2 0x40481dde in c_NSException__raise_format (self=0x40589600,
_cmd=0x4058de70, name=0x4058dffc, format=0x4058e044) at NSException.m:177
#3 0x40494cf7 in _i_NSLock__lock (self=0x872e250, _cmd=0x40581ad0)
at NSLock.m:189
#4 0x4045cf44 in i_NSConnection_Private_addLocalObject (self=0x85b57c8,
_cmd=0x40588230, anObj=0x84a8d38) at NSConnection.m:3015
#5 0x4047e5e7 in i_NSDistantObject__initWithLocal_connection (
self=0x84a8d38, _cmd=0x40587f48, anObject=0x19, aConnection=0x85b57c8)
at NSDistantObject.m:717
#6 0x4047d049 in c_GSDistantObjectPlaceHolder__initWithLocal_connection (
self=0x40587dc0, _cmd=0x40587f98, anObject=0x19, aConnection=0x85b57c8)
at NSDistantObject.m:306
#7 0x4047d364 in c_NSDistantObject__proxyWithLocal_connection (
self=0x40587be0, _cmd=0x40581be0, anObject=0x19, aConnection=0x85b57c8)
at NSDistantObject.m:359
#8 0x4045de9e in i_NSConnection_Private_locateLocalTarget (self=0x85b57c8,
_cmd=0x40587e40, target=391) at NSConnection.m:3245
#9 0x4047c924 in c_GSDistantObjectPlaceHolder__initWithCoder ( self=0x40587dc0, _cmd=0x40594808, aCoder=0x8745c30)
at NSDistantObject.m:159
#10 0x404b375f in i_NSPortCoder__decodeValueOfObjCType_at (self=0x8745c30,
_cmd=0x4057f570, type=0x4053eb2c "@", address=0xbfffe9a8)
at NSPortCoder.m:558
#11 0x40450bea in _i_NSCoder__decodeObject (self=0x8745c30, _cmd=0x40581588)
at NSCoder.m:213
#12 0x40459d6d in callDecoder (ctxt=0xbfffecb0) at NSConnection.m:2300
#13 0x403f2c4c in callframe_do_call (ctxt=0xbfffecb0,
decoder=0x40459cd0 <callDecoder>, encoder=0x40459dc0 <callEncoder>)
at callframe.m:261
#14 0x4045a194 in i_NSConnection_Private__service_forwardForProxy (
self=0x85b57c8, _cmd=0x405814d0, aRmc=0x8745c30) at NSConnection.m:2405
#15 0x40459546 in i_NSConnection_Private_handlePortMessage (self=0x85b57c8,
_cmd=0x40593a30, msg=0x86a0058) at NSConnection.m:2178
#16 0x404b0c74 in i_GSTcpPort__handlePortMessage (self=0x8621278,
_cmd=0x40593680, m=0x86a0058) at GSTcpPort.m:1820
#17 0x404ae6ea in i_GSTcpHandle__receivedEvent_type_extra_forMode (
self=0x850d548, _cmd=0x40593b08, data=0x8621278, type=ET_RPORT,
extra=0x13, mode=0x405982f4) at GSTcpPort.m:1069
#18 0x404b118c in i_GSTcpPort__receivedEvent_type_extra_forMode (
self=0x8621278, _cmd=0x40597fd0, data=0x8621278, type=ET_RPORT,
extra=0x13, mode=0x405982f4) at GSTcpPort.m:1971
#19 0x404c2f6c in i_GSRunLoopCtxt__pollUntil_within (self=0x825be90,
_cmd=0x40598180, milliseconds=113, contexts=0x8258f30) at NSRunLoop.m:837
#20 0x404c5b27 in i_NSRunLoop__acceptInputForMode_beforeDate (
self=0x82587a0, _cmd=0x405981f8, mode=0x405982f4, limit_date=0x84a1cf8)
at NSRunLoop.m:2017
#21 0x404c6203 in i_NSRunLoop__runMode_beforeDate (self=0x82587a0,
_cmd=0x403683b0, mode=0x405982f4, date=0x825ce80) at NSRunLoop.m:2098
#22 0x4027c130 in i_GSDisplayServer_EventOps_getEventMatchingMask_beforeDate_inMode_dequeue (self=0x8276560, _cmd=0x4093a450, mask=4294967295,
limit=0x825ce80, mode=0x405982f4, flag=1 '\001') at GSDisplayServer.m:906
#23 0x408f11c2 in i_XGServer_X11Ops_getEventMatchingMask_beforeDate_inMode_dequeue ()
from /System/Library/Bundles/libgnustep-back.bundle/ix86/linux-gnu/gnu-gnu-gnu/libgnustep-back
#24 0x401502eb in i_NSApplication__nextEventMatchingMask_untilDate_inMode_dequeue (self=0x8218a18, _cmd=0x4031bcf8, mask=4294967295, expiration=0x825ce80,
mode=0x405982f4, flag=1 '\001') at ../Headers/AppKit/GSDisplayServer.h:160
#25 0x4014ecbb in _i_NSApplication__run (self=0x8218a18, _cmd=0x40319e70)
at NSApplication.m:1041
#26 0x401465f5 in NSApplicationMain (argc=1, argv=0xbffff474) at Functions.m:72
#27 0x080dcbb2 in main (argc=1, argv=0xbffff474, env=0xbffff47c)
at GNUMail_main.m:42
#28 0x40636850 in __libc_start_main (main=0x80dcaa0 <main>, argc=1,
---Type <return> to continue, or q <return> to quit---
ubp_av=0xbffff474, init=0x804d19c <_init>, fini=0x80e0a00 <_fini>,
rtld_fini=0x4000c990 <_dl_fini>, stack_end=0xbffff46c)
at ../sysdeps/generic/libc-start.c:129

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 25 Nov 2003 01:45:44 PM UTCalexmAssigned toNone=>NA
  Open/ClosedIn Test=>(Error - Not Found)
Tue 08 Jul 2003 01:16:35 AM UTCalexmStatusWorks For Me=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Fri 04 Jul 2003 07:04:51 PM UTCCaSStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1