Gordon Sim created DISPATCH-501:
-----------------------------------

             Summary: router segfaults if you sent a management query with an 
empty body
                 Key: DISPATCH-501
                 URL: https://issues.apache.org/jira/browse/DISPATCH-501
             Project: Qpid Dispatch
          Issue Type: Bug
            Reporter: Gordon Sim


E.g. .qpid-send -a '$management' -P operation=QUERY -P 
entityType=org.apache.qpid.dispatch.router.config.linkRoute

results in:

{noformat}
(gdb) bt
#0  qd_field_iterator_end (iter=iter@entry=0x0) at 
/home/gordon/projects/dispatch/src/iterator.c:482
#1  0x00007ffff7baa7e8 in get_type_info (clen=<synthetic pointer>, 
count=<synthetic pointer>, length=<synthetic pointer>, tag=0x7fffdc006e38 "", 
iter=0x0) at /home/gordon/projects/dispatch/src/parse.c:42
#2  qd_parse_internal (iter=iter@entry=0x0, p=p@entry=0x0) at 
/home/gordon/projects/dispatch/src/parse.c:119
#3  0x00007ffff7baab07 in qd_parse (iter=iter@entry=0x0) at 
/home/gordon/projects/dispatch/src/parse.c:140
#4  0x00007ffff7bbc321 in qd_core_agent_query_handler (offset=<synthetic 
pointer>, count=<synthetic pointer>, msg=0x7fffe4036940, 
operation_type=QD_ROUTER_OPERATION_QUERY, 
    entity_type=QD_ROUTER_CONFIG_LINK_ROUTE, core=0x92b0b0) at 
/home/gordon/projects/dispatch/src/router_core/management_agent.c:241
#5  qdr_management_agent_on_message (context=0x92b0b0, msg=0x7fffe4036940, 
unused_link_id=<optimized out>, unused_cost=<optimized out>) at 
/home/gordon/projects/dispatch/src/router_core/management_agent.c:473
#6  0x00007ffff7bb6f85 in qdr_forward_on_message (core=<optimized out>, 
work=0x7fffe4035100) at 
/home/gordon/projects/dispatch/src/router_core/forwarder.c:182
#7  0x00007ffff7bb9564 in qdr_general_handler (context=0x92b0b0) at 
/home/gordon/projects/dispatch/src/router_core/router_core.c:318
#8  0x00007ffff7bc253a in thread_run (arg=<optimized out>) at 
/home/gordon/projects/dispatch/src/server.c:904
#9  0x00007ffff772061a in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffff6c7f59d in clone () from /lib64/libc.so.6
{noformat}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to