You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Vasiliy Sokov (JIRA)" <ji...@apache.org> on 2008/05/26 10:13:55 UTC

[jira] Created: (SAVAN-7) Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.

Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.
-----------------------------------------------------------------------------------------------------------------------------

                 Key: SAVAN-7
                 URL: https://issues.apache.org/jira/browse/SAVAN-7
             Project: Savan
          Issue Type: Bug
         Environment: Windows XP, Intel P4
            Reporter: Vasiliy Sokov


Hello.

I've already fix this problem.
The cause is in module savan_subscriber.c, function savan_subscriber_publish, line 420:

******************************************************************
    /* Set service client options */
    axis2_svc_client_set_options(svc_client, env, options);
    axis2_svc_client_send_robust(svc_client, env, payload);

axiom_node_detach(payload, env); //Vsokov 21.0.2008 insert this to prevent payload corruption in subsequent "publish" calls with some payload.

    if(svc_client)
        axis2_svc_client_free(svc_client, env);

******************************************************************


The call of axis2_svc_client_send_robust() attaches payload to svc_client. Thus, axis2_svc_client_free() removes payload at the same time with removing of svc_client, and following call of savan_subscriber_publish() by savan_publishing_client_publish() with same payload causes access to free'd memory.

To prevent it, i've insert axiom_node_detach() before call of axis2_svc_client_free(). Now, i can subscribe several listeners to one event source at the time.

Best regards,
Vasiliy Sokov. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SAVAN-7) Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.

Posted by "Vasiliy Sokov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SAVAN-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasiliy Sokov closed SAVAN-7.
-----------------------------

    Resolution: Duplicate

> Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SAVAN-7
>                 URL: https://issues.apache.org/jira/browse/SAVAN-7
>             Project: Savan
>          Issue Type: Bug
>         Environment: Windows XP, Intel P4
>            Reporter: Vasiliy Sokov
>
> Hello.
> I've already fix this problem.
> The cause is in module savan_subscriber.c, function savan_subscriber_publish, line 420:
> ******************************************************************
>     /* Set service client options */
>     axis2_svc_client_set_options(svc_client, env, options);
>     axis2_svc_client_send_robust(svc_client, env, payload);
> axiom_node_detach(payload, env); //Vsokov 21.0.2008 insert this to prevent payload corruption in subsequent "publish" calls with some payload.
>     if(svc_client)
>         axis2_svc_client_free(svc_client, env);
> ******************************************************************
> The call of axis2_svc_client_send_robust() attaches payload to svc_client. Thus, axis2_svc_client_free() removes payload at the same time with removing of svc_client, and following call of savan_subscriber_publish() by savan_publishing_client_publish() with same payload causes access to free'd memory.
> To prevent it, i've insert axiom_node_detach() before call of axis2_svc_client_free(). Now, i can subscribe several listeners to one event source at the time.
> Best regards,
> Vasiliy Sokov. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.