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 cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL #71793

Closed
xdegaye mannequin opened this issue Jul 24, 2016 · 3 comments
Closed
Labels
build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Jul 24, 2016

BPO 27606
Nosy @xdegaye, @tpetazzoni, @moreati
Files
  • strace.txt
  • logcat.txt
  • strace-pydebug.txt
  • logcat-pydebug.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 2017-11-30.14:26:25.987>
    created_at = <Date 2016-07-24.12:27:43.470>
    labels = ['build', 'type-crash']
    title = "Android cross-built for armv5te with clang and '-mthumb' crashes with SIGSEGV or SIGILL"
    updated_at = <Date 2017-11-30.14:26:25.985>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2017-11-30.14:26:25.985>
    actor = 'xdegaye'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-30.14:26:25.987>
    closer = 'xdegaye'
    components = ['Cross-Build']
    creation = <Date 2016-07-24.12:27:43.470>
    creator = 'xdegaye'
    dependencies = []
    files = ['43858', '43859', '43860', '43861']
    hgrepos = []
    issue_num = 27606
    keywords = []
    message_count = 3.0
    messages = ['271146', '271149', '307316']
    nosy_count = 3.0
    nosy_names = ['xdegaye', 'thomas-petazzoni', 'Alex.Willmer']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue27606'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jul 24, 2016

    Android ndk version r11c.

    The crash happens very early on python startup. The SIGILL occurs when python is built 'with-pydebug'.

    Python runs fine on the armv5te emulator when built with clang without '-mthumb'.
    Python runs fine on the armv5te emulator when built with gcc 4.9 with or without '-mthumb'.

    Attaching the strace and logcat output for each type of build.

    The backtrace when python is built 'with-pydebug' (but logcat.txt says that the SIGSEGV occurs at PyUnicode_DecodeUTF8Stateful when not built 'with-pydebug'):

    Program received signal SIGILL, Illegal instruction.
    0xb6d77e0a in r_object (p=0xbed89588)
    at Python/marshal.c:1340
    1340 idx = r_ref_reserve(flag, p);
    (gdb) bt
    #0 0xb6d77e0a in r_object (p=0xbed89588)
    at Python/marshal.c:1340
    #1 0xb6d76ba2 in PyMarshal_ReadObjectFromString (str=0xb6e5f9ae <_Py_M__importlib> "c", len=30106)
    at Python/marshal.c:1584
    #2 0xb6d72506 in PyImport_ImportFrozenModuleObject (name='_frozen_importlib')
    at Python/import.c:1187
    #3 0xb6d727ec in PyImport_ImportFrozenModule (name=0xb6e49ac0 "_frozen_importlib")
    at Python/import.c:1236
    #4 0xb6d7ff96 in import_init (interp=0xb6919068, sysmod=<module at remote 0xb688a818>)
    at Python/pylifecycle.c:243
    #5 0xb6d7fc80 in _Py_InitializeEx_Private (install_sigs=1, install_importlib=1)
    at Python/pylifecycle.c:413
    #6 0xb6d80f30 in Py_InitializeEx (install_sigs=1)
    at Python/pylifecycle.c:450
    #7 0xb6d80f3e in Py_Initialize ()
    at Python/pylifecycle.c:456
    #8 0xb6daa5e6 in Py_Main (argc=1, argv=0xb6901068)
    at Modules/main.c:678
    #9 0xb6f9b84c in ?? ()

    @xdegaye xdegaye mannequin added build The build process and cross-build type-crash A hard crash of the interpreter, possibly with a core dump labels Jul 24, 2016
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jul 24, 2016

    The reference to '-mthumb' in the ndk documentation: https://developer.android.com/ndk/guides/standalone_toolchain.html#abi.

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Nov 30, 2017

    ARMV5TE is deprecated in NDK r16 and will be removed in r17.
    See https://developer.android.com/ndk/guides/abis.html
    Closing as won't fix.

    @xdegaye xdegaye mannequin closed this as completed Nov 30, 2017
    @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-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants