Author bkuhn
Recipients bkuhn
Date 2009-02-01.03:06:58
SpamBayes Score 8.48336e-07
Marked as misclassified No
Message-id <1233457621.0.0.661616898289.issue5121@psf.upfronthosting.co.za>
In-reply-to
Content
The description of PyRun_InteractiveLoop(FILE * file, const char * 
filename) states that if filename is NULL, "???" will be used instead. 
In actuality, if the method is called with a NULL filename, it will 
segfault after the first command is entered.

Example:
//main.c
#include <Python.h>

int main(int argc, char * argv[]) {
	Py_Initialize();
	PyRun_InteractiveLoop(stdin, NULL);
}

//stdin
>>>import math

results in a segfault.

Python 3.0, Windows 7 beta, MinGW -LC:\Python30\libs -lpython30, 32-bit 
Intel.
History
Date User Action Args
2009-02-01 03:07:01bkuhnsetrecipients: + bkuhn
2009-02-01 03:07:01bkuhnsetmessageid: <1233457621.0.0.661616898289.issue5121@psf.upfronthosting.co.za>
2009-02-01 03:06:58bkuhnlinkissue5121 messages
2009-02-01 03:06:58bkuhncreate