← Back to team overview

yade-users team mailing list archive

Re: [Question #700611]: TwoPhaseFlow - double free or corruption

 

Question #700611 on Yade changed:
https://answers.launchpad.net/yade/+question/700611

Luis Barbosa gave more information on the question:
Here is how I am running:

+ singularity run
/beegfs/common/singularity/yade/yade_debian_bookwarm_1.0.sif yadedaily
-j80 drain_importMatrixTriax7_10_c3.py


Here is the output:
double free or corruption (!prev)


############Interesting to note:################################

1.
I have used tcmalloc, as suggested here:
https://github.com/tensorflow/tensorflow/issues/6968
https://www.google.com/search?client=firefox-b-d&q=apt-get+install+google-perftools
https://riptutorial.com/tensorflow/example/13427/use-the-tcmalloc-allocator

But, it just gave me another output: "Core dumped"

2.
>From the TwoPhaseFlowEngine I played around to see where exactly the error happens and discovered that it is related to  unsat.invasion(), Invasion 1 or invasion 2 in the hpp file. In some scripts that I have double free or corruption (!prev), when I switch .isPhaseTrapped=False, than it worked, but in the script I provided above it still did not worked.

3.
Sometimes, I am getting the message, when using Yadedaily, but not for Yade.
<NOFILTER> :750 void yade::CGT::Network<Tesselation>::lineSolidPore(yade::CGT::Network<Tesselation>::CellHandle, int) [with Tesselation = yade::CGT::_Tesselation<yade::CGT::TriangulationTypes<yade::TwoPhaseVertexInfo, yade::TwoPhaseCellInfo> >; yade::CGT::Network<Tesselation>::CellHandle = CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_cell_base_3<CGAL::ERealHP<1>, CGAL::Triangulation_cell_base_with_info_3<yade::TwoPhaseCellInfo, CGAL::ERealHP<1>, CGAL::Regular_triangulation_cell_base_3<CGAL::ERealHP<1>, CGAL::Triangulation_cell_base_3<CGAL::ERealHP<1>, CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Alpha_shape_vertex_base_3<CGAL::ERealHP<1>, CGAL::Triangulation_vertex_base_with_info_3<yade::TwoPhaseVertexInfo, CGAL::ERealHP<1>, CGAL::Regular_triangulation_vertex_base_3<CGAL::ERealHP<1> > >, CGAL::Boolean_tag<false>, CGAL::Boolean_tag<false> >, CGAL::Alpha_shape_cell_base_3<CGAL::ERealHP<1>, CGAL::Triangulation_cell_base_with_info_3<yade::TwoPhaseCellInfo, CGAL::ERealHP<1>, CGAL::Regular_triangulation_cell_base_3<CGAL::ERealHP<1> > >, CGAL::Boolean_tag<false>, CGAL::Boolean_tag<false> >, CGAL::Sequential_tag> > >, CGAL::Hidden_points_memory_policy<CGAL::Boolean_tag<true> >, std::__cxx11::list<CGAL::Weighted_point_3<CGAL::ERealHP<1> >, std::allocator<CGAL::Weighted_point_3<CGAL::ERealHP<1> > > > > >, CGAL::Boolean_tag<false>, CGAL::Boolean_tag<false> >, CGAL::Default, CGAL::Default, CGAL::Default>, false>]: Unhandled switch case:3

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.