Bug 472735 - qmf-agent crashes when qpidd broker running and/or qpid-tool is invoked
Summary: qmf-agent crashes when qpidd broker running and/or qpid-tool is invoked
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf
Version: 1.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: 1.1
: ---
Assignee: messaging-bugs
QA Contact: Jeff Needle
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-24 09:16 UTC by Frantisek Reznicek
Modified: 2015-11-16 00:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-24 15:06:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Frantisek Reznicek 2008-11-24 09:16:33 UTC
Description of problem:
qmf-agent example crashes/cores when qpid-tool is invoked and/or an qpid-tool command is issued.
After that I could also see that qmf-agent was crashing itself (without qpid-tool, just having broker in daemon mode running).
qmf-agent doesn't core when run stand-alone (no broker running)

Version-Release number of selected component (if applicable):
  qpidd-0.3.719671-1.el5, 
  qmf-0.3.719671-1.el5, 
  rhm-0.3.2804-4.el5, 
  python-qpid-0.3.719419-2.el5
qmf-agent checkout-ed from svn branch at rev:
  720133   711933 tross        example.cpp

How reproducible:
100% using above mentioned packages on RHEL 5.2 x86_64

Steps to Reproduce:
0. compile qmf-agent
1. start qpidd (service qpidd start)
2. start qmf agent (cpp/examples/qmf-agent/qmf-agent)
3. start in another console qpid-tool


Actual results:
qmf-agent cores in 1-2 secs

Expected results:
qmf-agent should be running independently on qpid-tool commands issued.

Additional info: (backtrace)

(gdb) bt
#0  0x00002adc7ff4fd30 in qpid::management::ObjectId::encode () from /usr/lib64/libqpidcommon.so.0
#1  0x00002adc7ff4fe00 in qpid::management::ManagementObject::writeTimestamps () from /usr/lib64/libqpidcommon.so.0
#2  0x00000000004077ff in qmf::org::apache::qpid::agent::example::Parent::writeProperties (this=0x15c43670, buf=@0x414d4f70)
    at gen/qmf/org/apache/qpid/agent/example/Parent.cpp:172
#3  0x00002adc7fb88a8d in qpid::management::ManagementAgentImpl::periodicProcessing () from /usr/lib64/libqmfagent.so.0
#4  0x00002adc7fb88fbd in qpid::management::ManagementAgentImpl::PublishThread::run () from /usr/lib64/libqmfagent.so.0
#5  0x00002adc7ff0811a in qpid::sys::AbsTime::AbsTime () from /usr/lib64/libqpidcommon.so.0
#6  0x000000350bc062f7 in start_thread () from /lib64/libpthread.so.0
#7  0x000000350b0d1b6d in clone () from /lib64/libc.so.6

Detected by RHTS qpid_test_qmf_agent_bz470167 test.

Comment 1 Ted Ross 2008-11-24 13:59:54 UTC
I suspect that this happened because you built the qmf-agent example against the SVN checkout (720133) and ran it against the shared-object library installed from the RPM (719671).  There was a change to the implementation of qpid::management::ManagementObject between these two SVN versions.

Comment 2 Frantisek Reznicek 2008-11-24 15:06:29 UTC
Indeed, qmf-agent example from trunk was run against installed RPM set.
RHTS qpid_test_qmf_agent_bz470167 test upgraded to avoid such combination.
->NOTABUG


Note You need to log in before you can comment on or make changes to this bug.