qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-583) Random segmentation fault
Date Mon, 05 Dec 2016 16:36:58 GMT

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

ASF GitHub Bot commented on DISPATCH-583:
-----------------------------------------

Github user ted-ross commented on a diff in the pull request:

    https://github.com/apache/qpid-dispatch/pull/119#discussion_r90902246
  
    --- Diff: include/qpid/dispatch/server.h ---
    @@ -477,6 +477,15 @@ typedef int (*qd_pn_event_handler_cb_t)(void *handler_context, void*
conn_contex
     
     
     /**
    + * Post event process handler
    + * Invoke only after all proton events have been popped from the collector.
    + *
    + * @param conn The connection for which all proton events have been popped.
    + */
    +typedef void (*qd_pn_event_complete_cb_t)(qd_connection_t *conn);
    --- End diff --
    
    All of the callback's need to include the context argument (even it you don't use it in
your handler).


> Random segmentation fault
> -------------------------
>
>                 Key: DISPATCH-583
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-583
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Paolo Patierno
>            Assignee: Ganesh Murthy
>             Fix For: 0.8.0
>
>         Attachments: qdrouterd.conf
>
>
> Hello,
> working with the following project :
> https://github.com/EnMasseProject/mqtt-frontend
> using the router, I have random "segmentation fault" errors when the SubscribeTest is
executed. It happens running the test 3-4 times ... or 20 times ... totally random.
> You can reproduce it, cloning the above repo and running :
> mvn -Dtest=SubscribeTest test
> I used the route built from the repo source code (about 2 weeks ago) but applying the
patch for message annotations on that.
> I got the backtrace of one of the crash :
> #0  0x0000000f00747369 in ?? ()
> #1  0x00007f0eceddcf69 in pn_class_equals (clazz=<optimized out>, a=<optimized
out>, b=b@entry=0x7f0eb800bd90) at /qpid-proton-0.15.0/proton-c/src/object/object.c:169
> #2  0x00007f0eceddd466 in pn_list_index (list=list@entry=0x7f0eb802c0c0, value=value@entry=0x7f0eb800bd90)
at /qpid-proton-0.15.0/proton-c/src/object/list.c:88
> #3  0x00007f0eceddd559 in pn_list_remove (list=0x7f0eb802c0c0, value=value@entry=0x7f0eb800bd90)
at /qpid-proton-0.15.0/proton-c/src/object/list.c:99
> #4  0x00007f0ecede82ea in pn_link_finalize (object=0x7f0eb800bd90) at /qpid-proton-0.15.0/proton-c/src/engine/engine.c:1129
> #5  0x00007f0eceddce19 in pn_class_decref (clazz=0x7f0ecf013480 <clazz>, object=0x7f0eb800bd90)
at /qpid-proton-0.15.0/proton-c/src/object/object.c:95
> #6  0x00007f0ecedeadb0 in pn_event_finalize (event=0x7f0eb802a580) at /qpid-proton-0.15.0/proton-c/src/events/event.c:212
> #7  pn_event_finalize_cast (object=0x7f0eb802a580) at /qpid-proton-0.15.0/proton-c/src/events/event.c:257
> #8  0x00007f0eceddce19 in pn_class_decref (clazz=0x7f0ecf013600 <clazz>, clazz@entry=0x7f0ecf012f00
<PN_OBJECT>, object=0x7f0eb802a580) at /qpid-proton-0.15.0/proton-c/src/object/object.c:95
> #9  0x00007f0eceddd02f in pn_decref (object=<optimized out>) at /qpid-proton-0.15.0/proton-c/src/object/object.c:253
> #10 0x00007f0ecedeb0a2 in pn_collector_pop (collector=collector@entry=0x7f0eb8036450)
at /qpid-proton-0.15.0/proton-c/src/events/event.c:189
> #11 0x00007f0ecf055d43 in process_connector (cxtr=0x7f0eb8002f90, qd_server=0x2517e70)
at /qpid-dispatch/src/server.c:851
> #12 thread_run (arg=<optimized out>) at /qpid-dispatch/src/server.c:1075
> #13 0x00007f0ecebb45ba in start_thread () from /lib64/libpthread.so.0
> #14 0x00007f0ece1037cd in clone () from /lib64/libc.so.6



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message