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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=341244#c3


Juraj Skripsky <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
           Severity|Normal                                          |Major
            Summary|[Regression] Crashes in threading code after    
|[Regression] Leakage of thread handles (leading
                   |update to svn r89306                            |to crash 
eventually)




--- Comment #3 from Juraj Skripsky <[EMAIL PROTECTED]>  2007-12-06 08:06:51 MST 
---
Okay, here comes the test case to illustrate the problem with the handle
leaking which will eventually lead to the crash:

index.aspx:
===========
<html>
<body>
<%= DateTime.Now %>
</body>
</html>

print_wapi_counts.sh:
=====================
#!/bin/bash
mono=/usr/local/bin/mono
#export MONO_SHARED_DIR=/tmp;

wget -q --output-document=/dev/null http://localhost:8080/index.aspx

while true; do
  threads=$($mono --wapi=hps | grep Thread | wc -l)
  deadthreads=$($mono --wapi=hps | grep Thread | grep "state: 1" | wc -l)

  echo "Threads: $threads, exited: $deadthreads"
  sleep 10
done

Recipe:
=======
1. save the files above (and adjust line 2 of 
print_wapi_counts.sh for your mono installation)
2. start xsp2 (in the dir containing the files)
3. start "print_wapi_counts.sh" in separate shell

See the numbers rise and rise (+1 about every 10s on my system).

I'm using Mono from SVN (the very latest from today) on a P4 machine.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to