[pypy-dev] operror-value: ('Unknown character', ('c callback', 1, 1, '\x08\n', 0))

Yicong Huang hengha.mao at gmail.com
Thu May 14 11:17:17 CEST 2015


Sorry, I found that's a bug of the code.
In some cases, char* buffer was free by accident before passing to
pypy_execute_source().

On Thu, May 14, 2015 at 4:21 PM, Armin Rigo <arigo at tunes.org> wrote:

> Hi Yicong,
>
> On 12 May 2015 at 11:48, Yicong Huang <hengha.mao at gmail.com> wrote:
> > The program I wrote is simple: it read python code from a local file to
> > char*, and pass char* to pypy_execute_source().
>
> It works for us, so please give a complete example: ideally, a C
> program that can show the problem when executed (including the Python
> source file if it's not embedded in the C program).  Maybe it is an
> issue with the encoding of the file not being recognized only in
> "pypy_execute_source"?  But that's just a guess.
>
>
> A bientôt,
>
> Armin.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150514/b6470d77/attachment.html>


More information about the pypy-dev mailing list