Bug#1012843: i2pd: Default install SEGV

2022-12-25 Thread piorunz
(I tried to send this report from Reportbug but that seem to have 
failed, so resending as e-mail).


Similar behaviour has been identified in Debian Stable. i2pd is broken 
and does not start anymore.


$ sudo systemctl status i2pd
● i2pd.service - I2P Router written in C++
 Loaded: loaded (/lib/systemd/system/i2pd.service; enabled; vendor 
preset: enabled)
 Active: failed (Result: signal) since Sun 2022-12-25 17:29:27 GMT; 
1h 6min ago

   Docs: man:i2pd(1)
 https://i2pd.readthedocs.io/en/latest/
Process: 106822 ExecStart=/usr/sbin/i2pd $DAEMON_OPTS (code=exited, 
status=0/SUCCESS)

   Main PID: 106823 (code=killed, signal=SEGV)
CPU: 426ms

Dec 25 17:29:13 x systemd[1]: Starting I2P Router written in C++...
Dec 25 17:29:13 x systemd[1]: Started I2P Router written in C++.
Dec 25 17:29:27 x systemd[1]: i2pd.service: Main process exited, 
code=killed, status=11/SEGV

Dec 25 17:29:27 x systemd[1]: i2pd.service: Failed with result 'signal'.

Restarting the service does not help.

 sudo coredumpctl list | grep i2pd
Sun 2022-11-06 23:15:37 GMT1628   128   133  11 missing   /usr/sbin/i2pd
Mon 2022-11-14 02:04:27 GMT1611   128   133  11 missing   /usr/sbin/i2pd
Sat 2022-12-24 03:37:30 GMT1675   128   133  11 present   /usr/sbin/i2pd
Sun 2022-12-25 17:29:27 GMT  106823   128   133  11 present   /usr/sbin/i2pd

 sudo coredumpctl gdb 106823
   PID: 106823 (i2pd)
   UID: 128 (i2pd)
   GID: 133 (i2pd)
Signal: 11 (SEGV)
 Timestamp: Sun 2022-12-25 17:29:26 GMT (1h 7min ago)
  Command Line: /usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf 
--tunconf=/etc/i2pd/tunnels.conf --tunnelsdir=/etc/i2pd/tunnels.conf.d 
--pidfile=/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon 
--service

Executable: /usr/sbin/i2pd
 Control Group: /system.slice/i2pd.service
  Unit: i2pd.service
 Slice: system.slice
   Boot ID: a4275715832840bb82f50a4d1216e028
Machine ID: 66f054f85acd4f7b9d2f07ff9b88ad15
  Hostname: x
   Storage: 
/var/lib/systemd/coredump/core.i2pd.128.a4275715832840bb82f50a4d1216e028.106823.167198936600.zst

   Message: Process 106823 (i2pd) of user 128 dumped core.

Stack trace of thread 106825:
#0  0x55bbf92d4fd4 
_ZN3i2p4data10RouterInfo14ReadFromStreamERSi (i2pd + 0x25ffd4)
#1  0x55bbf92d62f7 
_ZN3i2p4data10RouterInfo14ReadFromBufferEb (i2pd + 0x2612f7)
#2  0x55bbf92d6888 _ZN3i2p4data10RouterInfoC2EPKhi 
(i2pd + 0x261888)
#3  0x55bbf929d059 
_ZN3i2p4data5NetDb13AddRouterInfoERKNS0_3TagILm32EEEPKhiRb (i2pd + 0x228059)
#4  0x55bbf929e035 
_ZN3i2p4data5NetDb13AddRouterInfoERKNS0_3TagILm32EEEPKhi (i2pd + 0x229035)
#5  0x55bbf929e4e2 
_ZN3i2p4data5NetDb22HandleDatabaseStoreMsgESt10shared_ptrIKNS_11I2NPMessageEE 
(i2pd + 0x2294e2)
#6  0x55bbf929f8b9 _ZN3i2p4data5NetDb3RunEv (i2pd + 
0x22a8b9)

#7  0x7efec8fe9ed0 n/a (libstdc++.so.6 + 0xceed0)
#8  0x7efec8ee6ea7 start_thread (libpthread.so.0 + 
0x7ea7)

