Red Hat Bugzilla – Bug 624118
C++ Messaging Client .NET binding fails to clone managed objects correctly
Last modified: 2015-11-15 20:12:42 EST
Description of problem:
After cloning a managed object and then handling an exception, the process received an Access Violation while freeing the object and its clone.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
The specific case that failed was
request = receiver.fetch();
address = request.ReplyTo;
sender = session.CreateSender(address);
The bug occurs during the cloning of the Address object from the request.ReplyTo. After that line of code there are two managed objects that have pointers to the same unmanaged object. When the CreateSender function exits then the process will get an accvio during shutdown.
Fixed by http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=commitdiff;h=a58e01717ebdc63327b75f1a147130a17353ef93