Message217580
On Android platform, when run "python" command without any scripts, it may crash, get an error message "Segment Fault". This is because strdup with a NULL pointer.
Details:
In file
Modules/readline.c,
function
static void setup_readline(void)
This line:
char *saved_locale = strdup(setlocale(LC_CTYPE, NULL));
When running on an Android platform, setlocale(LC_CTYPE, NULL) returns NULL, and this causes strdup with a NULL pointer, then Segment Fault occurs. |
|
Date |
User |
Action |
Args |
2014-04-30 07:33:43 | lizhenhua.dev | set | recipients:
+ lizhenhua.dev |
2014-04-30 07:33:43 | lizhenhua.dev | set | messageid: <1398843223.64.0.854948810113.issue21390@psf.upfronthosting.co.za> |
2014-04-30 07:33:43 | lizhenhua.dev | link | issue21390 messages |
2014-04-30 07:33:43 | lizhenhua.dev | create | |
|