#9  0x7efec8e06a2f __clone (libc.so.6 + 0xfca2f)

Stack trace of thread 106829:
#0  0x7efec8e06d56 epoll_wait (libc.so.6 + 0xfcd56)
#1  0x55bbf91d63d8 
_ZN5boost4asio6detail13epoll_reactor3runElRNS1_8op_queueINS1_19scheduler_operationEEE 
(i2pd + 0x1613d8)
#2  0x55bbf91d9b3b 
_ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (i2pd + 
0x164b3b)
#3  0x55bbf936defd 
_ZN3i2p9transport9SSUServer12RunReceiversEv (i2pd + 0x2f8efd)

#4  0x7efec8fe9ed0 n/a (libstdc++.so.6 + 0xceed0)
#5  0x7efec8ee6ea7 start_thread (libpthread.so.0 + 
0x7ea7)

#6  0x7efec8e06a2f __clone (libc.so.6 + 0xfca2f)

Stack trace of thread 106826:
#0  0x7efec8eed7b2 futex_wait_cancelable 
(libpthread.so.0 + 0xe7b2)
#1  0x7efec8fe490c 
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE 
(libstdc++.so.6 + 0xc990c)
#2  0x55bbf92ffb0f 
_ZN3i2p9transport21EphemeralKeysSupplierINS_6crypto10X25519KeysEE3RunEv 
(i2pd + 0x28ab0f)

#3  0x7efec8fe9ed0 n/a (libstdc++.so.6 + 0xceed0)
#4  0x7efec8ee6ea7 start_thread (libpthread.so.0 + 
0x7ea7)

#5  0x7efec8e06a2f __clone (libc.so.6 + 0xfca2f)

Stack trace of thread 106827:
#0  0x7efec8e06d56 epoll_wait (libc.so.6 + 0xfcd56)
#1  0x55bbf91d63d8 
_ZN5boost4asio6detail13epoll_reactor3runElRNS1_8op_queueINS1_19scheduler_operationEEE 
(i2pd + 0x1613d8)
#2  0x55bbf91d9b3b 
_ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (i2pd + 
0x164b3b)
#3  0x55bbf92f6d8d 

Bug#1012843: i2pd: Default install SEGV

2022-06-15 Thread Erik de Castro Lopo
Package: i2pd
Version: 2.41.0-1+b1
Severity: important

Dear Maintainer,

* Installed i2pd.
* `systemctl status i2pd` reports:
× i2pd.service - I2P Router written in C++
 Loaded: loaded (/lib/systemd/system/i2pd.service; enabled; vendor 
preset: enabled)
 Active: failed (Result: signal) since Wed 2022-06-15 21:25:17 AEST; 
1min 51s ago
   Docs: man:i2pd(1)
 https://i2pd.readthedocs.io/en/latest/
Process: 23181 ExecStart=/usr/sbin/i2pd $DAEMON_OPTS (code=killed, 
signal=SEGV)
CPU: 72ms

Jun 15 21:25:14 ada systemd[1]: Starting I2P Router written in C++...
Jun 15 21:25:14 ada systemd[1]: i2pd.service: Control process exited, 
code=killed, status=11/SEGV
Jun 15 21:25:17 ada systemd[1]: i2pd.service: Failed with result 'signal'.
Jun 15 21:25:17 ada systemd[1]: Failed to start I2P Router written in C++.

* `systemctl restart i2pd` has the same issue.

* I expect it to run out of the box (especially not SEGV).


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages i2pd depends on:
ii  adduser 3.121
ii  init-system-helpers 1.63
ii  libboost-filesystem1.74.0   1.74.0-16
ii  libboost-program-options1.74.0  1.74.0-16
ii  libc6   2.33-7
ii  libgcc-s1   12.1.0-2
ii  libminiupnpc17  2.2.3-1+b1
ii  libssl3 3.0.3-7
ii  libstdc++6  12.1.0-2
ii  lsb-base11.2
ii  zlib1g  1:1.2.11.dfsg-4

i2pd recommends no packages.

i2pd suggests no packages.

-- no debconf information