qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh Murthy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-611) Router core dump with old config file
Date Mon, 06 Mar 2017 18:38:32 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15897796#comment-15897796

Ganesh Murthy commented on DISPATCH-611:

The attached config file "oops.conf" does not have a router section (entity). The router section
is mandatory even in old config files. 

The following text must be added to the description of the "router" entity in qdrouter.json
to make it clear that router is a mandatory entity without which the router will not start

"description":"Tracks peer routers and computes routes to destinations. This entity is mandatory.
The router will not start without this entity",

Codewise, the assert must be replaced with an exit so that router does not even start

Replace this asset - 

    if (!qd->router_id) {
        qd_log_source_t *router_log = qd_log_source("ROUTER");
        qd_log(router_log, QD_LOG_CRITICAL, "Router Id not specified - process exiting");

> Router core dump with old config file
> -------------------------------------
>                 Key: DISPATCH-611
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-611
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>         Environment: Linux hostname 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9 14:51:40
UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Chuck Rolke
>            Assignee: Ganesh Murthy
>         Attachments: oops.conf
> Revving up an old config file causes a core dump.
> {noformat}
> > ./qdrouterd -c oops.conf  -I /home/user/git/qpid-dispatch/python
> qdrouterd: /home/user/git/qpid-dispatch/src/dispatch.c:162: qd_dispatch_configure_router:
Assertion `qd->router_id' failed.
> Aborted (core dumped)
> {noformat}

This message was sent by Atlassian JIRA

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

View raw message