masked array autotest fails with bus error (Trac #1094) #1692
Labels
00 - Bug
component: numpy.ma
masked arrays
Priority: high
High priority, also add milestones for urgent issues
Milestone
Original ticket http://projects.scipy.org/numpy/ticket/1094 on 2009-04-24 by trac user Gerard, assigned to @charris.
Running the numpy (version 1.3.0, but also occurs on 1.2.1) autotester fails on masked array test case with a bus error. Used system is Solaris 5.8:
uname -a
SunOS wsasd529 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Blade-1500
output of "numpy.test(verbose=10)":
...
Tests how masks are initialized at the creation of Maskedarrays. ... ok
Check the use of ndmin ... ok
Make sure we're not losing the original mask w/ ndmin ... ok
Tests creaating a masked array from alist of masked arrays. ... ok
test_deepcopy (test_core.TestMaskedArray) ... ok
Test printing a masked array w/ fancy dtype. ... ok
Test filled w/ flexible dtype ... Bus error
Bus error is caused by a misaligned memory write (see output of purify below):
Commenting the execution of the fastputmask in multiarraymodule.c (and thus running the 'slower' version already implemented there) solves the problem:
multiarraymodule.c, line 4676 (and further):
added here are the comment blocks such that func is not executed anymore.
'Minimal' piece of python code to reproduce:
from numpy.ma.core import *
f = array([(1,1)], dtype=[('i',int),('f',float)])
f.mask = [1,1]
f.filled()
The text was updated successfully, but these errors were encountered: