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

Simple axis server seg faults if I send a SOAP message with an empty body from client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • M0.3
    • xml/soap
    • None

    Description

      The soap message I sent is:

      <?xml version='1.0' encoding='UTF-8'?>
      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      </soapenv:Body>
      </soapenv:Envelope>

      For me this is a valid SOAP message, and even if it is invalid the server is not supposed to crash.
      But it crashes due to a problem in SOAP module.

      gdb trace:
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread -1208109376 (LWP 26976)]
      0x00323ef5 in axis2_soap_body_has_fault (body=0x8f5c418, env=0xbf8f86e4) at soap_body.c:246
      246 localname = AXIS2_OM_ELEMENT_GET_LOCALNAME(fault_ele, env);
      (gdb) bt
      #0 0x00323ef5 in axis2_soap_body_has_fault (body=0x8f5c418, env=0xbf8f86e4) at soap_body.c:246
      #1 0x00432684 in axis2_http_transport_utils_process_http_post_request (env=0xbf8f86e4, msg_ctx=0x8f55438,
      in_stream=0x8f54c38, out_stream=0x8f550c8, content_type=0x8f54ee0 "application/soap+xml;", content_length=165,
      soap_action_header=0x0, request_uri=0x8f54e80 "/axis2/services/math/sub") at http_transport_utils.c:264
      #2 0x00431545 in axis2_http_worker_process_request (http_worker=0x8f54c00, env=0xbf8f86e4, svr_conn=0x8f54c20,
      simple_request=0x8f54ec8) at http_worker.c:272
      #3 0x00154365 in axis2_http_svr_thread_run (svr_thread=0x8f54bc8, env=0xbf8f86e4) at http_svr_thread.c:176
      #4 0x001551ff in axis2_http_server_start (server=0x8efb078, env=0xbf8f86e4) at http_server.c:191
      #5 0x08048ca6 in main (argc=3, argv=0xbf8f8784) at http_server_main.c:112
      (gdb)

      Attachments

        Issue Links

          Activity

            People

              samisa Don Samisa Abeysinghe
              samisa Don Samisa Abeysinghe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: