Bug#1009739: python3.10 breaks yade autopkgtest on i386: Segmentation fault

Bernhard Übelacker bernhardu at mailbox.org
Sun May 22 23:33:42 BST 2022


Am 22.05.22 um 22:49 schrieb Bernhard Übelacker:

> Maybe someone with more detailed Python knowledge can confirm
> this being a bug in boost placing the name member of
> boost::python::objects::enum_object after the base_object
> and therefore base_object having "ob_digit" just one element?


Short addition:
to prove my suspicion the fault being at boost side,
I rebuilt locally the boost1.74 package with the
modification below, and the before crashing yade test
went through with "*** ALL TESTS PASSED ***".
The below test is just an attempt to avoid overwriting
the name pointer by placing a few dummy bytes in the struct.



--- orig/boost1.74-1.74.0/libs/python/src/object/enum.cpp       2022-05-22 14:50:12.000000000 +0200
+++ try1/boost1.74-1.74.0/libs/python/src/object/enum.cpp       2022-05-22 22:56:38.961526419 +0200
@@ -23,6 +23,7 @@ struct enum_object
  #else
      PyIntObject base_object;
  #endif
+    char foo[4];
      PyObject* name;
  };
  



More information about the debian-science-maintainers mailing list