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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/01/11 02:58:20 UTC

[jira] Commented: (AXIS2C-1) service struct's get_qname seem to fail

    [ http://issues.apache.org/jira/browse/AXIS2C-1?page=comments#action_12362404 ] 

Samisa Abeysinghe commented on AXIS2C-1:
----------------------------------------

I tried to seperate the logic and test as folows:

qname = axis2_qname_create(&env, "name1", NULL, NULL);
    svc = axis2_svc_create_with_qname(&env, qname);
    qname_temp = AXIS2_SVC_GET_QNAME(svc, &env);

    if (qname_temp)
    {
        printf("%s\n", AXIS2_QNAME_GET_LOCALPART(qname_temp, &env));
    }
    else
        printf("svc qname is NULL\n");


When I try to get the local part, it crashes.

> service struct's get_qname seem to fail
> ---------------------------------------
>
>          Key: AXIS2C-1
>          URL: http://issues.apache.org/jira/browse/AXIS2C-1
>      Project: Axis2-C
>         Type: Bug
>   Components: core/description
>     Versions: M0.3
>     Reporter: Samisa Abeysinghe

>
> When I run test/core/engine/test_engine, it segfaults.
> Diging into the problem with gdb reveals the following:
> (gdb) bt
> #0  0x00000011 in ?? ()
> #1  0x00bc2ba6 in axis2_svc_ctx_create (env=0xbfb1d078, svc=0x852e1d8, svc_grp_ctx=0x852df90) at svc_ctx.c:94
> #2  0x080489c1 in axis2_test_engine_send () at test_engine.c:32
> #3  0x08048b09 in main () at test_engine.c:83
> And the code causing the problem is:
> (gdb) fr 1
> #1  0x00bc2ba6 in axis2_svc_ctx_create (env=0xbfb1d078, svc=0x852e1d8, svc_grp_ctx=0x852df90) at svc_ctx.c:94
> 94                  svc_ctx_impl->svc_id = AXIS2_QNAME_GET_LOCALPART(svc_ctx_impl->svc_qname, env);
> (gdb) l
> 89          {
> 90              svc_ctx_impl->svc = svc;
> 91              svc_ctx_impl->svc_qname = AXIS2_SVC_GET_QNAME(svc, env);
> 92              if (svc_ctx_impl->svc_qname)
> 93              {
> 94                  svc_ctx_impl->svc_id = AXIS2_QNAME_GET_LOCALPART(svc_ctx_impl->svc_qname, env);
> 95              }
> 96          }
> 97
> 98          if (svc_grp_ctx)
> Basically there seem to be a problem in the way qname is handled in service.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira