• Jean-Baptiste Queru's avatar
    Handle pthread-related changes (mutex/atfork) · faca92f2
    Jean-Baptiste Queru authored
    First commit:
    
    Revert "Revert "am be741d47: am 2f460fbe: am 73b5cad9: Merge "bionic: Fix wrong kernel_id in pthread descriptor after fork()"""
    
    This reverts commit 06823da2.
    
    Second commit:
    
    bionic: fix atfork hanlder_mutex deadlock
    
    This cherry-picks commit 34e89c23
    
    After applying the kernel_id fix, the system refused to boot up and we
    got following crash log:
    I/DEBUG   (  113): pid: 618, tid: 618  >>> org.simalliance.openmobileapi.service:remote <<<
    I/DEBUG   (  113): signal 16 (SIGSTKFLT), code -6 (?), fault addr --------
    I/DEBUG   (  113):  eax fffffe00  ebx b77de994  ecx 00000080  edx 00724002
    I/DEBUG   (  113):  esi 00000000  edi 00004000
    I/DEBUG   (  113):  xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000 xss 0000007b
    I/DEBUG   (  113):  eip b7761351  ebp bfdf3de8  esp bfdf3dc4  flags 00000202
    I/DEBUG   (  113):     #00  eip: 00015351  /system/lib/libc.so
    I/DEBUG   (  113):     #01  ...
    faca92f2
bionic_pthread.h 1.63 KB