You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2017/08/16 22:49:00 UTC

[jira] [Commented] (PROTON-893) Calling session.close() on non-active session causes client segfault

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

Justin Ross commented on PROTON-893:
------------------------------------

I get a different bad result from the session_close_con.py example.  It does an infinite session begin and end.

{noformat}
[jross@server bld (master)]$ PN_TRACE_FRM=1 python ~/test.py
[0x55bb4b3dadd0]:  -> SASL
[0x55bb4b3dadd0]:  <- SASL
[0x55bb4b3dadd0]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :PLAIN]]
[0x55bb4b3dadd0]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b"anonymous@server.example.com"]
[0x55bb4b3dadd0]:0 <- @sasl-outcome(68) [code=0]
[0x55bb4b3dadd0]:  -> AMQP
[0x55bb4b3dadd0]:0 -> @open(16) [container-id="ff968836-1ef6-4522-8160-3243ebe9c346", hostname="localhost", channel-max=32767]
[0x55bb4b3dadd0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:0 -> @attach(18) [name="ff968836-1ef6-4522-8160-3243ebe9c346-examples", handle=0, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [durable=0, timeout=0, dynamic=false], target=@target(41) [address="examples", durable=0, timeout=0, dynamic=false], initial-delivery-count=0, max-message-size=0]
[0x55bb4b3dadd0]:  <- AMQP
[0x55bb4b3dadd0]:0 <- @open(16) [container-id="f8acdbcc-d7e3-4ed0-aada-fe02b76f8cf2", channel-max=32767, offered-capabilities=@PN_SYMBOL[:"ANONYMOUS-RELAY"], properties={:product="qpid-cpp", :version="1.36.0", :platform="Linux", :host="server.example.com"}]
[0x55bb4b3dadd0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:0 <- @attach(18) [name="ff968836-1ef6-4522-8160-3243ebe9c346-examples", handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [durable=0, timeout=0, dynamic=false], target=@target(41) [address="examples", durable=0, timeout=0, dynamic=false], initial-delivery-count=0, max-message-size=0]
[0x55bb4b3dadd0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=0, link-credit=500, drain=false]
after session close
[0x55bb4b3dadd0]:1 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 -> @end(23) []
[0x55bb4b3dadd0]:1 <- @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 <- @end(23) []
[0x55bb4b3dadd0]:1 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 -> @end(23) []
[0x55bb4b3dadd0]:1 <- @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 <- @end(23) []
[0x55bb4b3dadd0]:1 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 -> @end(23) []
[0x55bb4b3dadd0]:1 <- @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 <- @end(23) []
[0x55bb4b3dadd0]:1 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 -> @end(23) []
[0x55bb4b3dadd0]:1 <- @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 <- @end(23) []
[0x55bb4b3dadd0]:1 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
[0x55bb4b3dadd0]:1 -> @end(23) []
[ad infinitum]
{noformat}

> Calling session.close() on non-active session causes client segfault
> --------------------------------------------------------------------
>
>                 Key: PROTON-893
>                 URL: https://issues.apache.org/jira/browse/PROTON-893
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: 0.9.1
>         Environment: packages:
> qpid-proton-c-0.9-3
> qpid-proton-c-devel-0.9-3
> python-qpid-proton-0.9-3
>            Reporter: Petr Matousek
>            Assignee: Justin Ross
>            Priority: Minor
>              Labels: crash, reproducer
>             Fix For: proton-c-0.18.0
>
>         Attachments: session_close_con.py, session_close_ssn.py, stacktrace.txt
>
>
> Calling the session.close() on non-active session causes client segfault (see the attached reproducer session_close_con.py).
> Moreover calling connection.session().close() causes client seqfault even if the session shall be in active state (see the attached reproducer session_close_ssn.py).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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