skarcha/tests — Issue #2: 3 - A few functions in win32_misc.c are not thread safe 
Author: skarcha
Created: 2011-10-17 23:10:20+00:00
State: open

What steps will reproduce the problem?
1. call win_strerror() in a multithreaded environment;
2. see that different threads may see partial string contents or even a
zeroed string.

What is the expected output? What do you see instead?

In a multithreaded environment, the expected output is to always return a
properly formatted string.

Right now this is not always true (because of concurrent use of a static
buffer).

win_strerror() should fill a buffer passed by caller.

What version of the product are you using? On what operating system?

0.6.0-b783 (pre beta2)

NOTE: this issue is NOT critical because it doesn't crash the server.

Original link: http://code.google.com/p/cherokee/issues/detail?id=3