dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [bugs #8463] Monitor.Wait(..) on unlocked object cause


From: Russell Stuart
Subject: [Pnet-developers] [bugs #8463] Monitor.Wait(..) on unlocked object causes SEGFAULT in ilrun
Date: Fri, 16 Apr 2004 00:05:19 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021224

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #8463] Latest Modifications:

Changes by: 
                Russell Stuart <address@hidden>
'Date: 
                Fri 04/16/04 at 04:05 (Australia/Brisbane)

------------------ Additional Follow-up Comments ----------------------------
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







/**************************************************************************/
[bugs #8463] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8463>
Project: DotGNU Portable.NET
Submitted by: Russell Stuart
On: Tue 04/06/04 at 08:47

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  Monitor.Wait(..) on unlocked object causes SEGFAULT in ilrun

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.


Follow-up Comments
------------------


-------------------------------------------------------
Date: Fri 04/16/04 at 04:05         By: rstuart
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


-------------------------------------------------------
Date: Thu 04/15/04 at 22:29         By: rstuart
The patch I submitted was broken.


-------------------------------------------------------
Date: Tue 04/06/04 at 09:10         By: rstuart
Attached is a suggested fix to the problem.  Please check _carefully_.













For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8463>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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