See https://issues.apache.org/jira/browse/QPID-4259
Fixed on 0.18-mrg branch http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=commit;h=f9856b87379afd02b0fa2665c41b066778f2c9a4
To reproduce, create a priority queue bound to the fanout exchange, send some messages, then reroute from the queue to the fanout exchange (so rerouting to self). This will crash the broker. For exact details of the reproducer see the regression test test_priority_reroute at: http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=blobdiff;f=qpid/cpp/src/tests/ha_tests.py;h=6eb3d9d9d2da6fd8e1202f20d52df30bc89b55b5;hp=7c0ee37c6915b27153ae84cf49fe2470f34d871a;hb=f9856b87379afd02b0fa2665c41b066778f2c9a4;hpb=0276e1436d5b39434fc7c68c4feb05b0cf4b0ad3