Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teardown script crashes tunneldigger-broker #169

Open
PolynomialDivision opened this issue Jun 11, 2023 · 5 comments
Open

teardown script crashes tunneldigger-broker #169

PolynomialDivision opened this issue Jun 11, 2023 · 5 comments

Comments

@PolynomialDivision
Copy link

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]
@pmelange
Copy link
Contributor

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
Copy link
Contributor

pmelange commented Aug 8, 2023

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
Copy link
Contributor

I did some more debugging, and reported it in openwrt/packages#21764. Does anyone here maybe have an idea about what's going on?

@pmelange
Copy link
Contributor

pmelange commented Sep 6, 2023

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
Copy link
Contributor

pmelange commented Nov 6, 2023

python/cpython#111629 is the associated upstream issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants