Login  Register

Re: Test Suite Crashed in QL v1.2

Posted by Billy Ng-5 on May 28, 2012; 9:10am
URL: http://quantlib.414.s1.nabble.com/How-to-handle-sink-schedules-stepped-coupons-stepped-formulas-callable-floaters-tp7771p7776.html

I compiled the whole thing in Debug Mode.
In running the testsuite, it crashed at vpp.cpp after running for a while
I think the problem is caused by "vector subscript out of range" under Boost.
I do not have access to the boost source code, so it turn up with some disassembly code.
Therefore, I cannot trace where went wrong as it is after running for a while.

I have the option to copy out vpp.cpp as a standalone project, but I think I should at least ask in this mailing list to see if there a solution for it.
It does not make sense if I cannot do testing under a test-suite as the problem may not repeat if running alone

Billy

VPPTest::testVPPPricing()
    const Real fdmPrice = vppOption.NPV();

The system crashed at the following, an assertion error.
line 764 std::vector
 #if _HAS_ITERATOR_DEBUGGING
                if (size() <= _Pos)
                        {
                        _DEBUG_ERROR("vector subscript out of range");
                        _SCL_SECURE_OUT_OF_RANGE;
                        }
 #endif /* _HAS_ITERATOR_DEBUGGING */


-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: Monday, May 28, 2012 4:54 PM
To: Billy Ng
Cc: [hidden email]
Subject: Re: [Quantlib-users] Test Suite Crashed in QL v1.2


On Sat, May 26, 2012 at 5:50 AM, Billy Ng <[hidden email]> wrote:
> In trying to debug this problem under Test-Suite Project, how to make source code visible to the debugger?
> Sorry if it is a bit off topic.

It should be as easy as compiling the whole thing in Debug mode and
starting the debugger. Visual Studio should show you the code
automatically.  What is it exactly that you're doing?

Luigi
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users