Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compiler Issues

chauvjo
Novice
573 Views
Could some kind Intel engineer please take a look at posts:

Runtime Fatal Error (malloc) During Program Start - Error in loading executable (never reaches first executable statement)
Xcode Debugger SIGSEGV - idb error on simple code

I have read all the online hints, used various compiler options, installed all the latest updates....problems still exists. Any ideas?

Thanks
0 Kudos
2 Replies
Ron_Green
Moderator
573 Views
Quoting - chauvjo
Could some kind Intel engineer please take a look at posts:

Runtime Fatal Error (malloc) During Program Start - Error in loading executable (never reaches first executable statement)
Xcode Debugger SIGSEGV - idb error on simple code

I have read all the online hints, used various compiler options, installed all the latest updates....problems still exists. Any ideas?

Thanks

I have an idea - you are sure it dies before the first executable statement, yes? You have put a print statement at the start of the program?

I would guess that your static data exceeds the physical memory of your system. How much RAM does your Mac have? And how large are your arrays in COMMON (or just declared in the main program)?

You cannot exceed the size of physical memory + page space in your program's data. Try the size command 'size' on your executable to get an idea of how much memory you need:

size a.out
__TEXT __DATA __OBJC others dec hex
610304 90112 0 4294991872 4295692288 1000b1000

this works for static data but NOT for dynamic data.

ron
0 Kudos
chauvjo
Novice
573 Views

I have an idea - you are sure it dies before the first executable statement, yes? You have put a print statement at the start of the program?

I would guess that your static data exceeds the physical memory of your system. How much RAM does your Mac have? And how large are your arrays in COMMON (or just declared in the main program)?

You cannot exceed the size of physical memory + page space in your program's data. Try the size command 'size' on your executable to get an idea of how much memory you need:

size a.out
__TEXT __DATA __OBJC others dec hex
610304 90112 0 4294991872 4295692288 1000b1000

this works for static data but NOT for dynamic data.

ron
Thanks Ron for your reply.

1. Since the debugger never reached the first executable statement, I assumed it died somewhere during the loading.

2. I have 4 GB of RAM on my Mac.

3. Using the size command on my executable, I get the following:

__TEXT __DATA __OBJC others dec hex
8589312 970752 0 4297441280 4307001344 100b7a000

If I am reading this correctly, it is saying my application requires a total of just over 4 GB of memory. How can that be when I have run this same program on a system with less than 100 MB of RAM. I just ran a case on a SGI which only has 2 GB of RAM.

Here is the output from thesize -dcommand on the SGI for the exact same application:

Section Size Physical Virtual
Address Address

.interp 21 268435732 268435732
.MIPS.options 128 268435760 268435760
.reginfo 24 268435888 268435888
.dynamic 288 268435912 268435912
.liblist 60 268436200 268436200
.dynstr 3579 268436260 268436260
.hash 3828 268439840 268439840
.dynsym 7088 268443668 268443668
.MIPS.symlib 443 268450756 268450756
.msym 3544 268451200 268451200
.conflict 4 268454744 268454744
.MIPS.stubs 1008 268454748 268454748
.text 1294408 268455760 268455760
.init 24 269750176 269750176
.rodata 116071 269828096 269828096
.data 31280 269944168 269944168
.got 1692 269975448 269975448
.sbss 16224 269977144 269977144
.lit4 8564 269993368 269993368
.srdata 1495 270001936 270001936
.sdata 132 270003432 270003432
.lit8 40 270003568 270003568
.bss 222500 270003616 270003616
1315942 + 174003 + 222500 = 1712445




0 Kudos
Reply