[Scipy-tickets] [SciPy] #776: Segmentation fault in interpolate.interp2d for too many data points

SciPy Trac scipy-tickets@scipy....
Mon Mar 29 19:11:30 CDT 2010

#776: Segmentation fault in interpolate.interp2d for too many data points
 Reporter:  pv                           |       Owner:  somebody
     Type:  defect                       |      Status:  new     
 Priority:  normal                       |   Milestone:  0.8.0   
Component:  scipy.interpolate            |     Version:          
 Keywords:  interpolate bisplrep surfit  |  

Comment(by ashleywalsh):

 I think I have a partial solution.  I've been having this problem on
 with self compiled scipy and decided to try and fix it.  The crash was
 occurring in `scipy/interpolate/fitpack/fprank.f`.  With poor gdb skills I
 resorted to putting print statements in `fprank.f` to try and get some
 of where the fault occurred.  As I seemed to be closing in on the error
 location it would jump to further down the subroutine, until eventually,
 enough print statements it passed, printing a warning about
 "No more knots can be added...".

 This suggested compiler optimisations are the problem, so I compiled scipy
 `config_fc --noopt` and not more segmentation fault.

 I'm afraid its enough for me that it now doesn't crash, and I haven't got
 to do more investigation.

 Here's some (relevant?) information:

 $ uname -a
 Linux srs001 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009
 x86_64 GNU/Linux
 $ gfortran -v
 Using built-in specs.
 Target: x86_64-linux-gnu
 Configured with: ../src/configure -v --with-pkgversion='Ubuntu
 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
 --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-
 shared --enable-multiarch --enable-linker-build-id --with-system-zlib
 --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
 --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4
 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-
 gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-
 checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
 Thread model: posix
 gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)

 I've also attached the build log in case it's helpful.

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

More information about the Scipy-tickets mailing list