[Bugzilla user: smn@nebelhauch.de]
[Bugzilla date: 2020-08-03T13:14:44+00:00]
Python script below:
# segfault example
import orthanc
def OnRest(output, uri, **request):
orthanc.LogWarning("REST call on {uri}".format(uri = uri))
output.AnswerBuffer('Ok\n', 'text/plain')
orthanc.RegisterRestCallback('/worklist/add', OnRest)
# end example
curl (invoked on Windows from cmd.exe):
> curl http://192.168.100.10:8091/worklist/add?name=Schr%F6der
Result: Orthanc segfaults before the LogWarning line is reached.
The corresponding dmesg entry for the segfault is:
[34308133.217406] Orthanc[17277]: segfault at 0 ip 00007f9bfa810bac sp 00007f9bd8ff3ae0 error 6 in libpython3.7m.so.1.0[7f9bfa63c000+22c000]
If it helps to reproduce: I'm running Orthanc in a docker container via an image derived from the official orthanc-plugins docker image. If required I can also supply the Dockerfile used. |