This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yan12125
Recipients Alex.Willmer, terry.reedy, vstinner, xdegaye, yan12125
Date 2016-05-07.10:05:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462615530.79.0.111545442167.issue26934@psf.upfronthosting.co.za>
In-reply-to
Content
This is due to something mysterious in Android's bionic & kernel. For the following C program:

#include <stdlib.h>
#include <signal.h>
#include <stdio.h>

int main()
{
    sigaction(SIGSEGV, NULL, NULL);
    raise(SIGSEGV);
    printf("Good evening!\n");
    return 0;
}

Compiled with: /opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc test_sigsegv.c --sysroot /opt/android-ndk/platforms/android-21/arch-arm -fPIE -Wl,-pie
(Replace /opt/android-ndk to the path of NDK)

On ASUS ZE500KL:
shell@ASUS_Z00E_2:/data/local/tmp $ ./a.out
Good evening!

On Linux: (Compiled with gcc test_sigsegv.c)
$ ./a.out 
[2]    23434 segmentation fault (core dumped)  ./a.out

Seems the sigaction() call in Python occurs in Modules/signalmodule.c.
History
Date User Action Args
2016-05-07 10:05:30yan12125setrecipients: + yan12125, terry.reedy, vstinner, xdegaye, Alex.Willmer
2016-05-07 10:05:30yan12125setmessageid: <1462615530.79.0.111545442167.issue26934@psf.upfronthosting.co.za>
2016-05-07 10:05:30yan12125linkissue26934 messages
2016-05-07 10:05:30yan12125create