Closed blattms closed 6 years ago
Hmmm - not good. Will fix
With the full path I get:
Thread 1 "flow" hit Breakpoint 2, ecl_sum_set_case (ecl_sum=ecl_sum@entry=0x55555829fc70, input_arg=input_arg@entry=0x55555829ea50 "/home/mblatt/src/dune/opm/opm-data/spe1/SPE1CASE2") at /home/mblatt/src/dune/opm-release-6/libecl/lib/ecl/ecl_sum.cpp:138
138 ecl_sum->ecl_case = util_alloc_filename( path, base, NULL );
(gdb) p base
$9 = 0x0
(gdb) p path
$10 = 0x55555829d260 "/home/mblatt/src/dune/opm/opm-data/spe1/SPE1CASE2"
(gdb) p input_arg
$11 = 0x55555829ea50 "/home/mblatt/src/dune/opm/opm-data/spe1/SPE1CASE2"
(gdb)
Just a question; are you doing something you have not done before in your testing? Because this code is really old - has not changed recently and "works for me"?
No, not that I know of. This is a clean checkout and build of the release branches. I get a crash for the optimized. With debugging everything runs through, but when run under valgrind I see an invalid read.
No, not that I know of. This is a clean checkout build of the release branches. I get a crash for the optimized. With debugging everything runs through, but when run under valgrind I see an invalid read.
OK - thank you. Extremely weird - but have not seen this during development previously?
Question about your local fs:
is_directory("/home/mblatt/src/dune/opm/opm-data/spe1/SPE1CASE2") ??
Going offline for ~2hours, will followup when I get back.
Indeed that is a directory if I rename it it works. Not sure how I produced that one (in February).
Ok - then I understand what happened. Will fix
I'll probably merge and backport this: https://github.com/Statoil/libecl/pull/497 tomorrow. Thank you for the input.
I am experiencing segmentatio faults that seem to be caused in libecl when testing the 2018.10 release of OPM. The problem is in
ecl_sum_set_case
with input_arg being./SPE1CASE1
for whatever reason the base variable is null after the call toutil_alloc_file_components
but this nullptr is passed to strlen inside of the call toutil_alloc_filename
.Here is an excerpt of my gdb session: