Belos Static Teuchos RCP Segmentation Fault with Clang
Created by: sslattery
Per discussion with @bartlettroscoe, Clang 7 and 8 produce a segmentation fault on Mac OS X 10.11.6 at runtime in Belos when trying to construct a static RCP to an ostream using std::cout. The belos unit tests do not pass on the master due to the segmentation fault:
Start 1: Belos_Factory_MPI_4
1/5 Test #1: Belos_Factory_MPI_4 ................***Failed 0.04 sec
Start 2: Belos_test_gcrodr_complex_MPI_4
2/5 Test #2: Belos_test_gcrodr_complex_MPI_4 ....***Failed 0.09 sec
Start 3: Belos_test_rcg_complex_MPI_4
3/5 Test #3: Belos_test_rcg_complex_MPI_4 .......***Failed 0.07 sec
Start 4: Belos_test_lsqr_complex_MPI_4
4/5 Test #4: Belos_test_lsqr_complex_MPI_4 ...... Passed 0.15 sec
Start 5: Belos_test_factory_complex_MPI_4
5/5 Test #5: Belos_test_factory_complex_MPI_4 ... Passed 0.16 sec
Attached the configuration file and an lldb stack trace from the factory test failure. Configuration is standard with MPI and Belos enabled.
The stack trace points to BelosBlockGmresSolMgr.hpp:404 but I have also experienced this with the BelosPseudoBlockGmresSolMgr and I suspect it also occurs with other places where the static RCP to the stream is being constructed.