[
https://issues.apache.org/jira/browse/DISPATCH-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Ross reopened DISPATCH-763:
-------------------------------
Reopening to fix workflow...
> Router crashes when config file defines listener { addr: } instead of { host:
> }
> -------------------------------------------------------------------------------
>
> Key: DISPATCH-763
> URL: https://issues.apache.org/jira/browse/DISPATCH-763
> Project: Qpid Dispatch
> Issue Type: Bug
> Affects Versions: 1.0.0
> Environment: Debian Stretch, qpid-proton from git, qpid-dispatch from
> git
> Reporter: Jiri Daněk
> Assignee: Ganesh Murthy
> Priority: Critical
> Fix For: 1.0.0
>
> Attachments: DISPATCH-763.core.zip
>
>
> If I run {{qdrouterd -c console.conf}}, where console.conf is the config
> pasted below, the router crashes. The router works ok with the default
> config. This error appeared only recently (during last week, no sooner). The
> config used to work fine before.
> The attached stack trace and core file come from debug build. With production
> build, it obviously does not print the assertion error and it crashes
> somewhat later.
> {noformat}
> # qdrouterd -c /mnt/run/router/console.conf
> 2017-05-04 13:57:19.313172 +0000 SERVER (warning) HTTP support is not
> available
> 2017-05-04 13:57:19.313239 +0000 SERVER (info) Container Name: Router.A
> 2017-05-04 13:57:19.313333 +0000 ROUTER (info) Router started in Standalone
> mode
> 2017-05-04 13:57:19.313456 +0000 ROUTER_CORE (info) Allow Unsettled
> Multicast: no
> 2017-05-04 13:57:19.313734 +0000 ROUTER_CORE (info) Router Core thread
> running. 0/Router.A
> 2017-05-04 13:57:19.313759 +0000 ROUTER_CORE (info) In-process subscription
> M/$management
> 2017-05-04 13:57:19.321037 +0000 AGENT (info) Activating management agent on
> $_management_internal
> 2017-05-04 13:57:19.321127 +0000 ROUTER_CORE (info) In-process subscription
> L/$management
> 2017-05-04 13:57:19.321164 +0000 ROUTER_CORE (info) In-process subscription
> L/$_management_internal
> 2017-05-04 13:57:19.322578 +0000 CONN_MGR (info) Configured Listener:
> 0.0.0.0:amqp proto=any, role=normal
> qdrouterd: /main/qpid-dispatch/src/connection_manager.c:187: set_config_host:
> Assertion `config->host' failed.
> Aborted (core dumped)
> {noformat}
> {noformat}
> router {
> mode: standalone
> id: Router.A
> }
> listener {
> host: 0.0.0.0
> port: amqp
> authenticatePeer: no
> }
> address {
> prefix: closest
> distribution: closest
> }
> address {
> prefix: multicast
> distribution: multicast
> }
> address {
> prefix: unicast
> distribution: closest
> }
> address {
> prefix: exclusive
> distribution: closest
> }
> address {
> prefix: broadcast
> distribution: multicast
> }
> listener {
> name: ProxyListener
> role: normal
> addr: 0.0.0.0
> port: 20009
> sasl-mechanisms: ANONYMOUS
> }
> {noformat}
> {noformat}
> # gdb -c core `which qdrouterd`
> GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/sbin/qdrouterd...(no debugging symbols
> found)...done.
> [New LWP 12]
> [New LWP 13]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `qdrouterd -c /mnt/run/router/console.conf'.
> ---Type <return> to continue, or q <return> to quit---
> Program terminated with signal SIGABRT, Aborted.
> #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
> 51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
> [Current thread is 1 (Thread 0x7f6f94f6a080 (LWP 12))]
> (gdb) bt
> #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
> #1 0x00007f6f9376d3fa in __GI_abort () at abort.c:89
> #2 0x00007f6f93764e37 in __assert_fail_base (fmt=<optimized out>,
> assertion=assertion@entry=0x7f6f94b3dd60 "config->host",
> file=file@entry=0x7f6f94b3dd18
> "/main/qpid-dispatch/src/connection_manager.c", line=line@entry=187,
> function=function@entry=0x7f6f94b3e480 <__PRETTY_FUNCTION__.7199>
> "set_config_host") at assert.c:92
> #3 0x00007f6f93764ee2 in __GI___assert_fail (assertion=0x7f6f94b3dd60
> "config->host", file=0x7f6f94b3dd18
> "/main/qpid-dispatch/src/connection_manager.c", line=187,
> function=0x7f6f94b3e480 <__PRETTY_FUNCTION__.7199> "set_config_host") at
> assert.c:101
> #4 0x00007f6f94b04005 in set_config_host (config=0x55b1e8f0ba70,
> entity=0x7f6f90b9a550) at /main/qpid-dispatch/src/connection_manager.c:187
> #5 0x00007f6f94b04818 in load_server_config (qd=0x55b1e8be3010,
> config=0x55b1e8f0ba70, entity=0x7f6f90b9a550) at
> /main/qpid-dispatch/src/connection_manager.c:312
> #6 0x00007f6f94b05509 in qd_dispatch_configure_listener (qd=0x55b1e8be3010,
> entity=0x7f6f90b9a550) at /main/qpid-dispatch/src/connection_manager.c:505
> #7 0x00007f6f91cb6038 in ffi_call_unix64 () from
> /lib/x86_64-linux-gnu/libffi.so.6
> #8 0x00007f6f91cb5a9a in ffi_call () from /lib/x86_64-linux-gnu/libffi.so.6
> #9 0x00007f6f91eca3b4 in _ctypes_callproc () from
> /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
> #10 0x00007f6f91ec9be5 in ?? () from
> /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
> #11 0x00007f6f93bad543 in PyObject_Call () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #12 0x00007f6f93b56e10 in PyEval_EvalFrameEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> ---Type <return> to continue, or q <return> to quit---
> #13 0x00007f6f93b58390 in PyEval_EvalFrameEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #14 0x00007f6f93b58390 in PyEval_EvalFrameEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #15 0x00007f6f93b58390 in PyEval_EvalFrameEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #16 0x00007f6f93cc115c in PyEval_EvalCodeEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #17 0x00007f6f93b5825d in PyEval_EvalFrameEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #18 0x00007f6f93cc115c in PyEval_EvalCodeEx () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #19 0x00007f6f93c155b0 in ?? () from /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #20 0x00007f6f93bad543 in PyObject_Call () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #21 0x00007f6f93bae995 in PyObject_CallFunction () from
> /lib/x86_64-linux-gnu/libpython2.7.so.1.0
> #22 0x00007f6f94b08939 in qd_dispatch_load_config (qd=0x55b1e8be3010,
> config_path=0x7fff3e1a8ef1 "/mnt/run/router/console.conf") at
> /main/qpid-dispatch/src/dispatch.c:102
> #23 0x000055b1e6a3884d in ?? ()
> #24 0x000055b1e6a3925b in main ()
> (gdb)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]