[Stackless] Statically link stackless?

Lloyd Weehuizen lloyd at fusion.net.nz
Wed Mar 8 08:16:36 CET 2006


Are there any known issues with statically linking Stackless? It works 
great for me in debug mode ( Win32 VisualStudio ) but when compiling a 
release build it crashes in PyInitialize().

Stepping into the code it appears it crashes deep inside pythons 
PyFunction_New (funcobject.c:25) while trying to INCREF on a NULL object 
because the passed in object is a __PyNone_Struct instead of a PyCode_Type.

The code its executing at the time is and inline string from pricklepit:1958

genobject *gen = (genobject *) run_script(
        "def f(): yield 42\n"    /* define a generator */
        "g = f()\n"        /* instanciate it */
        "g.next()\n", "g");    /* force callback frame creation */

Thanks for any help,

Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list