You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (JIRA)" <qp...@incubator.apache.org> on 2009/10/07 21:17:31 UTC

[jira] Created: (QPID-2132) qmf-agent crashes occasionally on Control-C

qmf-agent crashes occasionally on Control-C
-------------------------------------------

                 Key: QPID-2132
                 URL: https://issues.apache.org/jira/browse/QPID-2132
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
            Reporter: Ken Giusti


Reproducible on trunk.

Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.

Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....



-- 
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-2132) qmf-agent crashes occasionally on Control-C

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

Gordon Sim resolved QPID-2132.
------------------------------

    Resolution: Fixed

Second patch applied as r823279.

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch, pubThread.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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] Updated: (QPID-2132) qmf-agent crashes occasionally on Control-C

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

Ken Giusti updated QPID-2132:
-----------------------------

    Attachment: mgmtAgent.patch

Correctly access/cleanup management connection thread on cleanup - ensure thread does not continue to run after mgt agent object freed.

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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-2132) qmf-agent crashes occasionally on Control-C

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

Gordon Sim resolved QPID-2132.
------------------------------

    Resolution: Fixed

Fixed by r823094.

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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] Reopened: (QPID-2132) qmf-agent crashes occasionally on Control-C

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

Ken Giusti reopened QPID-2132:
------------------------------


Additional issue - the fix works, but only for the connection management thread (connThread).   Same issue exists for publish thread (pubThread).  Less likely to hit due to the longer timeouts, but I can occasionally hit it now that the connThread fix is in place.

Core was generated by `./qmf-agent 127.0.0.1 59736'.
Program terminated with signal 11, Segmentation fault.
[New process 11905]
[New process 11904]
[New process 11903]
#0  qpid::management::ManagementAgentImpl::PublishThread::run (this=0x2b47c8e74438) at qpid/agent/ManagementAgentImpl.cpp:915
915             agent.periodicProcessing();
(gdb) where
#0  qpid::management::ManagementAgentImpl::PublishThread::run (this=0x2b47c8e74438) at qpid/agent/ManagementAgentImpl.cpp:915
#1  0x00002b47c92db9ba in runRunnable (p=0x0) at qpid/sys/posix/Thread.cpp:35
#2  0x0000003ffcc064a7 in start_thread () from /lib64/libpthread.so.0
#3  0x0000003ffc0d3c2d in clone () from /lib64/libc.so.6
(gdb) quit

Will provide patch shortly....

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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] Updated: (QPID-2132) qmf-agent crashes occasionally on Control-C

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

Ken Giusti updated QPID-2132:
-----------------------------

    Attachment: pubThread.patch

Corrects the thread cleanup code.   This patch should be applied after applying the mgmtAgent.patch to fully resolve this issue.

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch, pubThread.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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] Closed: (QPID-2132) qmf-agent crashes occasionally on Control-C

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

Ken Giusti closed QPID-2132.
----------------------------


fixed

> qmf-agent crashes occasionally on Control-C
> -------------------------------------------
>
>                 Key: QPID-2132
>                 URL: https://issues.apache.org/jira/browse/QPID-2132
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>            Reporter: Ken Giusti
>         Attachments: mgmtAgent.patch, pubThread.patch
>
>
> Reproducible on trunk.
> Run the qmf-agent (cpp/examples), hit control-C to interrupt it - segfaults about 1 or 2 times out of ten.
> Race condition on cleanup of ManagementAgentImpl class.  I'll post a patch shortly....

-- 
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