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

[jira] Created: (AXIS2C-1164) 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: AXIS2C-1164
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1164
             Project: Axis2-C
          Issue Type: Bug
    Affects Versions: 1.2.0, 1.4.0
         Environment: Windows XP, Intel P4
            Reporter: Vasiliy Sokov
            Priority: Critical
         Attachments: savan_subscriber.c

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-1164) savan_publishing_client_publish() crashes when trying to publish message when more then 1 subscription to this event source exists at moment.

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

Damitha Kumarage resolved AXIS2C-1164.
--------------------------------------

    Resolution: Fixed

Patch applied

> savan_publishing_client_publish() crashes when trying to publish message when more then 1 subscription to this event source exists at moment.
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1164
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1164
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.4.0
>         Environment: Windows XP, Intel P4
>            Reporter: Vasiliy Sokov
>            Priority: Critical
>         Attachments: savan_subscriber.c
>
>
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1164) 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/AXIS2C-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasiliy Sokov updated AXIS2C-1164:
----------------------------------

    Attachment: savan_subscriber.c

Fixed source file.

> Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1164
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1164
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.4.0
>         Environment: Windows XP, Intel P4
>            Reporter: Vasiliy Sokov
>            Priority: Critical
>         Attachments: savan_subscriber.c
>
>
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1164) savan_publishing_client_publish() 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/AXIS2C-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasiliy Sokov updated AXIS2C-1164:
----------------------------------

    Summary: savan_publishing_client_publish() crashes when trying to publish message when more then 1 subscription to this event source exists at moment.  (was: Publishing_client crashes when trying to publish message when more then 1 subscription to this event source exists at moment.)

> savan_publishing_client_publish() crashes when trying to publish message when more then 1 subscription to this event source exists at moment.
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1164
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1164
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.2.0, 1.4.0
>         Environment: Windows XP, Intel P4
>            Reporter: Vasiliy Sokov
>            Priority: Critical
>         Attachments: savan_subscriber.c
>
>
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org