Hello,
On current master (commit 5dcdccedec20b6fcb6a7f686cd6f91704c2e5e91
) I encounter a segmentation fault when trying to plot a DirichletBC object
(backtrace at the end).
It seems that this happens after the following commit:
commit 2896afc40814b497c5b07135adc1e39b2e547a9f
Fix some issues picked up by static scan, including memory leak in
plotting.
by reverting it there is no SIGSEGV.
With a quick look at this commit I can see that inside
VTKPlottableDirichletBC.cpp and VTKPlottableGenericFunction.cpp some
references to "_function" have been replaced with references to
"_function.lock()" but I cannot find any declaration of such a method in the
GenericFunction interface or elsewhere.
Is it safe to just change the "_function.lock()" references back to
"_function" and keep the rest of the patch as it is?
Thanks,
Emmanouil Maroudas
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
dolfin::VTKPlottableGenericFunction::value_rank (this=this@entry=0xfba240) at
/opt/Work/FEniCS/src/dolfin/dolfin/plot/VTKPlottableGenericFunction.cpp:66
66 return _function.lock()->value_rank();
(gdb) bt
#0 dolfin::VTKPlottableGenericFunction::value_rank (this=this@entry=0xfba240)
at /opt/Work/FEniCS/src/dolfin/dolfin/plot/VTKPlottableGenericFunction.cpp:66
#1 0x00007ffff1865ea8 in
dolfin::VTKPlottableGenericFunction::modify_user_parameters (this=0xfba240,
p=...)
at /opt/Work/FEniCS/src/dolfin/dolfin/plot/VTKPlottableGenericFunction.h:72
#2 0x00007ffff1871b25 in dolfin::VTKPlotter::init (this=this@entry=0x13540c0)
at
/opt/Work/FEniCS/src/dolfin/dolfin/plot/VTKPlotter.cpp:257
#3 0x00007ffff1874229 in dolfin::VTKPlotter::plot (this=0x13540c0,
variable=...)
at /opt/Work/FEniCS/src/dolfin/dolfin/plot/VTKPlotter.cpp:151
#4 0x00007ffff186a4a2 in plot_object (obj=..., p=..., key=...) at
/opt/Work/FEniCS/src/dolfin/dolfin/plot/plot.cpp:93
#5 0x00007ffff186a7e3 in dolfin::plot (var=..., p=...) at
/opt/Work/FEniCS/src/dolfin/dolfin/plot/plot.cpp:137
...
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics