[
https://issues.apache.org/jira/browse/DISPATCH-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17476179#comment-17476179
]
Ken Giusti commented on DISPATCH-2307:
--------------------------------------
Here's a SEGV hit while trying to bring up a router mesh of 4 routers with
names 67 characters long:
AddressSanitizer:DEADLYSIGNAL
=================================================================
==300343==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000019 (pc
0x000000515264 bp 0x7f8ccc6ac9f0 sp 0x7f8ccc6ac9b0 T3)
==300343==The signal is caused by a READ memory access.
==300343==Hint: address points to the zero page.
#0 0x515264 in qd_iterator_octet
/home/kgiusti/work/dispatch/qpid-dispatch/src/iterator.c:742
#1 0x5488cd in get_type_info
/home/kgiusti/work/dispatch/qpid-dispatch/src/parse.c:67
#2 0x549e3f in qd_parse_internal
/home/kgiusti/work/dispatch/qpid-dispatch/src/parse.c:159
#3 0x54a238 in qd_parse_internal
/home/kgiusti/work/dispatch/qpid-dispatch/src/parse.c:169
#4 0x54aac9 in qd_parse
/home/kgiusti/work/dispatch/qpid-dispatch/src/parse.c:186
#5 0x57ada8 in py_iter_parse
/home/kgiusti/work/dispatch/qpid-dispatch/src/python_embedded.c:588
#6 0x57aefe in iter_to_py_attr
/home/kgiusti/work/dispatch/qpid-dispatch/src/python_embedded.c:620
#7 0x57b1b9 in qd_io_rx_handler
/home/kgiusti/work/dispatch/qpid-dispatch/src/python_embedded.c:661
#8 0x614bcd in qdr_forward_on_message
/home/kgiusti/work/dispatch/qpid-dispatch/src/router_core/forwarder.c:335
#9 0x64f13b in qdr_general_handler
/home/kgiusti/work/dispatch/qpid-dispatch/src/router_core/router_core.c:952
#10 0x6f87d3 in qd_timer_visit
/home/kgiusti/work/dispatch/qpid-dispatch/src/timer.c:320
#11 0x6e77ad in handle
/home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1018
#12 0x6e9366 in thread_run
/home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1133
#13 0x577ca0 in _thread_init
/home/kgiusti/work/dispatch/qpid-dispatch/src/posix/threading.c:172
#14 0x7f8ce26b8298 in start_thread
/usr/src/debug/glibc-2.33-20.fc34.x86_64/nptl/pthread_create.c:481
#15 0x7f8ce186a352 in clone (/lib64/libc.so.6+0x100352)
> Router Ids > 64 characters can crash the router
> -----------------------------------------------
>
> Key: DISPATCH-2307
> URL: https://issues.apache.org/jira/browse/DISPATCH-2307
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Router Node
> Affects Versions: 1.18.0
> Reporter: Ken Giusti
> Priority: Blocker
>
> Under some circumstances configuring a router id with a length > 64
> characters can cause heap corruption.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]