bugDotGNU Portable.NET - Bugs: bug #8463, Monitor.Wait(..) on unlocked...

 
 

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

bug #8463: Monitor.Wait(..) on unlocked object causes SEGFAULT in ilrun

Submitter:  Russell Stuart <rstuart>
Submitted:  Tue 06 Apr 2004 08:47:26 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Mon 26 Apr 2004 10:10:59 AM UTC, comment #4: 

Should be fixed in CVS.  Engine structures have changed -- remember to do a clean build.

Thong Nguyen <tum>
Group Member
Fri 16 Apr 2004 04:05:16 AM UTC, comment #3: 

This is the gdb backtrace:
#0  _IL_Interlocked_Increment_Ri (thread=0x8126f60, location=0x4) at lib_thread.c:898
#1  0x08068cd8 in _IL_Monitor_InternalWait (thread=0x8126f60, objnv=0x8153ff8, timeout=-1)
    at lib_thread.c:454
#2  0x080c5473 in ffi_call_SYSV () at /tmp/cctF7x6P.s:40
#3  0x080c5439 in ffi_raw_call (cif=0x1, fn=0x8068ca0 <_IL_Monitor_InternalWait>, rvalue=0x1,
    fake_avalue=0x0) at src/x86/ffi.c:515
#4  0x080856cb in _ILCVMInterpreter (thread=0x8126f60) at cvm_call.c:665
#5  0x0804c294 in _ILCallMethod (thread=0x8126f60, method=0x400152c4,
    unpack=0x804c108 <_ILCallUnpackVResult>, result=0xbfffef90, isCtor=0, _this=0x0,
    pack=0x804be50 <_ILCallPackVParams>, userData=0xbfffefa0) at call.c:706
#6  0x0804c579 in ILExecThreadCallV (thread=0x8126f60, method=0x400152c4, result=0xbfffef90,
    args=0xbfffefa0) at call.c:928
#7  0x0804ba1f in main (argc=2, argv=0xbffff024) at ilrun.c:464
#8  0x400e04ed in __libc_start_main () from /lib/libc.so.6

Russell Stuart <rstuart>
Group Member
Thu 15 Apr 2004 10:29:09 PM UTC, comment #2: 

The patch I submitted was broken.

Russell Stuart <rstuart>
Group Member
Tue 06 Apr 2004 09:10:45 AM UTC, comment #1: 

Attached is a suggested fix to the problem.  Please check carefully.

Russell Stuart <rstuart>
Group Member
Tue 06 Apr 2004 08:47:26 AM UTC, original submission:  

This standlone program:
  class X {
    static void Main() {
      System.Threading.Monitor.Wait(typeof(X));
    }
  }
causes a segmentation fault in ilrun.  It should throw a System.Threading.SynchronizationLockException.

Russell Stuart <rstuart>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-04-26 tum StatusNone Fixed
2004-04-26 tum Open/ClosedOpen Closed
2004-04-15 rstuart Attached File#1172 Removed
2004-04-06 rstuart Attached File- Added MonitorWait.patch, #1172

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code