This sounds like AI slop without real knowledge or information. Please
don't just dump the output of AI as an answer.
Mark
On 19/02/2026 09:28, marius adrian popa wrote:
> The error code |-3| from the Libtommath library, as seen in the function
> call |mp_mod|, typically corresponds to an *Out of Memory* error,
> denoted by the constant |MP_MEM|.
>
> The stack trace in the email indicates the error is occurring during
> user creation (|create user SYSDBA...|) within the Secure Remote
> Password (SRP) authentication mechanism in Firebird. The specific
> function call is deep within the SRP module, which uses |Libtommath| for
> cryptographic operations.
>
> Here are the most likely causes and suggested solutions:
>
> * *Out of Memory (|MP_MEM|):* The cryptographic operation in |mp_mod|
> requires temporary memory allocation. The |-3| error code suggests
> this allocation failed.
> o *Solution:* Given the intermittent nature of the error (90%
> probability), this could be due to memory fragmentation or a
> temporary lack of available memory in the build environment,
> particularly when the process is running. Ensure your system has
> sufficient RAM and that no other memory-intensive processes are
> running during the test.
> * *Build/Configuration Issue with Clang on Windows:* The original
> email notes that the error does not occur under Linux. This suggests
> the issue is specific to the CMake/Clang/Windows build configuration.
> o *Solution:* Since the error is specific to your custom build,
> consider testing with an official or verified build environment
> to confirm if the issue is with the Firebird source or your
> local build process.
> * *Bug in Firebird's SRP implementation:* The error occurs in the |
> Auth::RemotePassword::RemotePassword()| constructor, which means the
> issue is within the code that initializes the SRP module.
--
Mark Rotteveel