You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Steve Huston (JIRA)" <qp...@incubator.apache.org> on 2010/05/12 00:43:40 UTC

[jira] Created: (QPID-2598) C++ clients hang at program end since April 16, 2010

C++ clients hang at program end since April 16, 2010
----------------------------------------------------

                 Key: QPID-2598
                 URL: https://issues.apache.org/jira/browse/QPID-2598
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: 0.7
         Environment: Windows
            Reporter: Steve Huston
            Priority: Critical


C++ client code on Windows hangs at program shutdown. It appears that this started with svn r934503 (related to QPID-2511).

Symptom is that at program end, the IOThread is hung waiting for there to be 0 connections but that never happens. The sockets are open. All the python-based tests are ok, but the C++ ones hang.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2598) C++ clients hang at program end since April 16, 2010

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim resolved QPID-2598.
------------------------------

    Resolution: Fixed

Hang no longer occurs. See QPID-2004 for related issues still requiring attention.

> C++ clients hang at program end since April 16, 2010
> ----------------------------------------------------
>
>                 Key: QPID-2598
>                 URL: https://issues.apache.org/jira/browse/QPID-2598
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.7
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>            Priority: Critical
>
> C++ client code on Windows hangs at program shutdown. It appears that this started with svn r934503 (related to QPID-2511).
> Symptom is that at program end, the IOThread is hung waiting for there to be 0 connections but that never happens. The sockets are open. All the python-based tests are ok, but the C++ ones hang.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Issue Comment Edited: (QPID-2598) C++ clients hang at program end since April 16, 2010

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871094#action_12871094 ] 

Gordon Sim edited comment on QPID-2598 at 5/25/10 7:29 AM:
-----------------------------------------------------------

The problem here appears to be that on windows, the IO threads are all terminated as soon as main() returns (and in particular before the destructor of the static IOThread  instance is executed). This happens before all the completions are processed, so even though queueWriteClose() has been invoked, there will never be a closed callback from the IO layer.

      was (Author: gsim):
    The problem here appears to be that on windows, the IO threads are all terminated as soon as main() returns. This happens before all the completions are processed, so even though queueWriteClose() has been invoked, there will never be a closed callback from the IO layer.
  
> C++ clients hang at program end since April 16, 2010
> ----------------------------------------------------
>
>                 Key: QPID-2598
>                 URL: https://issues.apache.org/jira/browse/QPID-2598
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.7
>         Environment: Windows
>            Reporter: Steve Huston
>            Priority: Critical
>
> C++ client code on Windows hangs at program shutdown. It appears that this started with svn r934503 (related to QPID-2511).
> Symptom is that at program end, the IOThread is hung waiting for there to be 0 connections but that never happens. The sockets are open. All the python-based tests are ok, but the C++ ones hang.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2598) C++ clients hang at program end since April 16, 2010

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12871094#action_12871094 ] 

Gordon Sim commented on QPID-2598:
----------------------------------

The problem here appears to be that on windows, the IO threads are all terminated as soon as main() returns. This happens before all the completions are processed, so even though queueWriteClose() has been invoked, there will never be a closed callback from the IO layer.

> C++ clients hang at program end since April 16, 2010
> ----------------------------------------------------
>
>                 Key: QPID-2598
>                 URL: https://issues.apache.org/jira/browse/QPID-2598
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.7
>         Environment: Windows
>            Reporter: Steve Huston
>            Priority: Critical
>
> C++ client code on Windows hangs at program shutdown. It appears that this started with svn r934503 (related to QPID-2511).
> Symptom is that at program end, the IOThread is hung waiting for there to be 0 connections but that never happens. The sockets are open. All the python-based tests are ok, but the C++ ones hang.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Assigned: (QPID-2598) C++ clients hang at program end since April 16, 2010

Posted by "Gordon Sim (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim reassigned QPID-2598:
--------------------------------

    Assignee: Gordon Sim

> C++ clients hang at program end since April 16, 2010
> ----------------------------------------------------
>
>                 Key: QPID-2598
>                 URL: https://issues.apache.org/jira/browse/QPID-2598
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.7
>         Environment: Windows
>            Reporter: Steve Huston
>            Assignee: Gordon Sim
>            Priority: Critical
>
> C++ client code on Windows hangs at program shutdown. It appears that this started with svn r934503 (related to QPID-2511).
> Symptom is that at program end, the IOThread is hung waiting for there to be 0 connections but that never happens. The sockets are open. All the python-based tests are ok, but the C++ ones hang.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org