Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1655

Client library closes stderr on axutil_env_free()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • core/clientapi
    • None

    Description

      The client API defaults to using stderr when the specified log file cannot be opened. The axutil_log_impl_free() function blindly closes the log stream without checking whether it had opened the stream or not. This results in stderr being closed in certain conditions.

      This is effecting a custom Apache module; when Apache runs daemonized, it switches its working directory to the root. This causes the Axis2 log file open to fail and use stderr instead. When the module is done with the Axis2 environment, it frees it - and at that time, Apache's stderr is closed. From then on, accept() returns fd2 and so the network ends up getting spammed with Apache log messages.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jakescott Jake Scott
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified