{"action":"created","issue":{"url":"https://api.github.com/repos/OPM/opm-simulators/issues/702","repository_url":"https://api.github.com/repos/OPM/opm-simulators","labels_url":"https://api.github.com/repos/OPM/opm-simulators/issues/702/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-simulators/issues/702/comments","events_url":"https://api.github.com/repos/OPM/opm-simulators/issues/702/events","html_url":"https://github.com/OPM/opm-simulators/pull/702","id":157195401,"number":702,"title":"hack: work around a segmentation fault in flow","user":{"login":"andlaus","id":1837735,"avatar_url":"https://avatars.githubusercontent.com/u/1837735?v=3","gravatar_id":"","url":"https://api.github.com/users/andlaus","html_url":"https://github.com/andlaus","followers_url":"https://api.github.com/users/andlaus/followers","following_url":"https://api.github.com/users/andlaus/following{/other_user}","gists_url":"https://api.github.com/users/andlaus/gists{/gist_id}","starred_url":"https://api.github.com/users/andlaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andlaus/subscriptions","organizations_url":"https://api.github.com/users/andlaus/orgs","repos_url":"https://api.github.com/users/andlaus/repos","events_url":"https://api.github.com/users/andlaus/events{/privacy}","received_events_url":"https://api.github.com/users/andlaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-27T12:25:38Z","updated_at":"2016-05-28T11:32:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OPM/opm-simulators/pulls/702","html_url":"https://github.com/OPM/opm-simulators/pull/702","diff_url":"https://github.com/OPM/opm-simulators/pull/702.diff","patch_url":"https://github.com/OPM/opm-simulators/pull/702.patch"},"body":"this is related to deleting the Opm::Parser object when the shared_ptr\r\nwhich points to it runs out of scope. On my machine, the segfault only\r\nhappened after I pulled the latest master versions of this afternoon\r\n(27th of May, 2016), so the issue seems to be new. I'm aware that this\r\npatch only papers over the symptom of a deeper cause, so I don't\r\nconsider it to be a \"good\" solution in any way. Without it, I get the\r\nfollowing segmentation fault, though:\r\n\r\n```\r\nand@heuristix:~/src/opm-simulators|master > ./bin/flow /home/and/src/opm-data/norne/NORNE_ATW2013.DATA\r\n**********************************************************************\r\n*                                                                    *\r\n*                   This is Flow (version 2016.10-pre)               *\r\n*                                                                    *\r\n* Flow is a simulator for fully implicit three-phase black-oil flow, *\r\n*            and is part of OPM. For more information see:           *\r\n*                       http://opm-project.org                       *\r\n*                                                                    *\r\n**********************************************************************\r\n\r\n---------------    Reading parameters     ---------------\r\nVFPPROD bhp versus thp not monotonic increasing: 7/4224(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 9/3168(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 1/7296(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 6/15200(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 5/13300(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 11/13300(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 8/13300(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 10/13300(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 15/13680(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 3/15200(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 73/3360(2%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 335/6804(4%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 32/6804(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 54/6804(0%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 282/6912(4%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 87/6804(1%) elements failed test\r\nVFPPROD bhp versus thp not monotonic increasing: 337/6048(5%) elements failed test\r\nERROR when handling keyword for well C-4H: Cannot open a well where all completions are shut\r\nERROR when handling keyword for well D-1H: Cannot open a well where all completions are shut\r\nERROR when handling keyword for well D-1H: Cannot open a well where all completions are shut\r\nERROR when handling keyword for well E-3AH: Cannot open a well where all completions are shut\r\nERROR when handling keyword for well D-3AH: Cannot open a well where all completions are shut\r\nERROR when handling keyword for well E-2H: Cannot open a well where all completions are shut\r\n[heuristix:04932] *** Process received signal ***\r\n[heuristix:04932] Signal: Segmentation fault (11)\r\n[heuristix:04932] Signal code: Address not mapped (1)\r\n[heuristix:04932] Failing at address: 0xfffffffffffffff9\r\n[heuristix:04932] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7fe10babbd10]\r\n[heuristix:04932] [ 1] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x22) [0x7fe109cf17c2]\r\n[heuristix:04932] [ 2] ./bin/flow(_ZN3Opm13ParserKeywordD1Ev+0x1e) [0x1029c78]\r\n[heuristix:04932] [ 3] ./bin/flow(_ZNKSt14default_deleteIKN3Opm13ParserKeywordEEclEPS2_+0x22) [0x1029d12]\r\n[heuristix:04932] [ 4] ./bin/flow(_ZNSt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS2_EED1Ev+0x47) [0x101cfc1]\r\n[heuristix:04932] [ 5] ./bin/flow(_ZSt8_DestroyISt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS3_EEEvPT_+0x18) [0x100fb81]\r\n[heuristix:04932] [ 6] ./bin/flow(_ZNSt12_Destroy_auxILb0EE9__destroyIPSt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS5_EEEEvT_SA_+0x2e) [0x100284f]\r\n[heuristix:04932] [ 7] ./bin/flow(_ZSt8_DestroyIPSt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS3_EEEvT_S8_+0x23) [0xfec926]\r\n[heuristix:04932] [ 8] ./bin/flow(_ZSt8_DestroyIPSt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS3_EES6_EvT_S8_RSaIT0_E+0x27) [0xfd2fa9]\r\n[heuristix:04932] [ 9] ./bin/flow(_ZNSt6vectorISt10unique_ptrIKN3Opm13ParserKeywordESt14default_deleteIS3_EESaIS6_EED1Ev+0x35) [0xfbb72f]\r\n[heuristix:04932] [10] ./bin/flow(_ZN3Opm6ParserD1Ev+0x38) [0xfa6fe6]\r\n[heuristix:04932] [11] ./bin/flow(_ZNSt15_Sp_counted_ptrIPN3Opm6ParserELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv+0x22) [0x106dcee]\r\n[heuristix:04932] [12] ./bin/flow(_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv+0x42) [0xf54080]\r\n[heuristix:04932] [13] ./bin/flow(_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED1Ev+0x27) [0xf49901]\r\n[heuristix:04932] [14] ./bin/flow(_ZNSt12__shared_ptrIN3Opm6ParserELN9__gnu_cxx12_Lock_policyE2EED1Ev+0x1c) [0xf63438]\r\n[heuristix:04932] [15] ./bin/flow(_ZNSt10shared_ptrIN3Opm6ParserEED1Ev+0x18) [0xf63454]\r\n[heuristix:04932] [16] ./bin/flow(_ZN3Opm12FlowMainBaseINS_8FlowMainI16UnstructuredGridNS_30SimulatorFullyImplicitBlackoilIS2_EEEES2_S4_E13readDeckInputEv+0xa2b) [0xf6412f]\r\n[heuristix:04932] [17] ./bin/flow(_ZN3Opm12FlowMainBaseINS_8FlowMainI16UnstructuredGridNS_30SimulatorFullyImplicitBlackoilIS2_EEEES2_S4_E7executeEiPPc+0xa8) [0xf51848]\r\n[heuristix:04932] [18] ./bin/flow(main+0x55) [0xf2a921]\r\n[heuristix:04932] [19] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fe109c8dac0]\r\n[heuristix:04932] [20] ./bin/flow(_start+0x29) [0xf27ee9]\r\n[heuristix:04932] *** End of error message ***\r\nSegmentation fault (core dumped)\r\n```\r\n\r\n(this happens with both, debug and optimized compiler flags on GCC\r\n5.2.1, kubuntu 15.10)"},"comment":{"url":"https://api.github.com/repos/OPM/opm-simulators/issues/comments/222303986","html_url":"https://github.com/OPM/opm-simulators/pull/702#issuecomment-222303986","issue_url":"https://api.github.com/repos/OPM/opm-simulators/issues/702","id":222303986,"user":{"login":"andlaus","id":1837735,"avatar_url":"https://avatars.githubusercontent.com/u/1837735?v=3","gravatar_id":"","url":"https://api.github.com/users/andlaus","html_url":"https://github.com/andlaus","followers_url":"https://api.github.com/users/andlaus/followers","following_url":"https://api.github.com/users/andlaus/following{/other_user}","gists_url":"https://api.github.com/users/andlaus/gists{/gist_id}","starred_url":"https://api.github.com/users/andlaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andlaus/subscriptions","organizations_url":"https://api.github.com/users/andlaus/orgs","repos_url":"https://api.github.com/users/andlaus/repos","events_url":"https://api.github.com/users/andlaus/events{/privacy}","received_events_url":"https://api.github.com/users/andlaus/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T11:32:50Z","updated_at":"2016-05-28T11:32:50Z","body":"Question: has anybody recently tried to run flow with valgrind, ASAN and/or with the libstdcpp debugging enabled? "}}
{"actor":{"display_login":"andlaus"}}