Appears as if that minor code change did in fact eliminate those false-positive locking errors.
http://svn.apache.org/viewvc?view=revision&revision=1498926 -K ----- Original Message ----- > From: scan-ad...@coverity.com > To: dev@qpid.apache.org > Sent: Sunday, July 7, 2013 5:40:46 PM > Subject: New Defects reported by Coverity Scan for Apache-Qpid > > > Hi, > > Please find the latest report on new defect(s) introduced to Apache-Qpid > found with Coverity Scan > > Defect(s) Reported-by: Coverity Scan > Showing 7 of 18 defects > > ** CID 1042963: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 > > ** CID 1042962: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 > > ** CID 1042961: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 > > ** CID 1042960: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 > > ** CID 1042959: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 > > ** CID 1042958: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 34 > > ** CID 1042957: Uncaught exception (UNCAUGHT_EXCEPT) > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 34 > > > ________________________________________________________________________ > CID 1042963: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042963: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type "qmf::QmfException" is thrown and > >>> never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 51 ( > fun_call_w_exception) > 48 connection.open(); > 49 > 50 ConsoleSession session(connection, sessionOptions); > >>> Called function throws an exception of type "qmf::QmfException". > 51 session.open(); > 52 > 53 while (true) { > 54 ConsoleEvent event; > 55 if (session.nextEvent(event)) { > > ________________________________________________________________________ > CID 1042962: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042962: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type > >>> "qpid::messaging::InvalidOptionString" is thrown and never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 47 ( > fun_call_w_exception) > 44 if (argc > 3) > 45 sessionOptions = argv[3]; > 46 > >>> Called function throws an exception of type > >>> "qpid::messaging::InvalidOptionString". > 47 qpid::messaging::Connection connection(url, connectionOptions); > 48 connection.open(); > 49 > 50 ConsoleSession session(connection, sessionOptions); > 51 session.open(); > > ________________________________________________________________________ > CID 1042961: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042961: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type "qpid::types::InvalidConversion" > >>> is thrown and never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 47 ( > fun_call_w_exception) > 44 if (argc > 3) > 45 sessionOptions = argv[3]; > 46 > >>> Called function throws an exception of type > >>> "qpid::types::InvalidConversion". > 47 qpid::messaging::Connection connection(url, connectionOptions); > 48 connection.open(); > 49 > 50 ConsoleSession session(connection, sessionOptions); > 51 session.open(); > > ________________________________________________________________________ > CID 1042960: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042960: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type "qmf::IndexOutOfRange" is thrown > >>> and never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 57 ( > fun_call_w_exception) > 54 ConsoleEvent event; > 55 if (session.nextEvent(event)) { > 56 if (event.getType() == CONSOLE_EVENT) { > >>> Called function throws an exception of type "qmf::IndexOutOfRange". > 57 const Data& data(event.getData(0)); > 58 cout << "Event: timestamp=" << event.getTimestamp() > << " severity=" << > 59 event.getSeverity() << " content=" << > data.getProperties() << endl; > 60 } > 61 } > > ________________________________________________________________________ > CID 1042959: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042959: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type "qpid::Exception" is thrown and > >>> never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/print_events.cpp: 55 ( > fun_call_w_exception) > 52 > 53 while (true) { > 54 ConsoleEvent event; > >>> Called function throws an exception of type "qpid::Exception". > 55 if (session.nextEvent(event)) { > 56 if (event.getType() == CONSOLE_EVENT) { > 57 const Data& data(event.getData(0)); > 58 cout << "Event: timestamp=" << event.getTimestamp() > << " severity=" << > 59 event.getSeverity() << " content=" << > data.getProperties() << endl; > > ________________________________________________________________________ > CID 1042958: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042958: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type "qmf::QmfException" is thrown and > >>> never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 51 ( > fun_call_w_exception) > 48 connection.open(); > 49 > 50 ConsoleSession session(connection, sessionOptions); > >>> Called function throws an exception of type "qmf::QmfException". > 51 session.open(); > 52 > 53 session.setAgentFilter(""); > 54 > 55 while (true) { > > ________________________________________________________________________ > CID 1042957: Uncaught exception (UNCAUGHT_EXCEPT) > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 34 ( > root_function) > 31 using qpid::types::Variant; > 32 using qpid::messaging::Duration; > 33 > >>> CID 1042957: Uncaught exception (UNCAUGHT_EXCEPT) > >>> In function "main" an exception of type > >>> "qpid::messaging::InvalidOptionString" is thrown and never caught. > 34 int main(int argc, char** argv) > 35 { > 36 string url("localhost"); > 37 string connectionOptions; > 38 string sessionOptions; > > > /qpidbuilds/trunk/qpid/cpp/bindings/qmf2/examples/cpp/list_agents.cpp: 47 ( > fun_call_w_exception) > 44 if (argc > 3) > 45 sessionOptions = argv[3]; > 46 > >>> Called function throws an exception of type > >>> "qpid::messaging::InvalidOptionString". > 47 qpid::messaging::Connection connection(url, connectionOptions); > 48 connection.open(); > 49 > 50 ConsoleSession session(connection, sessionOptions); > 51 session.open(); > > ________________________________________________________________________ > To view the defects in Coverity Scan visit, http://scan.coverity.com > > To unsubscribe from the email notification for new defects, > http://scan5.coverity.com/cgi-bin/unsubscribe.py > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org > For additional commands, e-mail: dev-h...@qpid.apache.org > > -- -K --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org