SCM

[#1915] geometry segfaults during tests

Date:
2012-03-30 14:33
Priority:
3
State:
Closed
Submitted by:
David Sterratt (dcs)
Assigned to:
David Sterratt (dcs)
Hardware:
None
Product:
None
Operating System:
None
Component:
None
Version:
None
Severity:
blocker
Resolution:
Fixed
URL:
Summary:
geometry segfaults during tests

Detailed description
The geometry package was not available on R-forge because it was failing to build.
It segfaulted during its checks.

Running
R CMD check
and then
R -d "valgrind --tool=memcheck --leak-check=full" --vanilla < geometry.Rcheck/geometry-Ex.R
revealed a memory leak.

This was because neither the Qt or QJ option had been passed to qh_new_qhull() in Rdelaunayn.c. This meant that on regular structures, qhull sometimes returned non-triangulated facets, with the wrong number (i.e. not one more than the number of dimensions) of vertices.

This has been fixed by ensuring (in delaunayn.R) that at least one of the Qt or QJ options are passed. There is also error-detecting code in Rdelaunayn.c.

Comments:

No Comments Have Been Posted

Attached Files:

Changes

Field Old Value Date By
status_idOpen2012-04-18 16:17dcs
close_dateNone2012-04-18 16:17dcs
Thanks to:
Vienna University of Economics and Business Powered By FusionForge