alicevision / geogram

Git mirror of the geogram library by INRIA
https://github.com/BrunoLevy/geogram
BSD 3-Clause "New" or "Revised" License
123 stars 54 forks source link

UBSAN shows error in in_sphere_3d_filter_avx2 #15

Closed vfonov closed 2 years ago

vfonov commented 4 years ago

Running a program compiler with UBSAN , shows an error in in_sphere_3d_filter_avx2 when compiled with -mavx2 flag:

runtime error: store to address 0x7fffffffb790 with insufficient space for an object of type 'double' 0x7fffffffb790: note: pointer points 

in geogram version 1.6.8 , it's because in src/lib/geogram/numerics/predicates.cpp:362 , the function _mm_store_pd1 is trying to store two double values into epsval , see https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm_store_pd1&expand=5586

simogasp commented 2 years ago

please report to the official repository https://github.com/BrunoLevy/geogram