[pypy-dev] String or None segmentation fault

Hakan Ardo hakan at debian.org
Tue Dec 30 12:15:18 CET 2008

the following code compiles into something that segfaults. Attached is
a patch trying to fix that.

        def nstr(i):
            if i==0: return None
            return str(i)
        def fn(i):
            return (str(nstr(0)), str(nstr(i)))

Håkan Ardö
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonesegv.patch
Type: text/x-patch
Size: 1611 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20081230/fe2dab3a/attachment.bin>

More information about the Pypy-dev mailing list