I am developing a handler module for OpenLiteSpeed. As soon as I mark the module for multithreaded operation via LSI_HDLR_DEFAULT_POOL, crashes occur.
To isolate the issue, I have followed the instructions in the Module Developer's Guide v 0.6 and have compiled the (multithreaded, very simple) mthello.c example. This module hangs when accessed as a handler.
Steps to reproduce:
1. The Base system is Ubuntu 20.04 LTS.
2. OpenLiteSpeed 1.7.17 is installed from repository.
3. Compile mthello.c using the commands given in the Module Developer's Guide.
4. Copy the mthello.so file over to the server modules directory.
5. Add the module in the Server Configuration.
6. Add a module handler context with path /hello and module mthello to the Example virtual host.
7. Point a browser to the Example host and path /hello.
The browser hangs at this point. The server error log shows the following:
Can anyone provide some hint on what is going on here?
Thanks a lot!