Behavior difference between a console application and an apache module in Linux - Delphi

0

I have an application (Delphi Tokyo update 1) running on Windows (32 and 64 bit) and now I'm adjusting it to work on Linux too. Unfortunately I came across an error that I do not know how to get around.

The function Log2 (in unit System.Math) returns an invalid floating-point operation for any input value greater than 1. More precisely, the Ln function (in the unit system) that uses the log function of the lim.so module returns this error (TFloatSpecial.fsNaN, feeINVALID).

The strange thing is that the error occurs only inside an Apache module. If I run in a console application the function runs correctly. In Windows the function works in any case (either console or Apache).

So my question: what's the difference between these builds (console and Apache module) that could be causing this problem? Would there be any way around this problem until I get a response from Embarcadero support?

I've taken the chance of using a hook to change the code at runtime but I'm too new to Linux to do so.

    
asked by anonymous 12.02.2018 / 13:30

0 answers