[Date Prev][Date Next]
(ITS#6993) Backend Connection problem
Full_Name: Yann Carre
OS: red hat 5 (64 bits)
Submission from: (NULL) (220.127.116.11)
I work on a specific Backend
I have provided in my back end a function to the bi_connection_init pointer.
This function adds a context needed in the operation backend function (search,
When several connections start up, my LDAP server crashes.
The crash arrives because the context is not created before the call to
The connection is provided to the application Backend before my Back end
I have checked it with the debugger and see that the thread with initialize the
connection is suspend before the backend connection_init. In another thread, the
search function is executed without any context attached to the connection.
This problem seems to be bring because the connection mutex is freed before the
calling of the Back end connection_init in the function connection_init
I have moved this mutex after the backend connection_init and it seems to work.
Would you confirm this analysis and take the correction in account?