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: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Segmentation fault at neighbor access
  • Date: Fri, 7 Apr 2017 08:58:03 -0700
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:Xz2AyxLq/0eXC0TaG9mcpTZWNBhigK39O0sv0rFitYgRI/rxwZ3uMQTl6Ol3ixeRBMOAuq4C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwpFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhyUJNzA5/m/ZidF+grxHrx+6vRNz35TZbZuJOPZifK7Qe84RS2pbXsZWUixMGp6ybosLD+ofJ+lYro/9rEYUoxu/AgmsAv7kxzhQhn/32q061f4tERrG3QwkAdIBqnXUrNPuOacdVOC61qjIzTHZY/xK3jf97ZHFfxY8qv+CWrJwdNDeyUgpFw7dj1WQr5blPzKP2egXvWib9extXv+shW4/swx8oDeiyt0xhoXXho8Z0FPJ+TtjzIs6KtC1TlNwb8S+H5tKrS6aMpN7QsM8TGFsvyY30rgGtoS6fCgO0ZgmyRvfZ+Cef4iG7R/uW/ydITh/hHJid7K/gwi9/VK8xe37U8m4yFdKrixbndnQrn0A1RPe5tKaRvdj/kqtwzWC2x7J5uxLLk04ja/bJIQgwr40mJoTq0PDHirulUXuja+WcUMk9vKz6+XnZrXmuIWTN45yigzlPaQun9awAeU8MgQUQ2eb/uG82KX5/ULlWLVKkuE2kq7BvZ/GKsQUvKq5DxZI3YYi8BawEyqm0M8DnXQcN1JEeBeHj5DzNF3UIfD4C+2/g1W2nztxyfDGJO6pP5PWM3KWkKv9Za0vrAlH2Q8rxJZe4YhVA/cPOrXoS0rpvZvZCBE+dAe7yuKiBNRm3Z4FQjGzBfqSP6rW9FOJ/ekyOPKkZYkPuT+7JeJ2yeTpiCoCiFsDdKivlaMWb3bwSuxnJEPfemvonN4AF08FuwM/SKrhj1jUAm0bXGq7Q69pvmJzM4mhF4qWHo0=

Did you check that triangulation_.dimension() == 3 ?

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

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    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






Archive powered by MHonArc 2.6.18.

Top of Page