Debian Codegraph @

bugs/issue-c27b6579bbf507787146bd88e1b2c4f998a9ea07.yaml

raw symbols SCIP
1 --- !ditz.rubyforge.org,2008-03-06/issue
2 title: Check on p4est_complete_subtree
3 desc: |-
4 I've added a branch fix-complete-subtree that introduces a program
5 test/p4est_test_complete_subtree. It crashes for me on 2 processes.
6 Basically I'm calling complete_subtree with an array that is one quadrant
7 and would expect it to fill the range between first_desc and last_desc in
8 the coarsest possible way, including that quadrant.
9
10 I also have a proposed fix in 0211af53fc429d0deb586c761d4b5e09acc62fdf
11 that I'm not triggering with this version of the test, but it should be
12 possible to reproduce the assertion child_id != 0 without the fix.
13 But then the fix leaves the following question: if I replace a quadrant
14 by its sibling with child id 0, I may be moving it before first_desc,
15 thus creating a quadrant that is invalid for that tree. Is this issue
16 being considered?
17
18 It is also possible that the crash in the test is not complete_subtree's
19 fault but goes back to find_higher_bound; at least worth checking.
20
21 I'm also suggesting to expand the docs on complete_subtree to clarify
22 what legal input data looks like (the p4est need not be valid),
23 especially regarding the level statistics in the tree.
24 type: :bugfix
25 component: p4est
26 release:
27 reporter: Carsten Burstedde <[email protected]>
28 status: :closed
29 disposition: :fixed
30 creation_time: 2016-02-03 10:48:13.169545 Z
31 references: []
32
33 id: c27b6579bbf507787146bd88e1b2c4f998a9ea07
34 log_events:
35 - - 2016-02-03 10:48:14.465530 Z
36 - Carsten Burstedde <[email protected]>
37 - created
38 - ""
39 - - 2016-02-04 15:58:59.711115 Z
40 - Tobin Isaac <[email protected]>
41 - closed with disposition fixed
42 - Carsten was right, the new algorithm had assumptions that were only correct for input arrays that were already complete; there was also some buggy usage of memmove() and the counters were not properly updated when used from completion.