i2pd icon indicating copy to clipboard operation
i2pd copied to clipboard

2.48.0, 2.49.0, 2.50 - Segmentation fault, I2PTunnel related (serving content via http) / I2PTunnel: Read error: End of file

Open diva-exchange opened this issue 1 year ago • 10 comments

Version: i2pd v2.48.0 Reproducable: yes.

Test setup: i2pd in a docker container together with a lighweight httpd server (like althttpd or darkhttpd). Http server is bound to :8080 within the container and chrooted - serving a single directory with a static html file and an image.

Here is a docker image to test it: https://hub.docker.com/layers/divax/i2p/current-i2p-tor/images/sha256-472c01bb5be8c2d72bb05eefb3441b9b138f18defb394e9828f446ba25690eed?context=explore

Here is the source code to build the docker image yourself: https://github.com/diva-exchange/i2p/tree/develop

How to produce the Segfault: send two or more consecutive HTTP GET requests via i2p to an i2pd http server.

Tunnel config to reproduce Segfault:

[http] type = http host = 127.0.0.1 port = 8080 keys = some-http-keys.dat hostoverride = localhost gzip = false

Remark: tested also with gzip=true.

Log: 2023-07-05T10:59:43.843647814Z [05/Jul/2023:10:59:43 +0000]@813/error - I2PTunnel: Read error: End of file 2023-07-05T10:59:43.922230548Z [05/Jul/2023:10:59:43 +0000]@813/error - I2PTunnel: Read error: End of file 2023-07-05T10:59:45.412103975Z Segmentation fault (core dumped)

diva-exchange avatar Jul 05 '23 11:07 diva-exchange