[Scipy-tickets] [SciPy] #548: "illegal hardware instruction"

SciPy scipy-tickets@scipy....
Thu Nov 29 13:52:47 CST 2007


#548: "illegal hardware instruction"
-----------------------+----------------------------------------------------
 Reporter:  webograph  |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:  0.7     
Component:  Other      |     Version:          
 Severity:  normal     |    Keywords:          
-----------------------+----------------------------------------------------
 {{{
 Python 2.5.1 (r251:54863, Nov 23 2007, 17:25:40)
 [GCC 4.2.2 (Gentoo 4.2.2 p1.0)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from scipy import stats
 >>> stats.t.cdf(0.995,3)
 zsh: illegal hardware instruction  python
 }}}
 this happens on a regular gentoo linux box, output of uname -a is
 {{{
 Linux hostname 2.6.22.6 #1 SMP Thu Sep 20 15:15:38 CEST 2007 i686 Intel(R)
 Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
 }}}
 scipy.__version__ is 0.6.0, gentoo reports 0.6.0-r2

 last lines of strace'd python are
 {{{
 close(6)                                = 0
 mprotect(0xb6d17000, 4096, PROT_READ)   = 0
 close(5)                                = 0
 close(4)                                = 0
 stat64("/usr/lib/python2.5/site-packages/scipy/stats/kde", 0xbf8167ac) =
 -1 ENOENT (No such file or directory)
 open("/usr/lib/python2.5/site-packages/scipy/stats/kde.so",
 O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
 open("/usr/lib/python2.5/site-packages/scipy/stats/kdemodule.so",
 O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
 open("/usr/lib/python2.5/site-packages/scipy/stats/kde.py",
 O_RDONLY|O_LARGEFILE) = 4
 fstat64(4, {st_mode=S_IFREG|0644, st_size=9909, ...}) = 0
 open("/usr/lib/python2.5/site-packages/scipy/stats/kde.pyc",
 O_RDONLY|O_LARGEFILE) = 5
 fstat64(5, {st_mode=S_IFREG|0644, st_size=10040, ...}) = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0xb7bf1000
 read(5,
 "\263\362\r\n\240\312\364Fc\0\0\0\0\0\0\0\0\t\0\0\0@\0\0\0s\321\0\0\0d\0"...,
 4096) = 4096
 fstat64(5, {st_mode=S_IFREG|0644, st_size=10040, ...}) = 0
 read(5, "n and integrate\n        over the"..., 4096) = 4096
 read(5, "     If not provided, then the s"..., 4096) = 1848
 read(5, "", 4096)                       = 0
 close(5)                                = 0
 munmap(0xb7bf1000, 4096)                = 0
 stat64("/usr/lib/python2.5/site-packages/scipy/stats/mvn", 0xbf8132bc) =
 -1 ENOENT (No such file or directory)
 open("/usr/lib/python2.5/site-packages/scipy/stats/mvn.so",
 O_RDONLY|O_LARGEFILE) = 5
 fstat64(5, {st_mode=S_IFREG|0755, st_size=61148, ...}) = 0
 open("/usr/lib/python2.5/site-packages/scipy/stats/mvn.so", O_RDONLY) = 6
 read(6,
 "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\30\0\0004\0\0\0"...,
 512) = 512
 fstat64(6, {st_mode=S_IFREG|0755, st_size=61148, ...}) = 0
 mmap2(NULL, 1076276, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 6, 0)
 = 0xb6c0b000
 mmap2(0xb6c19000, 8192, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 6, 0xd) = 0xb6c19000
 mmap2(0xb6c1b000, 1010740, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6c1b000
 close(6)                                = 0
 mprotect(0xb6c19000, 4096, PROT_READ)   = 0
 close(5)                                = 0
 close(4)                                = 0
 close(3)                                = 0
 --- SIGILL (Illegal instruction) @ 0 (0) ---
 +++ killed by SIGILL +++
 }}}

 i'd like to add that i am not quite sure what that function does, nor if
 the arguments make sense (it seems to happen if you pass a float followed
 by a non-1 int), but i think such a crash should not happen even if i fed
 functions from /dev/random.

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


More information about the Scipy-tickets mailing list