Hello Ganesh,
Unfortunately, there is no core file generated and I can reproduce 100% with 
the binaries we have generated. Could it be related to the way qpid-dispatch 
was built?
As for the log file, it is empty from my side. It seems this crash prevents any 
logging.
Regards,Adel

Date: Tue, 17 May 2016 09:33:22 -0400
From: [email protected]
To: [email protected]
Subject: Re: [qpid-dispatch] Running same qdmanage command twice crashes 
dispatcher

Hi Adel,
   I got down the latest dispatch code from 
https://dist.apache.org/repos/dist/dev/qpid/dispatch/0.6.0-beta2/ and used your 
dispatcher.conf to start the router. I ran the qdmanage command several times 
and did not see the router crash. This is what I see on the client side - 
 
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
{
  "verifyHostName": true, 
  "stripAnnotations": "both", 
  "name": "broker1", 
  "allowRedirect": true, 
  "idleTimeoutSeconds": 16, 
  "maxFrameSize": 65536, 
  "host": "127.0.0.1", 
  "cost": 1, 
  "role": "route-container", 
  "type": "org.apache.qpid.dispatch.connector", 
  "port": "5672", 
  "identity": "connector/127.0.0.1:5672", 
  "addr": "localhost"
}
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ qdmanage -b localhost:10400 create 
--type=connector role=route-container addr=localhost port=5672 name=broker1
BadRequestStatus: org.apache.qpid.dispatch.connector: Duplicate value 'broker1' 
for unique attribute 'name'
[gmurthy@localhost dispatch]$ 
 
 
The router side log (adel.log, which is attached to this email) shows the 
following error message several times
 
Tue May 17 09:28:33 2016 AGENT (error) Error dispatching Message(address=None, 
properties={'operation': 'CREATE', 'type': 
'org.apache.qpid.dispatch.connector', 'name': 'broker1'}, body={'port': '5672', 
'type': 'org.apache.qpid.dispatch.connector', 'role': 'route-container', 
'addr': 'localhost', 'name': 'broker1'}, 
reply_to='amqp:/_topo/0/router1/temp.z1bTIsM+fL_h3vQ', correlation_id=1L): 
org.apache.qpid.dispatch.connector: Duplicate value 'broker1' for unique 
attribute 'name'
Traceback (most recent call last):
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 770, in receive
    status, body = self.handle(request)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 793, in handle
    return self.create(request)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 834, in create
    return (CREATED, self._create(attributes).attributes)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 809, in _create
    self.entities.add_implementation(cimplementation, entity)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 518, in add_implementation
    self._add_implementation(implementation, adapter=adapter)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 515, in _add_implementation
    self.add(adapter)
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch_internal/management/agent.py",
 line 504, in add
    self.schema.validate_full(chain(iter([entity]), iter(self.entities)))
  File 
"/home/gmurthy/opensource/adel/qpid-dispatch-0.6.0/install/lib/qpid-dispatch/python/qpid_dispatch
 
If you are still seeing the crash can you please send the backtrace from your 
core file?
 
I tried the same in dispatch-master and could not crash it either.
 
Thanks.
 
----- Original Message -----
> From: "Adel Boutros" <[email protected]>
> To: [email protected]
> Sent: Tuesday, May 17, 2016 8:08:49 AM
> Subject: RE: [qpid-dispatch] Running same qdmanage command twice crashes 
> dispatcher
> 
> Hello Ted,
> 
> Sorry my test case was wrong. You have to run the following command twice or
> three times (I attached the config file to my mail):
> 
> qdmanage -b localhost:10400 create --type=connector role=route-container
> addr=localhost port=5672 name=broker1
> 
> You will sometime get an error client-side but the router will crash.
> 
> I am using version 0.6.0-beta2
> 
> Regards,
> Adel
> 
> > Subject: Re: [qpid-dispatch] Running same qdmanage command twice crashes
> > dispatcher
> > To: [email protected]
> > From: [email protected]
> > Date: Tue, 17 May 2016 07:39:25 -0400
> > 
> > 
> > On 05/17/2016 06:20 AM, Adel Boutros wrote:
> > > Hello,
> > > While playing around with the dispatcher, I notice when I run the same
> > > qdmanage command twice, the dispatcher outputs an error message and then
> > > crashes.
> > > Is this expected?
> > > *Command example:* qdmanage -b localhost:10400 create --type=address
> > > prefix=my.queue waypoint=true name=queue1
> > > *Error Message*bash$ qdrouterd -c dispatcher.confqdrouterd:
> > > src/router_core/route_control.c:340: qdr_route_connection_opened_CT:
> > > Assertion `!cid->open_connection' failed.Aborted
> > > Regards,Adel
> > > 
> > 
> > We don't ever expect the router to crash. When I tried to reproduce
> > your results, I got the following error on the second attempt (no crash):
> > 
> > BadRequestStatus: Name conflicts with an existing entity
> > 
> > If you are still seeing this problem, please let me know what version of
> > the software you are running and what the configuration is prior to the
> > crash.
> > 
> > Thanks,
> > 
> > -Ted
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]                     
                  

Reply via email to