[NumPy-Tickets] [NumPy] #799: Segfault when subclassing numpy.float64 with multiple inheritance
NumPy Trac
numpy-tickets@scipy....
Sun Sep 5 13:27:31 CDT 2010
#799: Segfault when subclassing numpy.float64 with multiple inheritance
------------------------------+---------------------------------------------
Reporter: ReinderKamphorst | Owner: cdavid
Type: defect | Status: new
Priority: low | Milestone: Unscheduled
Component: numpy.core | Version: devel
Keywords: |
------------------------------+---------------------------------------------
Changes (by pv):
* priority: normal => low
* status: accepted => new
* version: none => devel
* milestone: => Unscheduled
Comment:
This is in principle straightforward to fix:
http://github.com/pv/numpy-work/compare/1.5.x...bug%2F799-array-scalar-
subclassing
However, it opens a can of worms -- several of the `gentype_*` routines
determine the array scalar dtype via `PyArray_DescrFromScalar`, which
seems to get things wrong for subclassed types. And this causes crashes.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/799#comment:5>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list