openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] pyilmbase - Iex_2_2::InvalidFpOpExc crash


From: Michał Frątczak
Subject: [Openexr-devel] pyilmbase - Iex_2_2::InvalidFpOpExc crash
Date: Mon, 10 Oct 2016 16:34:18 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

So I managed to build pyilmbase (CentOS 6.5 + Red Hat DTS 2.1 (g++ v4.8.2)), and I run tests from file pyImathTest.py

All of them pass except for testFpExceptions() which crashes with following error:

terminate called after throwing an instance of 'Iex_2_2::InvalidFpOpExc'
  what():  Invalid floating-point operation.
Aborted (core dumped)


The crash happend on line 8038:

    f = sqrt (-1)

It will pass if I remove preceding code fragment, starting at line 8023:

    # The overflow exception is not masked properly on Windows -- see
    # Platform/PlatformFpu.cpp and note the non-implementation of
    # setFpExceptions().
    #
    if sys.platform != 'win32' and sys.platform != 'darwin':
        try:
            v = V3d (1e200, 1e200, 1e200)
            v = v * v * v
            print v
        except iex.MathExc:
            pass
        else:
            assert 0


Is this smth I should worry about? Any hints appreciated.


thanks,

-michal


reply via email to

[Prev in Thread] Current Thread [Next in Thread]