You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (JIRA)" <ji...@apache.org> on 2016/12/01 14:03:59 UTC

[jira] [Commented] (DISPATCH-583) Random segmentation fault

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

Ganesh Murthy commented on DISPATCH-583:
----------------------------------------

I see this after using PN_TRACE_FRM=1

{noformat}
[0x7f311800cc20]:  <- SASL
[0x7f311800cc20]:  -> SASL
[0x7f311800cc20]:0 -> @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :"DIGEST-MD5", :PLAIN]]
[0x7f3114042420]:  <- SASL
[0x7f3114042420]:  -> SASL
[0x7f3114042420]:0 -> @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :"DIGEST-MD5", :PLAIN]]
[0x7f3114042420]:0 <- @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b""]
[0x7f3114042420]:0 -> @sasl-outcome(68) [code=0]
[0x7f311800bda0]:  <- SASL
[0x7f311800bda0]:  -> SASL
[0x7f311800bda0]:0 -> @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :"DIGEST-MD5", :PLAIN]]
[0x7f311800bda0]:0 <- @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b""]
[0x7f311800bda0]:0 -> @sasl-outcome(68) [code=0]
[0x7f311800cc20]:0 <- @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b""]
[0x7f311800cc20]:0 -> @sasl-outcome(68) [code=0]
[0x7f311800bda0]:  <- AMQP
[0x7f311800bda0]:0 <- @open(16) [container-id="will-service", hostname="localhost", max-frame-size=32768, channel-max=65535, properties={:product="vertx-proton", :version="3.4.0-SNAPSHOT"}]
[0x7f311800bda0]:  -> AMQP
[0x7f311800bda0]:0 -> @open(16) [container-id="Router.A", max-frame-size=16384, channel-max=32767, idle-time-out=8000, offered-capabilities=:"ANONYMOUS-RELAY", properties={:product="qpid-dispatch-router", :version="0.8.0"}]
[0x7f311800bda0]:0 -> @close(24) [error=@error(29) [condition=:"amqp:connection:framing-error", description="connection aborted"]]
[0x7f311800bda0]:  <- EOS
Thu Dec  1 08:55:18 2016 SERVER (error) send: Broken pipe
qdrouterd: /home/gmurthy/opensource/dispatch/src/router_core/route_control.c:350: qdr_route_connection_opened_CT: Assertion `!cid->open_connection' failed.
Aborted (core dumped)
{noformat}

and here is the backtrace
{noformat}
(gdb) bt
#0  0x00007f312fcb06f5 in raise () from /lib64/libc.so.6
#1  0x00007f312fcb22fa in abort () from /lib64/libc.so.6
#2  0x00007f312fca8f97 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f312fca9042 in __assert_fail () from /lib64/libc.so.6
#4  0x00007f3130cd5475 in qdr_route_connection_opened_CT (core=0xc29570, conn=0x7f310c0161a0, field=0x7f310c0174a0, is_container=true) at /home/gmurthy/opensource/dispatch/src/router_core/route_control.c:350
#5  0x00007f3130cd024b in qdr_connection_opened_CT (core=0xc29570, action=0xcb95e0, discard=false) at /home/gmurthy/opensource/dispatch/src/router_core/connections.c:933
#6  0x00007f3130cd7ded in router_core_thread (arg=0xc29570) at /home/gmurthy/opensource/dispatch/src/router_core/router_core_thread.c:83
#7  0x00007f313082f5ca in start_thread () from /lib64/libpthread.so.0
#8  0x00007f312fd7ef6d in clone () from /lib64/libc.so.6
{noformat}

> 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