Login  Register

test suite fails when run in debug mode but is successful when run in release mode

Posted by Rahul Reddy Kanchi on Jul 18, 2011; 9:47pm
URL: http://quantlib.414.s1.nabble.com/test-suite-fails-when-run-in-debug-mode-but-is-successful-when-run-in-release-mode-tp13557.html

Hi All,
I have this wierd problem when running test suite. An exception is thrown when testsuite is run in debug mode. But when run in release mode it is successfull as some of the asserts are skipped in release mode.

Note: I have checked out latest quantlib using tortoiseSVN and built it. Finally when i ran testsuite, an exception is thrown. Stack trace is attached. Could you please let me know if this a known behavior.

Error Message:
==========
First-chance exception at 0x763cc83b in QuantLib-test-suite-vc100-mt-gd.exe: Microsoft C++ exception: QuantLib::Error at memory location 0x0017a008..

Stack trace is shown below:
=====================
ThrowException
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::TermStructure::checkRange(double t, bool extrapolate) Line 77 
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::YieldTermStructure::discount(double t, bool extrapolate) Line 93
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::YieldTermStructure::discount(const QuantLib::Date &d, bool extrapolate) Line 188
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::DiscountingSwapEngine::calculate() Line 94
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::Instrument::performCalculations() Line 168
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::LazyObject::calculate() Line 140
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::Instrument::calculate() Line 155
QuantLib-test-suite-vc100-mt-gd.exe!QuantLib::AssetSwap::fairCleanPrice() Line 221
QuantLib-test-suite-vc100-mt-gd.exe!AssetSwapTest::testConsistency() Line 163
......
.....

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev