tunneldigger icon indicating copy to clipboard operation
tunneldigger copied to clipboard

teardown script crashes tunneldigger-broker

Open PolynomialDivision opened this issue 1 year ago • 5 comments

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]

PolynomialDivision avatar Jun 11 '23 09:06 PolynomialDivision

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]

pmelange avatar Jul 29 '23 17:07 pmelange

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.

pmelange avatar Aug 08 '23 09:08 pmelange

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?

pmelange avatar Aug 20 '23 16:08 pmelange

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.

pmelange avatar Sep 06 '23 07:09 pmelange

https://github.com/python/cpython/issues/111629 is the associated upstream issue.

pmelange avatar Nov 06 '23 11:11 pmelange