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

Savan/C seg faults when run with Apache2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • savan
    • None

    Description

      When running with Apache2 following seg fault occurs with following

      #0 0xb7f52410 in __kernel_vsyscall ()
      #1 0xb7d18085 in raise () from /lib/tls/i686/cmov/libc.so.6
      #2 0xb7d19a01 in abort () from /lib/tls/i686/cmov/libc.so.6
      #3 0xb7d50b7c in ?? () from /lib/tls/i686/cmov/libc.so.6
      #4 0xb7d5c61b in free () from /lib/tls/i686/cmov/libc.so.6
      #5 0xb795d5d2 in savan_util_apply_filter (subscriber=0x82b2e20, env=0xe, payload=0x82a21f0) at savan_util.c:256
      #6 0xb795aeb1 in savan_subscriber_publish (subscriber=0x82b2e20, env=0x82a1908, payload=0x82a21f0)
      at savan_subscriber.c:425
      #7 0xb795a6ce in savan_publishing_client_publish (client=0x82a2188, env=0x82a1908, payload=0x82a21f0)
      at savan_publishing_client.c:178
      #8 0xb7b0f03e in publisher_worker_func (thrd=0x82a18e0, data=0x82a18d8) at publisher_skeleton.c:258
      #9 0xb7c431b6 in dummy_worker (opaque=0x82a18e0) at thread_unix.c:93
      #10 0xb7e454fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
      #11 0xb7dc3e5e in clone () from /lib/tls/i686/cmov/libc.so.6

      Valgrind shows

      Thread 2:
      ==13943== Invalid free() / delete / delete[]
      ==13943== at 0x402265C: free (vg_replace_malloc.c:323)
      ==13943== by 0x49CC5D1: savan_util_apply_filter (savan_util.c:256)
      ==13943== by 0x49C9EB0: savan_subscriber_publish (savan_subscriber.c:425)
      ==13943== by 0x49C96CD: savan_publishing_client_publish (savan_publishing_client.c:178)
      ==13943== by 0x486703D: publisher_worker_func (publisher_skeleton.c:258)
      ==13943== by 0x47481B5: dummy_worker (thread_unix.c:93)
      ==13943== by 0x41244FA: start_thread (in /lib/tls/i686/cmov/libpthread-2.7.so)
      ==13943== by 0x4211E5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
      ==13943== Address 0x45d6668 is 17,464 bytes inside a block of size 20,480 alloc'd
      ==13943== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
      ==13943== by 0x40D05FD: allocator_alloc (apr_pools.c:323)
      ==13943== by 0x40D0A26: apr_palloc (apr_pools.c:653)
      ==13943== by 0x4692A08: axis2_module_malloc (mod_axis2.c:389)
      ==13943== by 0x4029204: guththila_buffer_init (guththila_buffer.c:37)
      ==13943== by 0x40317AD: guththila_create_xml_stream_writer_for_memory (guththila_xml_writer.c:185)
      ==13943== by 0x476BFB9: axiom_xml_writer_create_for_memory (guththila_xml_writer_wrapper.c:311)
      ==13943== by 0x4711C45: axiom_node_to_string (om_node.c:1200)
      ==13943== by 0x49CC4BF: savan_util_apply_filter (savan_util.c:210)
      ==13943== by 0x49C9EB0: savan_subscriber_publish (savan_subscriber.c:425)
      ==13943== by 0x49C96CD: savan_publishing_client_publish (savan_publishing_client.c:178)
      ==13943== by 0x486703D: publisher_worker_func (publisher_skeleton.c:258)

      Attachments

        Activity

          People

            Unassigned Unassigned
            damitha Damitha N.M. Kumarage
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: