Hi Armin,

Sorry for I didn't describe the problem clearly.
The issue is well reproducible with the belolw simple piece of the code:

#include ...

int main()
{
 rpython_startup_code();
 pypy_init_threads();
 pypy_setup_home(...);
 pypy_execute_source_ptr("print \'hello\'");
}

It hangs in pypy_execute_source().
And if we remove "pypy_init_threads()", the code works.

On Tue, Sep 8, 2015 at 9:19 PM, Armin Rigo <arigo@tunes.org> wrote:
Hi Yicong,

On Tue, Sep 8, 2015 at 1:57 PM, Yicong Huang <hengha.mao@gmail.com> wrote:
> I tried the following in one thread, and it hang in
> pypy_execute_source_ptr().
> *     rpython_startup_code();
> *     pypy_init_threads();
> *     pypy_setup_home(...)
> *     pypy_execute_source_ptr()

I meant "do whatever you did so far here".  I can't debug a new
problem you get if I only know "it hangs"...


A bientôt,

Armin.