python3 possible cross compile problems
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @jefferyto
Environment: I had this issue on rampis/mt7621 (RB 750GR3) and @PolynomialDivision had a similar issue, but I don't know the arch. But when I went and made an x86-64 virtual machine, the problem was not reproducible.
Description:
I am opening this issue because of https://github.com/wlanslovenija/tunneldigger/issues/169
Here is the error message from @PolynomialDivision
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]
and here is the error message from me
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]
The package both of us were using is tunneldigger-broker from the openwrt-packages repo.
I am assuming there is a cross compiling issue here. The only reason that I assume this is because it works fine under x86-64. I do not know how best to test this. If I can help debug this any further, please let me know how.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tunneldigger-broker package in the openwrt-packages repository and compare its cross-compiled Python 3.11 build with the working x86-64 environment. Reproduce the SIGSEGV around the session.up and session.pre-down hooks, then inspect the referenced libpython3.11.so.1.0 failure. Done means identifying and resolving the issue on the affected architecture or architectures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, embedded-iot
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100