[Scipy-tickets] [SciPy] #1496: segfaults on OS X Lion

SciPy Trac scipy-tickets@scipy....
Mon Aug 22 18:35:59 CDT 2011


#1496: segfaults on OS X Lion
--------------------------+-------------------------------------------------
 Reporter:  rgommers      |       Owner:  cdavid     
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  Unscheduled
Component:  Build issues  |     Version:  0.9.0      
 Keywords:  OS X Lion     |  
--------------------------+-------------------------------------------------

Comment(by cshimmin):

 Sorry for the slow turn-around here. I checked out that note you posted on
 the wiki. I had, as described above, rebuilt using gcc/g++, but I wasn't
 using the -ff2c flag. After building with the -ff2c flag, I'm down to 1 OR
 3 failures...

 When I fire up python and run scipy.test(), I get 1 failure:
 {{{
 ======================================================================
 FAIL: test_expon (test_morestats.TestAnderson)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/scipy/stats/tests/test_morestats.py", line 72, in test_expon
     assert_array_less(crit[:-1], A)
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/numpy/testing/utils.py", line 869, in assert_array_less
     header='Arrays are not less-ordered')
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/numpy/testing/utils.py", line 613, in assert_array_compare
     chk_same_position(x_id, y_id, hasval='inf')
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/numpy/testing/utils.py", line 588, in chk_same_position
     raise AssertionError(msg)
 AssertionError:
 Arrays are not less-ordered

 x and y inf location mismatch:
  x: array([ 0.911,  1.065,  1.325,  1.587])
  y: array(inf)
 }}}

 When I run scipy.test() for a second time (in the same python session), I
 get 2 more failures (as well as the above error), for a total of 3
 failures. Here are the other two:
 {{{
 ======================================================================
 FAIL: test_mio.test_mat4_3d
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/scipy/io/matlab/tests/test_mio.py", line 740, in test_mat4_3d
     stream, {'a': arr}, True, '4')
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/numpy/testing/utils.py", line 1008, in assert_raises
     return nose.tools.assert_raises(*args,**kwargs)
 AssertionError: DeprecationWarning not raised

 ======================================================================
 FAIL: Regression test for #651: better handling of badly conditioned
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/scipy/signal/tests/test_filter_design.py", line 32, in
 test_bad_filter
     assert_raises(BadCoefficients, tf2zpk, [1e-15], [1.0, 1.0])
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/numpy/testing/utils.py", line 1008, in assert_raises
     return nose.tools.assert_raises(*args,**kwargs)
 AssertionError: BadCoefficients not raised
 }}}

 Subsequent calls to scipy.test() appear to result in the same 3 failures,
 but with 5 errors, that all look like:
 {{{
 ======================================================================
 ERROR: test_size_accuracy (test_basic.TestSingleIFFT)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-
 packages/scipy/fftpack/tests/test_basic.py", line 248, in
 test_size_accuracy
     (size, self.rdt))
   File "/usr/local/Cellar/python/2.7.2/lib/python2.7/unittest/case.py",
 line 607, in deprecated_func
     PendingDeprecationWarning, 2)
 PendingDeprecationWarning: Please use assertTrue instead.
 }}}

 These are just warnings about some deprecated construct, but it's unclear
 to me why these don't show up until I call test() 3 times.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1496#comment:9>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list