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 lizhenhua.dev
Recipients lizhenhua.dev
Date 2014-04-30.07:33:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398843223.64.0.854948810113.issue21390@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-30 07:33:43lizhenhua.devsetrecipients: + lizhenhua.dev
2014-04-30 07:33:43lizhenhua.devsetmessageid: <1398843223.64.0.854948810113.issue21390@psf.upfronthosting.co.za>
2014-04-30 07:33:43lizhenhua.devlinkissue21390 messages
2014-04-30 07:33:43lizhenhua.devcreate