[Mono-bugs] [Bug 646424] New: Multiple thread pool threads cause VM crash

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 14 00:06:53 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=646424

https://bugzilla.novell.com/show_bug.cgi?id=646424#c0


           Summary: Multiple thread pool threads cause VM crash
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: steveniemitz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


If you compile and run this:

http://pastebin.com/spH545DP

on preview 5 the app will crash shortly after the button text updates.

Here's the logcat output:

10-14 03:57:16.921: INFO/ActivityManager(59): Displayed activity
RunOnUI.RunOnUI/runOnUI.__Proxy__Activity1: 1622 ms (total 1622 ms)
10-14 03:57:16.941: DEBUG/dalvikvm(2253): Trying to load lib
/data/data/RunOnUI.RunOnUI/lib/libmonodroid.so 0x44e7ead8
10-14 03:57:16.941: DEBUG/dalvikvm(2253): Added shared lib
/data/data/RunOnUI.RunOnUI/lib/libmonodroid.so 0x44e7ead8
10-14 03:57:19.401: INFO/ActivityManager(59): Displayed activity
RunOnUI.RunOnUI/runOnUI.Activity1: 2657 ms (total 2657 ms)
10-14 03:57:24.841: DEBUG/dalvikvm(2253): GREF has increased to 201
10-14 03:57:25.271: DEBUG/dalvikvm(402): GC_EXPLICIT freed 129 objects / 8384
bytes in 840ms
10-14 03:57:29.481: DEBUG/dalvikvm(123): GC_EXPLICIT freed 273 objects / 13016
bytes in 54ms
10-14 03:57:32.906: DEBUG/dalvikvm(2253): threadid=8: thread exiting, not yet
detached (count=0)
10-14 03:57:32.906: DEBUG/dalvikvm(2253): threadid=8: thread exiting, not yet
detached (count=1)
10-14 03:57:32.906: ERROR/dalvikvm(2253): threadid=8: native thread exited
without detaching
10-14 03:57:32.906: ERROR/dalvikvm(2253): VM aborting
10-14 03:57:32.906: WARN/mono(2253): Thread 0x0 may have been prematurely
finalized
10-14 03:57:32.930: DEBUG/Zygote(33): Process 2253 terminated by signal (11)
10-14 03:57:32.930: INFO/ActivityManager(59): Process RunOnUI.RunOnUI (pid
2253) has died.
10-14 03:57:32.940: INFO/WindowManager(59): WIN DEATH: Window{4502e418
RunOnUI.RunOnUI/runOnUI.Activity1 paused=false}
10-14 03:57:33.000: INFO/UsageStats(59): Unexpected resume of
com.android.launcher while already resumed in RunOnUI.RunOnUI
10-14 03:57:33.220: WARN/InputManagerService(59): Got RemoteException sending
setActive(false) notification to pid 2253 uid 10034

If you watch DDMS while this runs you can see it create 2 worker threads.  If
you set it up so it only ever has 1 threadpool thread outstanding at a time
(ex. remove the loop) it won't crash (from what I've seen so far).

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list