[Pyrex] Test case for Pyrex and Cython

David McNab rebirth at orcon.net.nz
Mon Nov 26 09:32:48 CET 2007


On Mon, 2007-11-26 at 20:13 +1300, Greg Ewing wrote:
> David McNab wrote:
> > Pyrex's segfaults and stack corruption
> > when loading three or more modules from a package hierarchy
> 
> Can you provide an example? If there's a crash-causing
> bug here, I'd like to fix it.

I'll have a go at creating a minimal example if I get time.

The general case is:

  - package name 'foo'
  - pyrex module 'foo.fred', as foo.fred.pyx and foo.fred.pxd
  - pyrex module 'foo.sub.sub1', which cimports from fred, as
    files foo.sub.sub1.pyx and foo.sub.sub1.pxd
  - ditto for 3 or 4 other modules 'foo.sub.subx'
  - build this
  - from a pure python module, do:

        import foo.sub.sub1
        import foo.sub.sub2
        import foo.sub.sub3
        import foo.sub.sub4

This likely will crash, or do other nasty things.

If you can't reproduce this, then I'll take the source tree where I'm
seeing this, and keep pruning stuff out as far as I can while keeping
the problem observable.

Cheers
David





More information about the Pyrex mailing list