Homec4science

intbitset: fixed iteration-related segfault

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Jul 24 2009, 10:54.

Description

intbitset: fixed iteration-related segfault

  • If an intbitset was directly iterated as in: >>> for x in intbitset([1,2,3]): ... this would have caused a Python segmentation fault, due to the iterator object referencing an intbitset that immediately disappears from memory. This is now fixed.
  • Added a test case for this problem.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Aug 25 2009, 18:50
Parents
R3600:d7e75ed213b0: json: fixed import statements for Python-2.6
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:a52b6bcbe253: intbitset: fixed iteration-related segfault (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Aug 25 2009, 18:50