Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-412

XalanEXSLTDateTime not threadsafe, crashing application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.7
    • None
    • XalanC
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            teresa.selling@mci.com Teresa Selling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: