tunneldigger
tunneldigger copied to clipboard
teardown script crashes tunneldigger-broker
Sometimes I am able to crash tunneldiger-brooker with the teardown script:
Sun Jun 11 09:02:54 2023 daemon.err python[4535]: [INFO/tunneldigger.hooks] Running hook 'session.pre-down' via script '/usr/lib/tunneldigger-broker/hooks/teardown'.
Sun Jun 11 09:02:57 2023 daemon.err python[4535]: [INFO/tunneldigger.broker] Creating tunnel (abcd) with id 104.
Sun Jun 11 09:02:57 2023 kern.info kernel: [317719.482982] do_page_fault(): sending SIGSEGV to python for invalid read access from 00000004
Sun Jun 11 09:02:57 2023 kern.info kernel: [317719.500022] epc = 77c2b455 in libpython3.11.so.1.0[77aba000+259000]
Sun Jun 11 09:02:57 2023 kern.info kernel: [317719.512813] ra = 77c2c16b in libpython3.11.so.1.0[77aba000+259000]
I just saw it with the setup as well:
Sat Jul 29 17:34:11 2023 daemon.err python[5681]: [INFO/tunneldigger.broker] Creating tunnel (b6:01:be:53:f0:d5:71:a2:3a:35) with id 102.
Sat Jul 29 17:34:11 2023 daemon.err python[5681]: [INFO/tunneldigger.tunnel] Set tunnel 102 MTU to 1446.
Sat Jul 29 17:34:11 2023 daemon.err python[5681]: [INFO/tunneldigger.hooks] Running hook 'session.up' via script '/usr/lib/tunneldigger-broker/hooks/setup'.
Sat Jul 29 17:34:11 2023 kern.info kernel: [ 2805.040635] do_page_fault(): sending SIGSEGV to python for invalid read access from 00000004
Sat Jul 29 17:34:11 2023 kern.info kernel: [ 2805.049178] epc = 77b52905 in libpython3.11.so.1.0[779e1000+259000]
Sat Jul 29 17:34:11 2023 kern.info kernel: [ 2805.055614] ra = 77b5361b in libpython3.11.so.1.0[779e1000+259000]
Update: I saw this problem with openwrt (and I think @PolynomialDivision did too judging from the style of the error messages). This was a problem for me on the ramips target, but on x86-64 (openwrt virtual machine) I am not able to repeat this problem. There may be a problem with cross-compiling python onto some architectures. I will post an issue at openwrt.
I did some more debugging, and reported it in https://github.com/openwrt/packages/issues/21764. Does anyone here maybe have an idea about what's going on?
Is there any chance that anyone can help me debug this problem? If a test-setup is needed, I can help organize that. Any help or suggestions are appreciated.
https://github.com/python/cpython/issues/111629 is the associated upstream issue.