473,796 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Eva lCodeEx+0x579)[0x5636c59]
/usr/lib/libpython2.5.so .1.0[0x55d0eb2]
/usr/lib/libpython2.5.so .1.0(PyObject_C all+0x37)[0x55b10b7]
/usr/lib/libpython2.5.so .1.0(PyEval_Eva lFrameEx+0x466f )[0x5633e7f]
/usr/lib/libpython2.5.so .1.0(PyEval_Eva lCodeEx+0x695)[0x5636d75]
/usr/lib/libpython2.5.so .1.0(PyEval_Eva lCode+0x63)[0x5636fd3]
/usr/lib/libpython2.5.so .1.0[0x5652542]
/usr/lib/libpython2.5.so .1.0(PyRun_File ExFlags+0x92)[0x5652602]
/usr/lib/libpython2.5.so .1.0(PyRun_Simp leFileExFlags+0 x1bc)[0x5653d8c]
/usr/lib/libpython2.5.so .1.0(PyRun_AnyF ileExFlags+0x7a )[0x56544fa]
/usr/lib/libpython2.5.so .1.0(Py_Main+0x c4f)[0x565e3df]
python(main+0x3 2)[0x80485d2]
/lib/libc.so.6(__lib c_start_main+0x e6)[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.s o
0011a000-0011b000 rw-p 00003000 fd:00 1835717
/usr/lib/python2.5/lib-dynload/_localemodule.s o
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 1356

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

Similar topics

0
1239
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 running build_src building extension "hello" sources
6
2226
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 numpy_info: FOUND: define_macros = include_dirs =
0
1484
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 (A-H, O-Z) COMMON /SIZES/ NINT DIMENSION WORK(NINT)
6
2767
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 complier reduced my errors but I'm still having trouble. I think I have all the correct paths set but I'm not sure. F2PY gets further when I specifically tell it what my compilers are as follows................. C:\Program...
5
2026
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 the following message: Traceback (most recent call last):
1
2048
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 numpy master folder: Warning: Assuming default configuration
0
204
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 imported. However, it is not working correctly. I believe it might be my system environment variables?? Thanks for your reply, David Blubaugh
0
1106
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 context: http://www.nabble.com/f2py-Error---module-crashes-after-several-iterations...-tp20128015p20131768.html
1
3978
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 Files\Python25\Scripts\f2py.py" -c fib1.f running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9533
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.