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

Golang package reports "TLS segment is undersigned" after moving to Android Q beta #3619

Closed
sshawuk opened this issue Apr 3, 2019 · 9 comments
Labels
android-10 Issue happens on devices running Android 10 bug report Something is not working properly

Comments

@sshawuk
Copy link

sshawuk commented Apr 3, 2019

Problem description
After upgrading my phone to the Android Q beta the golang package fails to run in any capacity, returning instead the error "executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic".

Steps to reproduce
I assume any device running Android Q has this issue.

Expected behavior
For the go binary to launch as usual.

Additional information
Updatable packages: All packages up to date Subscribed repositories: https://dl.bintray.com/grimler/science-packages-21 science/stable https://dl.bintray.com/grimler/game-packages-21 games/stable https://termux.net stable/main https://termux.net stable/main System information: Linux localhost 4.4.172-g609a5898ce2c #1 SMP PREEMPT Wed Jan 30 02:26:46 UTC 2019 aarch64 Android Termux-packages arch: aarch64 Android version: Q Device manufacturer: Google Device model: Pixel 2 XL

@ghost
Copy link

ghost commented Apr 3, 2019

Termux is going to be totally broken on Android Q: termux/termux-app#1072


For now, it is officially supported on Android <= 9/Pie. Android Q brings "surprises" which likely end in complete reworking of entire Termux implementation.

@ghost ghost added bug report Something is not working properly android-10 Issue happens on devices running Android 10 labels Apr 3, 2019
@fornwall
Copy link
Member

fornwall commented Apr 3, 2019

This seems to be a go issue to be fixed in go 1.13: golang/go#29674

@fornwall
Copy link
Member

fornwall commented Apr 3, 2019

Termux is going to be totally broken on Android Q: termux/termux-app#1072

@xeffyr For now it will work on Android Q due to the app not specifying it as the target API level, so the new exec restriction does not apply to us yet. So most things should continue to work under Android Q (but it's mostly untested yet, so be ready for some rough edges).

@ghost
Copy link

ghost commented Apr 3, 2019

For now it will work on Android Q due to the app not specifying it as the target API level

I know. Just noted that on Q various problems may occur.
Though, it is nice if someone can test Termux on real device running Android Q and report found issues.

@sshawuk
Copy link
Author

sshawuk commented Apr 4, 2019

@fornwall Yeah. I discovered another app was failing on Android Q. They too had a dependency on Go which resulted in me getting this exact same error. They forked and replaced it with go 1.13 and everything is working perfectly again. I'm not too familiar with the termux package ecosystem. Is it likely that 1.13 will be ported to termux at some point?

@xeffyr So I'm running Termux daily on my Pixel 2 XL, with the Android Q Beta 2. I'd be very happy to share any issues as I come across them. That being said, I'm a fairly heavy user of Termux, and the only issue to date is this one relating to the go package. If there are specific things you think it would be beneficial to test, I'd be more than happy to give it a go.

@eliasnaur
Copy link

I believe this is a duplicate of golang/go#29674, which is fixed in Go tip (to become Go 1.13).

@fornwall
Copy link
Member

fornwall commented Apr 8, 2019

Is it likely that 1.13 will be ported to termux at some point?

@sshawuk Yes, soon after go 1.13 is released it will normally be available in Termux!

@NatoBoram
Copy link

Is there someone who can build that Go tip or something so we can use Go on Android Q? Perhaps there could be an unstable-repo or something to not conflict with an actual Go release

@fornwall
Copy link
Member

fornwall commented Sep 4, 2019

This should now have been fixed, as all go packages has been updated and built with go 1.13.

Let us know if any issue remain!

@fornwall fornwall closed this as completed Sep 4, 2019
amuramatsu pushed a commit to amuramatsu/termux-packages that referenced this issue Dec 7, 2019
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
android-10 Issue happens on devices running Android 10 bug report Something is not working properly
Projects
None yet
Development

No branches or pull requests

4 participants