Project

General

Profile

Actions

Bug #5808

open

Wt 4.0.0-rc1 examples segfault on Alpine

Added by Krzysztof Woś over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/13/2017
Due date:
% Done:

0%

Estimated time:

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

Dockerfile-segfault (444 Bytes) Dockerfile-segfault Krzysztof Woś, 07/13/2017 07:11 PM
Actions #1

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.

Actions

Also available in: Atom PDF