Bug #5808
openWt 4.0.0-rc1 examples segfault on Alpine
0%
Description
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 .
To run:
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 gdb
(apk add --no-cache gdb
).
Files
Updated by Roel Standaert over 6 years ago
It appears to have something to do with the skeletons::Wt_xml1
symbol. When processing this XML, it segfaults. Interestingly though, when I made a build with -DCMAKE_BUILD_TYPE=Release
it worked fine.