-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Debugging jenkins build of PR 4950 #5097
Conversation
jenkins build this please |
Would you mind putting the PR in "draft" mode then please, to prevent inadvertent merging? |
@bska Done. |
Thanks–much appreciated! |
jenkins build this please |
3 similar comments
jenkins build this please |
jenkins build this please |
jenkins build this please |
@akva and @bska Is it possible to run a specific test case with verbose output on the jenkins server? For example, I would like to run
The
to the test case source code and try to determine where the segfault occurs by looking at the console output from the jenkins build. |
You can see the verbose output on jenkins for any failed test so nothing has to be added https://ci.opm-project.org/job/opm-simulators-PR-builder/5750/testReport/junit/(root)/mpi/python_fluidstate_variables/ |
True, with one small caveat: If the transcripts exceeds some upper size threshold, then it will be truncated to the first "threshold" bytes and then it becomes a bit of a guessing game. We've sometimes run into that problem when regression test models with a large number of report steps fail, because our comparison tool is rather chatty. |
jenkins build this please |
As for the segfault it looks like attached. I had to rebase on master as there is a bug in your base that triggers a problem earlier. |
@akva2 Great! This is large step forward in solving this |
5b4bb96
to
8979bd5
Compare
jenkins build this opm-models=861 please |
@bska Yes, seem like what happend in the last build: https://ci.opm-project.org/job/opm-simulators-PR-builder/5761/testReport/junit/(root)/mpi/python_fluidstate_variables/ |
jenkins build this opm-models=861 please |
3 similar comments
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
@akva2 The last jenkins build https://ci.opm-project.org/job/opm-simulators-PR-builder/5766/ reports "No changes" in the Status tab, even if I updated the opm-models PR OPM/opm-models#861 before starting the build. Do I need to update the current PR also in order for it to rerun the tests? |
no, but you do need to fix the build failure... |
jenkins build this opm-models=861 please |
4 similar comments
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
jenkins build this opm-models=861 please |
@akva2 From the backtrace it looks like
this looks strange, since it would only erase elements at end if the size of would be greater than and then And the size of More information of the std::vector resize() method can be found here: @akva2 It would be great if you could run gdb and check why |
size is 0, wants to resize to 1. it's all looks very funky in the debugger, it's apparently in the wrong code path cause size() returns 0 and __new_size is 1, yet the erase_at_end conditional seems to evaluate to true. |
80db1bf
to
d1bfe6a
Compare
@akva2 Yes that is confusing. I have now resized it to 1 when the element context is constructed, see line 106 in This allows the Jenkins run to run a little bit further: Based on the output from the Jenkins build:
it appears that the segfault now appears after the line
and before the line 468 in which should have output |
gdb.txt |
@akva2 Thanks, but this backtrace does not look like it uses the current version of #5097. For example, frame #3 in the backtrace:
refers to line 129 in
|
Added methods to Python module opm.simulators.BlackOilSimulator to access primary variables and fluid state variables.
Return vectors by value instead of unique pointers to arrays.
Removed most of the test cases from test_fluidstate_variables.py
Removed also the initialization of the Blackoil simulator
.. and a print statement
Just commit a comment so we can rerun jenkins
53bf0a7
to
30a344b
Compare
Refer to #4950. I am not able to reproduce the jenkins failure on my own laptop, so I am creating a new PR here to debug that Jenkins build by bisection (removing and adding code from #4950 until the jenkins build succeeds).