473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

f2py Error - module crashes after several iterations...


Hello,

I have a module created from a Fortran file to read in unformatted binary
fortran output. It works fine for some datasets, but crashes with others.
The strange thing is it will loop through several files before it crashes,
then suddently giving me this output:

*** glibc detected *** python: munmap_chunk(): invalid pointer: 0xb34ac008
***
======= Backtrace: =========
/lib/libc.so.6[0x7b0874]
/usr/lib/python2.5/site-packages/numpy/core/multiarray.so[0x44a24b]
/usr/lib/libpython2.5.so.1.0[0x55cf0cf]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x579)[0x5636c59]
/usr/lib/libpython2.5.so.1.0[0x55d0eb2]
/usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37)[0x55b10b7]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x466f)[0x5633e7f]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x695)[0x5636d75]
/usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0x5636fd3]
/usr/lib/libpython2.5.so.1.0[0x5652542]
/usr/lib/libpython2.5.so.1.0(PyRun_FileExFlags+0x92)[0x5652602]
/usr/lib/libpython2.5.so.1.0(PyRun_SimpleFileExFlags+0x1bc)[0x5653d8c]
/usr/lib/libpython2.5.so.1.0(PyRun_AnyFileExFlags+0x7a)[0x56544fa]
/usr/lib/libpython2.5.so.1.0(Py_Main+0xc4f)[0x565e3df]
python(main+0x32)[0x80485d2]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7595d6]
python[0x8048501]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0 [vdso]
00111000-00115000 r-xp 00000000 fd:00 1835759
/usr/lib/python2.5/lib-dynload/stropmodule.so
00115000-00117000 rw-p 00004000 fd:00 1835759
/usr/lib/python2.5/lib-dynload/stropmodule.so
00117000-0011a000 r-xp 00000000 fd:00 1835717
/usr/lib/python2.5/lib-dynload/_localemodule.so
0011a000-0011b000 rw-p 00003000 fd:00 1835717
/usr/lib/python2.5/lib-dynload/_localemodule.so
0011b000-00121000 r-xp 00000000 fd:00 1835750
/usr/lib/python2.5/lib-dynload/operator.so
00121000-00122000 rw-p 00006000 fd:00 1835750
/usr/lib/python2.5/lib-dynload/operator.so
00122000-00128000 r-xp 00000000 fd:00 1835727
/usr/lib/python2.5/lib-dynload/_struct.so
00128000-00129000 rw-p 00006000 fd:00 1835727
/usr/lib/python2.5/lib-dynload/_struct.so
00129000-0012c000 r-xp 00000000 fd:00 1835762
/usr/lib/python2.5/lib-dynload/timemodule.so

[snip ...]

Anyone have some inputs on how to determine the cause???

Thanks,
john
--
View this message in context: http://www.nabble.com/f2py-Error---m...p20128015.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Oct 23 '08 #1
0 1329

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cláudia Cristina dos Santos | last post by:
Dear Friends, I´m trying to run Python in window XP PC. Please advise-me on how to deal with the following errors: C:\Python234>f2py -c -m hello hello.f running build running config_fc...
6
by: M. Faust | last post by:
Hi, after having installed F2PY-2.43.239_1806 I get the following error when trying to run the hello.f example from the /docs directory: f2py.py --fcompiler=compaqv -c -m hello hello.f...
0
by: Carl | last post by:
I have been experimenting with f2py and some fortran code that I want to port to Python. I have the following fortran file (TEST_00.f): C FILE: TEST_00.f SUBROUTINE FOO(WORK) IMPLICIT REAL*8...
6
by: Sile | last post by:
Hello, I'm trying to get f2py working from the command line on windows XP. I have mingw32 as my C complier (after some advice on a previous thread) and Compaq Visual Fortran 6.5. Changing my C...
5
by: Tyler | last post by:
Hello All: Since my last post I have attempted to use the f2py program which comes with numpy. I am able to create a <module_name>.so file fine; however, when I import it into Python, I receive...
1
by: Blubaugh, David A. | last post by:
Pauli, Yes, I am utilizing the windows environment. I cannot install f2py. I obtain the following error when I try to execute the setup.py file within the f2py folder located within the...
0
by: Blubaugh, David A. | last post by:
Sir, Let me state that do have extensive experience with developing binary files. Please note that I have followed all of the instructions to the letter as far as developing a DLL to be...
0
by: John [H2O] | last post by:
I can try, would you mind giving very brief instructions on how to 'run it under gdb'... thanks! I'll post results over at numpy-discussions. Robert Kern-2 wrote: -- View this message in...
1
by: bkamrani | last post by:
Hi Python gurus, I have installed numpy and interested in testing f2py module using the first example in the documentation. First I tried: C:\test>python "C:\Program...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.