{"action":"created","issue":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/90","labels_url":"https://api.github.com/repos/trilinos/Trilinos/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/trilinos/Trilinos/issues/90/comments","events_url":"https://api.github.com/repos/trilinos/Trilinos/issues/90/events","html_url":"https://github.com/trilinos/Trilinos/issues/90","id":127966547,"number":90,"title":"Segfault in Tpetra's writeDenseFile()","user":{"login":"dridzal","id":15807754,"avatar_url":"https://avatars.githubusercontent.com/u/15807754?v=3","gravatar_id":"","url":"https://api.github.com/users/dridzal","html_url":"https://github.com/dridzal","followers_url":"https://api.github.com/users/dridzal/followers","following_url":"https://api.github.com/users/dridzal/following{/other_user}","gists_url":"https://api.github.com/users/dridzal/gists{/gist_id}","starred_url":"https://api.github.com/users/dridzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dridzal/subscriptions","organizations_url":"https://api.github.com/users/dridzal/orgs","repos_url":"https://api.github.com/users/dridzal/repos","events_url":"https://api.github.com/users/dridzal/events{/privacy}","received_events_url":"https://api.github.com/users/dridzal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T16:42:49Z","updated_at":"2016-01-22T14:37:28Z","closed_at":null,"body":"@trilinos/tpetra:  The @trilinos/rol team is using MatrixMarket writers for the PDE-OPT application development kit.  It appears that a recent change to Tpetra is causing segaults in writeDenseFile(), in an MPI build, for example in the data.hpp file in  /rol/example/PDE-OPT/poisson:\r\n\r\nvoid outputTpetraVector(const Teuchos::RCP<const Tpetra::MultiVector<> > &vec,\r\n                          const std::string &filename) const {\r\n    Tpetra::MatrixMarket::Writer<Tpetra::MultiVector<> > vecWriter;\r\n    vecWriter.writeDenseFile(filename, vec);\r\n  }\r\n\r\nWe are not sure which recent change in Tpetra caused the issue; it was a day or two after the ROL commit d5bcec2467f9087f0117ae7da1db921b3afc4d6d.  If you checkout this sha1, the example in the above directory will run without segfaults, in a parallel MPI build.  The issue is not present in a serial build.  We have not checked CrsMatrix writers.\r\n"},"comment":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/comments/173936993","html_url":"https://github.com/trilinos/Trilinos/issues/90#issuecomment-173936993","issue_url":"https://api.github.com/repos/trilinos/Trilinos/issues/90","id":173936993,"user":{"login":"mhoemmen","id":926747,"avatar_url":"https://avatars.githubusercontent.com/u/926747?v=3","gravatar_id":"","url":"https://api.github.com/users/mhoemmen","html_url":"https://github.com/mhoemmen","followers_url":"https://api.github.com/users/mhoemmen/followers","following_url":"https://api.github.com/users/mhoemmen/following{/other_user}","gists_url":"https://api.github.com/users/mhoemmen/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoemmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoemmen/subscriptions","organizations_url":"https://api.github.com/users/mhoemmen/orgs","repos_url":"https://api.github.com/users/mhoemmen/repos","events_url":"https://api.github.com/users/mhoemmen/events{/privacy}","received_events_url":"https://api.github.com/users/mhoemmen/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T14:37:28Z","updated_at":"2016-01-22T14:37:28Z","body":"Would you mind terribly much adding the following to the CMakeLists.txt file for the test, and rerunning?\r\n\r\n`ARGS \"--globally-reduce-test-result --output-show-proc-rank --output-to-root-rank-only=-1\"`\r\n\r\nPlease see tpetra/core/test/ImportExport/CMakeLists.txt for examples.  This ensures that all MPI procesess get a chance to print.  That way, we might be able to catch some exception throws.  Also, please try a debug build with Teuchos_ENABLE_DEBUG and Kokkos_ENABLE_DEBUG ON."}}