Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Segmentation fault at neighbor access

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Segmentation fault at neighbor access


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Segmentation fault at neighbor access
  • Date: Wed, 7 Jun 2017 08:06:49 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:9ZS6vxWFb/tWVLsN8XAKXMnpMVDV8LGtZVwlr6E/grcLSJyIuqrYbRGGt8tkgFKBZ4jH8fUM07OQ6PG/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdwIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KhsVBLlhiUKOjAg/G3LhcF7kaZXrRK9qxB6xYPffYObO+dkfq7FYN0UW2RBUMZWVyJCDI2zYYQAAOgdMuhXtIT9u1kDoAGiCQWwCu7iyDlFjWL2060g1OQhFBnL0AI9Ed0Qq3vbts71NLsTUe+ryqnD0DPNb/RM2Tf874jIbg0qrfWNU71udsrRzFcgFx/fjlSQqYLqJS+a1vgKs2iB7+tsUOyjgHMgpgFqpjivwd0siojOhoIJ0FzE8CF5zZ06Jd29UkF7YNqkHIFMuCGdMot7W8UvSHxmtiY9z70Jo5+7fC4SxZQ72h7fZOaHfJKJ4x75TumRPS90hHNjeLKlhha961KsyuPmVsSyzV1ErTJFn8HSunwR0xHf8MuKR/tn8ku8xzqC1Brf5vxHLEwpjabWKZ0szqQumpccsEnPBDL6lUH4gaOMdEgp+u6l4Pn9bLr8vJ+TLYp0hxn+Mqswnsy/Bvw1Mg0UUGia/eSwzbPi/VflTLlTgP06j6rUvI3AKcQUoa65BABV0oI95BqlEzim19EYkWEGLFJDZh2Hk5DkN0/SLP38F/uygFShnC12y/zYPbDtGIjBI3venLv5eLZy8U9cyA49zdBF4JJUD6kMIOn3Wk/2rtzYDxg5MxCuz+biDNVwzYweWWeVDa+YNKPeq0OH5uUqI+WUfo8apC79K+Q55/7plXI2hVAdcrOt3ZcOdX+4H+9mLFmEYXr3mdcMCnwKvwo7TOzyklKOSz9TZ3CoX6I9/D43EoymDZ2QDr2rm6GLiSenAoVNNCcBEUGJCX6udoOeWv5KZjjVOd5kijVDVL6vTMgq2hiq8QP70LF6NfGHxipNvp3q0J155vbYiAop3T1yFcWUlW+XHE9umWZdDQQ71qlkvU1wzB+n1rJ5hOAQVfNe4PZETh0rG5fX0+tgGpG4ElbaetCTSVG6BNCiKT40R9M1hdQJZhAuSJ2Zkhnf0n/yUPcunLuRCclpqq8=
  • Organization: GeometryFactory

Did you modify the triangulation since the time the cell handle was saved?

Sebastien.

On 06/06/2017 02:47 PM, Thomas Holzmann wrote:
I want to reopen this thread again, as I still have the same issue.

Yes, my triangulation is valid and has dimension 3.

Does someone has another hint?

Thomas


On 04/07/2017 05:58 PM, Sylvain Pion wrote:
Did you check that triangulation_.dimension() == 3 ?

2017-04-07 9:27 GMT+02:00 Andreas Fabri
<
<mailto:>>:


Did you check that the triangulation as a whole is valid?

andreas


On 07/04/2017 09:03, Thomas Holzmann wrote:

Hi,

I get a weird segmentation fault and I really don't know why.
Here is my
code:

if (triangulation_.is_valid(currCell))
{
for (int k = 0; k < 4; k++)
cellsToProcess.push(currCell->neighbor(k)); // when
accessing
neighbor -> segfault
}

where triangulation_ is a

CGAL::Triangulation_3<CGAL::Exact_predicates_exact_constructions_kernel,
Tds_info>. and currCell is a Cell_handle.

I'm checking the validity of currCell, so the neighbors should
exist,
right?

Does someone have an idea why that could happen or how to
check the
validity of the neighbors before accessing it in another way?

Thomas



--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912 <tel:%2B33.492.954.912> skype:
andreas.fabri


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
<https://sympa.inria.fr/sympa/info/cgal-discuss>




--
====================================================
Dipl.-Ing. Thomas Holzmann
TU Graz - Institut fuer Maschinelles Sehen und Darstellen
Graz University of Technology - Institute for Computer Graphics & Vision
Inffeldgasse 16/II, 8010 Graz, Austria

http://www.icg.tugraz.at/
phone: +43 316 873 5091
====================================================





Archive powered by MHonArc 2.6.18.

Top of Page