NETMF / llilum

Development Platform for MSIL and UWP apps targeting Micro Controllers. Part of the .NET Micro Framework family.
Other
159 stars 52 forks source link

Conservative GC corruption issue on extension handlers #154

Closed lt72 closed 8 years ago

lt72 commented 8 years ago

finding this consistenly in TCP/IP testing, does not seem related to TCP/IP stack

(gdb) bt
#0  Break () at mbed_debug.cpp:225
#1  Breakpoint (n=<optimized out>) at mbed_debug.cpp:242
#2  Microsoft.Zelig.Runtime.BugCheck::Raise#5641 (code=0x99200300) at BugCheck.cs:68
#3  Microsoft.Zelig.Runtime.MarkAndSweepCollector::ProcessMarkStack#5185 (this=<optimized out>) at MarkAndSweepCollector.cs:833
#4  Microsoft.Zelig.Runtime.MarkAndSweepCollector::VisitHeapObject#5176 (address=<optimized out>, this=<optimized out>) at MarkAndSweepCollector.cs:945
#5  Microsoft.Zelig.Runtime.MarkAndSweepCollector::VisitInternalPointer#5175 (address=<optimized out>, this=) at MarkAndSweepCollector.cs:764
#6  Microsoft.Zelig.Runtime.ConservativeMarkAndSweepCollector::WalkStackFrames#5128 (this=) at ConservativeMarkAndSweepCollector.cs:76
#7  Microsoft.Zelig.Runtime.MarkAndSweepCollector::StartCollection#5168 (this=) at MarkAndSweepCollector.cs:461
#8  Microsoft.Zelig.Runtime.MarkAndSweepCollector::Collect#5161 (this=) at MarkAndSweepCollector.cs:309
#9  Microsoft.Zelig.Runtime.DefaultTypeSystemManager::AllocateInner#5976 (vTable=<optimized out>, size=<optimized out>) at DefaultTypeSystemManager.cs:238
#10 Microsoft.Zelig.Runtime.DefaultTypeSystemManager::AllocateObject#5966 (vTable=, this=<optimized out>) at DefaultTypeSystemManager.cs:24
#11 System.Threading.EventWaitHandle::.ctor#4631 (initialState=<optimized out>, mode=<optimized out>, this=) at EventWaitHandleImpl.cs:149
#12 Microsoft.Zelig.LlilumOSAbstraction.CmsisRtos.CmsisRtosSemaphore::.ctor#21103 (count=<optimized out>, this=) at CmsisRtosSemaphore.cs:30
#13 Microsoft.Zelig.LlilumOSAbstraction.CmsisRtos.CmsisRtosSemaphore::Create#21102 (count=0x6) at CmsisRtosSemaphore.cs:24
#14 Microsoft.Zelig.LlilumOSAbstraction.CmsisRtos.CmsisRtos::osSemaphoreCreate#21060 (count=0x99200300) at CmsisRtos.cs:458
#15 sys_sem_new (sem=sem@entry=, count=count@entry=0x0) at sys_arch.c:243
#16 netconn_alloc (t=<optimized out>, callback=callback@entry=<event_callback>) at api_msg.c:604
#17 netconn_new_with_proto_and_callback (t=t@entry=NETCONN_TCP, proto=proto@entry=0x0, callback=callback@entry=<event_callback>) at api_lib.c:73
#18 lwip_socket (domain=<optimized out>, type=<optimized out>, protocol=<optimized out>) at sockets.c:956
#19 LLOS_lwip_socket (family=<optimized out>, type=<optimized out>, protocol=<optimized out>) at mbed_socket.cpp:37
#20 Microsoft.Llilum.Net.SocketNative::socket#5007 (type=0x1, protocol=0x0, family=0x0) at SocketNativeImpl.cs:11
#21 System.Net.Sockets.Socket::.ctor#15390 (addressFamily=0x0, socketType=0x1, protocolType=0x0, this=<optimized out>) at Socket.cs:27
#22 Microsoft.Zelig.Test.mbed.SimpleNet.Program::Main#146 () at Program.cs:52
#23 Microsoft.Zelig.Runtime.ThreadManager::MainThread#3770 () at ThreadManager.cs:557
#24 System.Threading.ThreadStart::Invoke#9061 (this=<optimized out>) at ProcessorARMv7M.cs:321
#25 System.Threading.Thread::Entrypoint#4705 (this=) at ThreadImpl.cs:220
#26 ?? ()
(gdb) q

Extension are providided in the system for WeakRerences and SyncBlocks only at this time

lt72 commented 8 years ago

no repro