PurpleI2P / i2pd

🛡 I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website
BSD 3-Clause "New" or "Revised" License
3.22k stars 418 forks source link

Segfaults just after launching, when UPnP is enabled, and only after upgrading to v`2.45.0`. #1837

Closed Supermath101 closed 1 year ago

Supermath101 commented 1 year ago

I'm running I2Pd v2.45.0 within Toolbx and with a host OS of Fedora Kinoite. I have UPnP enabled in my i2pd.conf, and it segfaults during the initialization of UPnP. If I disable UPnP, it seems to work fine. Here's relevant portion of the console output:

21:06:42@998/error - UPnP: Found Internet Gateway Device http://192.168.1.1:1931/wanIpConn
21:06:42@998/debug - UPnP: ExternalIPAddress is [REDACTED]
21:06:42@998/debug - UPnP: Port 29357 is possibly not forwarded: return code -2
21:06:42@998/info - UPnP: Port successfully forwarded ([REDACTED]:29357 type TCP -> 192.168.1.244:29357)
Segmentation fault (core dumped)

Also, this only happens after I upgraded from v2.44.0 to v2.45.0.

kleenexi2p commented 1 year ago

I have already fixed that issue yesterday with https://github.com/PurpleI2P/i2pd/pull/1835. Did you download the source tarball directly from the releases page? They re-released the binaries but since it's not possible to update the source archives that github adds to your release, the bug stayed in 2.45.zip/tar.gz. I recommend building from git directly for now, if there isn't a binary for your OS on the releases page.

kleenexi2p commented 1 year ago

https://copr.fedorainfracloud.org/coprs/supervillain/i2pd/package/i2pd-git/ Seems like there already is a -git package. You should install that.

r4sas commented 1 year ago

Closing as fixed in trunk.