[pypy-issue] [issue1459] Pypy 2.0 beta 2 with cffi segmentation fault 11

Amaury Forgeot d Arc tracker at bugs.pypy.org
Thu Apr 18 17:15:06 CEST 2013


Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

There was a typo, here is the full script.
It does not crash with "--jit off".


import cffi
ffi = cffi.FFI()
ffi.cdef("""
struct message_s {
    short payload_len;
    char sender_addr[4];
    char src_addr[4];
    short id;
};
""")
msg = ffi.new("struct message_s *")
for i in range(30000):
    msg.id = 258

----------
nosy: +amaury
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1459>
________________________________________


More information about the pypy-issue mailing list