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/10 18:43:20 UTC
[jira] Created: (AXIS2C-1) service struct's get_qname seem to fail
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
[jira] Assigned: (AXIS2C-1) service struct's get_qname seem to fail
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-1?page=all ]
Samisa Abeysinghe reassigned AXIS2C-1:
--------------------------------------
Assign To: Samisa Abeysinghe
> 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
> Assignee: Samisa Abeysinghe
> Fix For: M0.3
>
> 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
[jira] Closed: (AXIS2C-1) service struct's get_qname seem to fail
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-1?page=all ]
Samisa Abeysinghe closed AXIS2C-1:
----------------------------------
Fix Version: M0.3
Resolution: Fixed
The problem was in function pointers assignments in modules/wsdl/wsdl_svc.c. This is fixed now
> 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
> Assignee: Samisa Abeysinghe
> Fix For: M0.3
>
> 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
[jira] Commented: (AXIS2C-1) service struct's get_qname seem to
fail
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-1?page=comments#action_12362410 ]
Samisa Abeysinghe commented on AXIS2C-1:
----------------------------------------
Some more debug info:
(gdb) bt
#0 0x00000011 in ?? ()
#1 0x080489ed in axis2_test_engine_send () at test_engine.c:37
#2 0x08048b79 in main () at test_engine.c:93
(gdb) fr 1
#1 0x080489ed in axis2_test_engine_send () at test_engine.c:37
37 printf("%s\n", AXIS2_QNAME_GET_LOCALPART(qname_temp, &env));
(gdb) l
32 svc = axis2_svc_create_with_qname(&env, qname);
33 qname_temp = AXIS2_SVC_GET_QNAME(svc, &env);
34
35 if (qname_temp)
36 {
37 printf("%s\n", AXIS2_QNAME_GET_LOCALPART(qname_temp, &env));
38 }
39 else
40 printf("svc qname is NULL\n");
41
(gdb) p *svc
$1 = {ops = 0x9823570, param_container = 0x9823208, flow_container = 0x98232a8, wsdl_svc = 0x98232e8}
(gdb) p *(axis2_svc_impl_t*)svc
$2 = {svc = {ops = 0x9823570, param_container = 0x9823208, flow_container = 0x98232a8, wsdl_svc = 0x98232e8},
parent = 0x0, wasaction_opeartionmap = 0x9823458, axis2_svc_name = 0x0, last_update = 0, filename = 0x0,
module_list = 0x98234d0}
(gdb) p (axis2_svc_impl_t*)svc->wsdl_svc
$3 = (struct axis2_svc_impl *) 0x98232e8
(gdb) p ((axis2_svc_impl_t*)svc->wsdl_svc)
$4 = (struct axis2_svc_impl *) 0x98232e8
(gdb) p (axis2_wsdl_svc_impl_t*)((axis2_svc_impl_t*)svc->wsdl_svc)
$5 = (struct axis2_wsdl_svc_impl *) 0x98232e8
(gdb) p *(axis2_wsdl_svc_impl_t*)((axis2_svc_impl_t*)svc->wsdl_svc)
$6 = {wsdl_svc = {ops = 0x9823428, wsdl_component = 0x9823300}, qname = 0x0, svc_interface = 0x9823638,
endpoints = 0x98233b0}
Aparently qname in wsdl_svc is NULL, but it returns non-NULL result
> 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
[jira] Commented: (AXIS2C-1) service struct's get_qname seem to
fail
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ 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