You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/05/07 20:22:00 UTC

[jira] [Comment Edited] (DISPATCH-2109) Shutdown crash: member access within null pointer of type 'struct qdr_node_t'

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

Jiri Daněk edited comment on DISPATCH-2109 at 5/7/21, 8:21 PM:
---------------------------------------------------------------

The problem seems to be that if outstanding actions are handled later during the shutdown process, some of the actions may want to touch things that were already freed. The only thing I can think of is to handle the actions twice (because finalizing modules can generate additional actions that then have to be processed). The fail looks to be rare, and it is only on main, not on release branch. Maybe it can be addressed after 1.16 is out and there is a bit of time for this?


was (Author: jdanek):
The problem seems to be that if outstanding actions are handled later during the shutdown process, some of the actions may want to touch things that were already freed. The only thing I can think of is to handle the actions twice (because finalizing modules can generate additional actions that then have to be processed). The fail looks to be rare, maybe it can be addressed after 1.16 is out and there is a bit of time for this?

> Shutdown crash: member access within null pointer of type 'struct qdr_node_t'
> -----------------------------------------------------------------------------
>
>                 Key: DISPATCH-2109
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2109
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 1.17.0
>            Reporter: Jiri Daněk
>            Assignee: Jiri Daněk
>            Priority: Major
>
> {code}
> 28: /home/travis/build/apache/qpid-dispatch/src/router_core/route_tables.c:530:17: runtime error: member access within null pointer of type 'struct qdr_node_t'
> 28:     #0 0x3ff9628d5bd in qdr_set_cost_CT /home/travis/build/apache/qpid-dispatch/src/router_core/route_tables.c:530
> 28:     #1 0x3ff9627e7cb in qdr_core_free /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:251
> 28:     #2 0x3ff962e13f9 in qd_router_free /home/travis/build/apache/qpid-dispatch/src/router_node.c:2160
> 28:     #3 0x3ff9617979d in qd_dispatch_free /home/travis/build/apache/qpid-dispatch/src/dispatch.c:375
> 28:     #4 0x3ff9617979d in qd_dispatch_free /home/travis/build/apache/qpid-dispatch/src/dispatch.c:363
> 28:     #5 0x2aa23604fa9 in main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:119
> 28:     #6 0x2aa23604a23 in main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
> 28:     #7 0x3ff94faa5f9 in __libc_start_main (/lib/s390x-linux-gnu/libc.so.6+0x2a5f9)
> 28:     #8 0x2aa23604d23  (/home/travis/build/apache/qpid-dispatch/build/router/qdrouterd+0x4d23)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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