Ticket #157 (closed defect: invalid)
pyyaml-3.09 dumps core
|Reported by:||rich@…||Owned by:||xi|
I'm not sure how to provide a small demonstration here.
In the "spread" module, (SpreadModule? on pypi), there is a type spread.MembershipMsg? which contains a "group_id", spread.MembershipMsg?.group_id. The group_id is an opaque type. I'm not sure how to generate one of these easily aside from bringing up a spread system, which seems like overkill.
In any case, attempting to serialize this opaque type with pyyaml results in a python core dump.
I recognize that pyyaml can't possibly know how to serialize or unserialize this sort of object. However, I think that attempting to do so should result in a suitable exception rather than an interpreter core dump.
I'll find another way around my problem. But chasing down this dump took me a couple of days. If it had been an exception, I'd have found the problem in minutes.