Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27909
| From | Vincent Pelletier <plr.vincent@gmail.com> |
|---|---|
| Subject | Re: Segfault when setting an instance property on 2.7.3 |
| Date | 2012-08-26 09:43 +0200 |
| References | <201208251138.47725.plr.vincent@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3832.1345967000.4697.python-list@python.org> (permalink) |
Le samedi 25 août 2012 11:38:47, Vincent Pelletier a écrit :
> Any idea of ways to debug this problem further ?
Trying with pypy ("just to see"), I got even more reproductible segfaults -
even with valgrind.
Turns out, I was not keeping strong references to ctypes buffers, which get
very quickly collected with pypy and memory reused for something else, leading
to a quick crash.
Now, I don't get yet why cpython was not crashing more often, even if I forced
gc.collect() . Less memory recycling maybe ?
Regards,
--
Vincent Pelletier
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Segfault when setting an instance property on 2.7.3 Vincent Pelletier <plr.vincent@gmail.com> - 2012-08-26 09:43 +0200
csiph-web