You are not logged in.
Pages: 1
Linux daemon raise exception on stop (systemctl stop ..)
EXCOS EAccessViolation (9df7d740) [Main] at 442bec ../../src/core/mormot.core.os.posix.inc (3183)
./myapp --start # is OK
./myapp --stop # raise same exception
./myapp --c # console is OK
Offline
The Info value is a pointer directly returned by the system, so if Info <> nil then Info^.si_code should never GPF, as it is documented:
si_signo, si_errno and si_code are defined for all signals.
https://www.man7.org/linux/man-pages/ma … ion.2.html
Are you sure you are not using another unit from the FPC RTL which is already playing with the signals (e.g. the crt unit)?
Can you provide a minimalistic realistic example?
Offline
Update:
Please try with
https://github.com/synopse/mORMot2/commit/ebb6c230
Offline
Thanks @ab, problem solved with last changes, no more exception.
Problem is connected to firebird client lib, when aFbProps.Free; in Stop, (aFbProps: TSqlDBIbxConnectionProperties). When I remove aFbProps from app, no exception is raised!
Same code on Windows as console or service, or Linux console don't rise any exception, only as daemon forked/process.
Offline
Pages: 1