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

XalanEXSLTDateTime not threadsafe, crashing application

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      Operating System: Solaris
      Platform: Sun
    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: