Skip to content

Resulting python3.3 binary segfaults. #2

@shizmob

Description

@shizmob

Currently, the resulting python3.3 binary in $BUILD/bin crashes when launched. It seems to trigger a segfault in Bionic:

F/libc    (19156): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 19156 (python3.3)
I/DEBUG   (  273): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
...
I/DEBUG   (  273): pid: 19156, tid: 19156, name: python3.3  >>> bin/python3.3 <<<
I/DEBUG   (  273): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
W/NativeCrashListener( 1032): Couldn't find ProcessRecord for pid 19156
I/DEBUG   (  273):     r0 00000000  r1 00000000  r2 00000000  r3 00000000
I/DEBUG   (  273): AM write failure (32 / Broken pipe)
I/DEBUG   (  273):     r4 00000000  r5 bef22a4c  r6 00000000  r7 b6f4dfd8
I/DEBUG   (  273):     r8 00000001  r9 00d3a030  sl 00000000  fp 00d3a020
I/DEBUG   (  273):     ip 0018dc2c  sp bef229d0  lr b6f2f4a1  pc b6f270b0  cpsr 600e0030
I/DEBUG   (  273):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   (  273):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  273):     d4  0000000000000000  d5  0000000000000000
I/DEBUG   (  273):     d6  0000000000000000  d7  ac5327c000000000
I/DEBUG   (  273):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  273):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  273):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  273):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  273):     d16 c1d4ea5d87124dd3  d17 3f50624dd2f1a9fc
I/DEBUG   (  273):     d18 41aa6eb704000000  d19 0000000000000000
I/DEBUG   (  273):     d20 0000000000000000  d21 0000000000000000
I/DEBUG   (  273):     d22 0000000000000000  d23 0000000000000000
I/DEBUG   (  273):     d24 0000000000000000  d25 0000000000000000
I/DEBUG   (  273):     d26 0000000000000000  d27 0000000000000000
I/DEBUG   (  273):     d28 0000000000000000  d29 0000000000000000
I/DEBUG   (  273):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   (  273):     scr 00000010
I/DEBUG   (  273): 
I/DEBUG   (  273): backtrace:
I/DEBUG   (  273):     #00  pc 000230b0  /system/lib/libc.so (strlen+83)
I/DEBUG   (  273):     #01  pc 0002b49d  /system/lib/libc.so (strdup+4)
I/DEBUG   (  273):     #02  pc 00012f48  /data/py3/bin/python3.3

Seeing as the fault address is 0, it's very likely a NULL pointer being passed around somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions