[Mono-bugs] [Bug 341244] [Regression] Leakage of thread handles ( leading to crash eventually)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 6 10:06:51 EST 2007


User juraj at hotfeet.ch added comment

Juraj Skripsky <juraj at hotfeet.ch> 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 <juraj at hotfeet.ch>  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:

<%= DateTime.Now %>

#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

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.

More information about the mono-bugs mailing list