Program received signal SIGSEGV, Segmentation fault.
0x000000000041b09d in stan::agrad::var::val (this=0x7fffffffdae8) at src/stan/agrad/agrad.hpp:415
415 return vi_->val_;
(gdb) bt
#0 0x000000000041b09d in stan::agrad::var::val (this=0x7fffffffdae8) at src/stan/agrad/agrad.hpp:415
#1 0x000000000040fc70 in MetaTraits_VectorView_matrix_var_Test::TestBody (this=0x69c430) at src/test/meta/traits_test.cpp:274
#2 0x0000000000458e83 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (object=0x69c430, method=..., location=0x469b54 "the test body")
at lib/gtest_1.6.0/src/gtest.cc:2090
#3 0x0000000000448c17 in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x69c430, method=..., location=0x469b54 "the test body")
at lib/gtest_1.6.0/src/gtest.cc:2126
#4 0x0000000000435727 in testing::Test::Run (this=0x69c430) at lib/gtest_1.6.0/src/gtest.cc:2161
#5 0x00000000004364bc in testing::TestInfo::Run (this=0x69b000) at lib/gtest_1.6.0/src/gtest.cc:2338
#6 0x0000000000436c25 in testing::TestCase::Run (this=0x69a440) at lib/gtest_1.6.0/src/gtest.cc:2445
#7 0x000000000043c5c7 in testing::internal::UnitTestImpl::RunAllTests (this=0x69a140) at lib/gtest_1.6.0/src/gtest.cc:4237
#8 0x0000000000454ec3 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x69a140, method=...,
location=0x46a27f "auxiliary test code (environments or event listeners)") at lib/gtest_1.6.0/src/gtest.cc:2090
#9 0x000000000044af97 in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x69a140, method=...,
location=0x46a27f "auxiliary test code (environments or event listeners)") at lib/gtest_1.6.0/src/gtest.cc:2126
#10 0x000000000043c2c2 in testing::UnitTest::Run (this=0x699dc0) at lib/gtest_1.6.0/src/gtest.cc:3872
#11 0x0000000000405e5f in main (argc=1, argv=0x7fffffffe2d8) at lib/gtest_1.6.0/src/gtest_main.cc:38
(gdb) f 1
#1 0x000000000040fc70 in MetaTraits_VectorView_matrix_var_Test::TestBody (this=0x69c430) at src/test/meta/traits_test.cpp:274
274 EXPECT_FLOAT_EQ(d[n].val(), dv[n].val());
(gdb) print n
$1 = 0
(gdb) print dv[n]
$2 = {vi_ = 0x0}
(gdb) print d[n]
$3 = (Eigen::DenseCoeffsBase<Eigen::Matrix<stan::agrad::var, 1, -1, 1, 1, -1>, 1>::Scalar &) @0x6ac5f0: {vi_ = 0x69cad8}
(gdb) print d[n].val()
$4 = 10
(gdb) print dv[n].val()
Attempt to take address of value not located in memory.