Ken Giusti created QPID-4816:
--------------------------------

             Summary: dispatch-router crashes when incomplete (but valid) url 
specified by client.
                 Key: QPID-4816
                 URL: https://issues.apache.org/jira/browse/QPID-4816
             Project: Qpid
          Issue Type: Bug
          Components: Qpid Dispatch
    Affects Versions: 0.23
            Reporter: Ken Giusti
            Assignee: Ted Ross
            Priority: Minor
             Fix For: 0.23


When a client attaches to dispatch-router, and does not provide a service name 
(ie. text beyond the <domain>/ in the url), dispatch-router will crash.

Example:

 ./msgr-recv -V -a amqp://0.0.0.0/foo

works, while:

 ./msgr-recv -V -a amqp://0.0.0.0

causes a crash with the following stack dump:

Core was generated by `./dispatch-router --help'.
Program terminated with signal 11, Segmentation fault.
#0  __strlen_sse2_pminub () at 
../sysdeps/x86_64/multiarch/strlen-sse2-pminub.S:39
39              movdqu  (%rdi), %xmm1
(gdb) bt
#0  __strlen_sse2_pminub () at 
../sysdeps/x86_64/multiarch/strlen-sse2-pminub.S:39
#1  0x00007fbe25cb9ac5 in dx_field_iterator_string () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#2  0x00007fbe25cbde49 in router_outgoing_link_handler () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#3  0x00007fbe25cb76b4 in setup_outgoing_link () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#4  0x00007fbe25cb7b81 in process_handler () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#5  0x00007fbe25cb7f68 in handler () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#6  0x00007fbe25cbefb5 in process_connector () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#7  0x00007fbe25cbf533 in thread_run () from 
/home/kgiusti/work/qpid/qpid/qpid/extras/dispatch/build/libqpid-dispatch.so.0
#8  0x0000003cf9807d14 in start_thread (arg=0x7fbe249a3700) at 
pthread_create.c:309
#9  0x0000003cf8cf168d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to