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

android does not support versioning in SONAME #71036

Closed
xdegaye mannequin opened this issue Apr 26, 2016 · 3 comments
Closed

android does not support versioning in SONAME #71036

xdegaye mannequin opened this issue Apr 26, 2016 · 3 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Apr 26, 2016

BPO 26849
Nosy @xdegaye, @Fak3, @moreati
Files
  • soname_versioning.patch
  • logcat.txt
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-05-01.06:55:08.113>
    created_at = <Date 2016-04-26.09:24:50.090>
    labels = ['type-bug', 'build']
    title = 'android does not support versioning in SONAME'
    updated_at = <Date 2016-05-01.06:55:08.110>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2016-05-01.06:55:08.110>
    actor = 'xdegaye'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-05-01.06:55:08.113>
    closer = 'xdegaye'
    components = ['Cross-Build']
    creation = <Date 2016-04-26.09:24:50.090>
    creator = 'xdegaye'
    dependencies = []
    files = ['42596', '42618']
    hgrepos = []
    issue_num = 26849
    keywords = ['patch']
    message_count = 3.0
    messages = ['264241', '264306', '264583']
    nosy_count = 3.0
    nosy_names = ['xdegaye', 'Roman.Evstifeev', 'Alex.Willmer']
    pr_nums = []
    priority = 'normal'
    resolution = 'works for me'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue26849'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Apr 26, 2016

    When python is cross-compiled for android with --enable-shared, the following error occurs:

    # python -c "import socket"
    Fatal Python error: PyThreadState_Get: no current thread

    This also occurs when importing subprocess, asyncore or asyncio but not when importing posix (not a shared library). This is fixed by building python without soname versioning, although I have no idea why a problem with the android loader would cause this error.
    Patch attached.

    Some references to the android loader and soname versioning:
    https://code.google.com/p/android/issues/detail?id=55868
    https://groups.google.com/forum/#!msg/android-ndk/_UhNpRJlA1k/hbryqzEgN94J

    @xdegaye xdegaye mannequin added build The build process and cross-build type-bug An unexpected behavior, bug, or error labels Apr 26, 2016
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Apr 26, 2016

    Attached are the logcat traces of the abort.

    This links helps in reading Android avc messages: http://www.all-things-android.com/content/debugging-se-android-avc-messages

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented May 1, 2016

    Python builds and runs fine on android without this patch. I cannot reproduce the 'Fatal Python error: PyThreadState_Get: no current thread' abort either.

    Closing the issue.

    @xdegaye xdegaye mannequin closed this as completed May 1, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants