[Dune-devel] Test failure in fvectortest (dune-common)

Oliver Sander sander at igpm.rwth-aachen.de
Mon Apr 14 08:47:24 CEST 2014


Dear Dune,

I am getting a segmentation fault in fvectortest both on git master and on the 2.3 branch.

The reason is simple: line 307 calls FieldVectorMainTest for a 0-size FieldVector, but
FieldVectorMainTest accesses the first entry of the vector it tests (line 28).
What puzzles me is that the code has been in there since at least 2010.  Why didn't it
crash before?

@Christian: you wrote the code: is the test for 0-size vectors intentional (to test the
static interface), or should I just remove it?

Cheers,
Oliver



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 534 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20140414/3ab4314c/attachment.sig>


More information about the Dune-devel mailing list