Message265057
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. |
|
Date |
User |
Action |
Args |
2016-05-07 10:05:30 | yan12125 | set | recipients:
+ yan12125, terry.reedy, vstinner, xdegaye, Alex.Willmer |
2016-05-07 10:05:30 | yan12125 | set | messageid: <1462615530.79.0.111545442167.issue26934@psf.upfronthosting.co.za> |
2016-05-07 10:05:30 | yan12125 | link | issue26934 messages |
2016-05-07 10:05:30 | yan12125 | create | |
|