File: BUGS.md

package info (click to toggle)
gyoto 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,588 kB
  • sloc: cpp: 33,490; sh: 18,775; xml: 2,633; python: 1,424; makefile: 681; ansic: 314
file content (47 lines) | stat: -rw-r--r-- 2,122 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Known bugs affecting

This file is to list known bugs in Gyoto or its dependencies that
significantly affect Gyoto but are not easy to fix or workaround in
Gyoto.

## Boost.multiprecision 1.62.0 (other nearby versions presumably affected):

A bug makes multiprecision acos() never return in some
circumstances. This has caused gyoto hanging. As of writing, this is
fixed in the Boost development tree and worked around in the Debian
package for Gyoto. For further details and workarounds, see:
  - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844490
  - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=844495
  - https://svn.boost.org/trac/boost/ticket/12625

                        -- Thibaut Paumard, Thu Dec 08 2016.

## Clang/LLVM compiler (all versions), possibly other compilers:

Gyoto relies on proper delivery of SIGFPE when arithmetic errors occur
(division by zero, floating point overflows...). It does so by
enabling the right exceptions using feenableexcept from GNU fenv.h.

However, some compilers (clang/llvm, in particular) do not support
setting the floating-point environment and will happily optimize code
assuming that it is safe to divide by zero. We recommend staying away
from these compilers until this issue is fixed:
  - https://llvm.org/bugs/show_bug.cgi?id=23707
  - https://llvm.org/bugs/show_bug.cgi?id=8100

Alternatively, you may try to reconfigure Gyoto to not use fenv.h
and/or to not use any optimization: make clean ./configure
 --without-fenv CFLAGS="-g -O0" CXXFLAGS="-g -O0" make
and see whether it works better for you.

If you experience such spurious SIGFPE inside the Yorick plug-in, an
ugly workaround is to call gyoto.fedisableexcept() right before the
offending Gyoto call. If at all possible, consider recompiling Gyoto
as explained above.

Note that loading some plug-ins (e.g. the lorene plug-in) may change
or reset the default floating-point environment. This is the case if
the plug-in, or one of the libraries it links with, has been compiled
with optimizations such as -ffast-math or gfortran.

                        -- Thibaut Paumard, Thu Dec 08 2016.