Segmentation faults in sessions
|Reported by:||sdecugis||Owned by:||sdecugis|
It occurs more than often that a call to fd_sess_destroy is made while some references still exist to the session object, for example in some messages.
A more strict management of a reference counter must be maintained for the sessions, taking care of:
- messages that reference the session
- states in the session
In particular, on session expiration, the states can be destroyed but not the session itself if it is referenced by some messages in memory.
An update of the API is expected to fix this issue.