[Numpy-discussion] Floating exception

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Jan 21 10:37:47 CST 2010


On Thu, 21 Jan 2010 23:35:29 +0900
  David Cournapeau <cournape@gmail.com> wrote:
> On Thu, Jan 21, 2010 at 8:36 PM, Nils Wagner
> <nwagner@iam.uni-stuttgart.de> wrote:
>> On Thu, 21 Jan 2010 10:04:56 +0900
>>  David Cournapeau <david@silveregg.co.jp> wrote:
>>> Nils Wagner wrote:
>>>> Hi all,
>>>>
>>>> I found a strange problem when I try to import numpy
>>>>
>>>> python -v
>>>>>>> import numpy
>>>> ...
>>>> dlopen("/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/multiarray.so",
>>>> 2);
>>>> Floating exception
>>>>
>>>> Any idea ?
>>>
>>> Could you get a traceback (ideally making sure numpy is
>>>built with debug
>>> symbols - having -g in both CFLAGS and LDFLAGS) ?
>>>
>>> Having it happening inside the dlopen call is a bit
>>>weird, I can't see
>>> what could cause it,
>>>
>>> cheers,
>>>
>>> David
>>
>> Hi David,
>>
>> Thank you for your response.
>> I switched from CentOS 4.2 to CentOS 5.2
>> Here is the output of
>>
>> gdb python
>> run -v
>> #
>> /data/home/nwagner/local/lib/python2.5/site-packages/site.pyc
>> has bad magic
>> ...
>>
>> What is the meaning of 'bad magic' ?
> 
> It seems that the bad magic is coming from python, which 
>would most
> likely mean the site.pyc bytecode is not compatible with 
>the run
> python. This is independent of your problem I think,
> 
> David

O.k. here is some more information ...

# can't create 
/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/info.pyc
dlopen("/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/multiarray.so", 
2);

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 182894183648 (LWP 22301)]
0x000000350e8074d7 in do_lookup_x () from 
/lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x000000350e8074d7 in do_lookup_x () from 
/lib64/ld-linux-x86-64.so.2
#1  0x000000350e80789e in _dl_lookup_symbol_x () from 
/lib64/ld-linux-x86-64.so.2
#2  0x000000350e808c70 in _dl_relocate_object () from 
/lib64/ld-linux-x86-64.so.2
#3  0x000000350f7f7ac8 in dl_open_worker () from 
/lib64/tls/libc.so.6
#4  0x000000350e80aab0 in _dl_catch_error () from 
/lib64/ld-linux-x86-64.so.2
#5  0x000000350f7f845a in _dl_open () from 
/lib64/tls/libc.so.6
#6  0x000000350fc01054 in dlopen_doit () from 
/lib64/libdl.so.2

Any idea ?

     Nils
  


More information about the NumPy-Discussion mailing list