Hide Forgot
Description of problem: Calling fetch on an invalid receiver causes a segmentation fault. How reproducible: Occurs 100% of the time. Steps to Reproduce: 1. qpid::messaging::Receiver r; 2. bool valid = r.isValid(); // valid will be false. 3. qpid::messaging::Message m; 4. bool found = r.fetch(m, qpid::messaging::Duration::IMMEDIATE); Actual results: Segmentation fault in qpid/messaging/Receiver.cpp on line 38 Expected results: Throw an exception
Not a bug; this is intended behaviour for the Receiver handle which is in effect a smart pointer. That is why the isValid() methid is there.