Wt 4.0.0-rc1 examples segfault on Alpine
All of the examples that I have tried to run using Wt 4.0.0-rc1 on Alpine 3.6 segfault on HTTP request. I have attached a Dockerfile that reproduces the problem. To build an image:
docker build -t wt-segfault -f Dockerfile-segfault .
docker run --rm --name wt-segfault -p 8080:8080 wt-segfault
And then navigate to
http://localhost:8080 in your favourite browser. This crashes the app. The default example in this image is
auth2. If you'd like to overwrite that, it can be done using
--entrypoint option of
docker run. I have also tried to debug the app but I can't immediately see what's going on. You can easily debug the app using this image creating an interactive and privileged container, e.g.
docker run -it --privileged --name wt-segfault-debug -p 8080:8080 and then installing
apk add --no-cache gdb).