Re: [lxml] debugging seg fault in lxml.html.fromstring in pypy
6 Oct
2015
6 Oct
'15
11:44 p.m.
Some more observations on my problem: 1. My Seg Faults consistently arise from accessing the lxml.form.fields which is a FieldsDict. Even just printing the form.fields values without setting any new values will cause Seg Faults. 2. A FieldsDict inherits from collections.abc.MutableMapping. 3. Abstract Base Classes use weak references and FieldsDict has one thing in it, a weak reference. 4. I'm getting memory free'd twice errors which is what one might expect from a weak reference. 5. The memory managment and garbage collection in pypy is different from Cython and does not use reference counting. I suspect an lxml memory bug is lurking and I wish I could be more precise. - Jeff
3092
Age (days ago)
3096
Last active (days ago)
2 comments
2 participants
participants (2)
-
Jeff Doran
-
Stefan Behnel