Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.7
-
None
-
None
-
Operating System: Solaris
Platform: Sun
-
28818
Description
XalanC 1.8 and XercesC 2.5
Solaris 5.8 and Forte CC 6 update 1
XalanEXSLTFunctionDateTime::execute() uses localtime() and gmtime(). These
functions are not threadsafe. It is causing my application to core when
running multiple threads. Replacing those two functions with localtime_r()
and gmtime_r() fixes the problem. Running under purify, I get Free memory
read, Freeing unallocated memory, and Free memory write errors in the
xalanc_1_8::XalanEXSLTFunctionDateTime::execute() method.