Runtime Fatal Error (malloc) During Program Start

Runtime Fatal Error (malloc) During Program Start

I compiled the following code without any errors or warnings. When I attempt to run the program, it fails in malloc even before it gets to the first executable line in Main. The compiler options used were:

-O0 -save -zero -g -save-temps -traceback -fpp -DDEBUG

I am running Mac OS 10.6.2 and Intel FortranVersion 11.1 Build 20091130Package ID: m_cprof_p_11.1.080. Any ideas?

UPDATE: I added additional information found in the console to the bottom of this message.

Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.319]
------------------
object file name:
Reading symbols from /Users/work/Desktop/Tools/Size/src/size.app...done.
(idb) break main
Breakpoint 1 at 0x1000014b3: file /Users/work/Desktop/Tools/Size/src/MAIN.f, line 439.
(idb) run
Starting program: /Users/work/Desktop/Tools/Size/src/size.app
iidb(11566) malloc: *** error for object 0x33f6540300000000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Intel Debugger for applications running on Intel 64, Version 11.1 caught signal "Abort trap" (6).
This is an unexpected condition and may indicate the presence of a defect.
If you wish to report this, please include the stack trace that follows.

terminate called after throwing an instance of 'FatalError'

---------------- Console Message ----------------

Process: iidb [22181]
Path: /opt/intel/Compiler/11.1/080/bin/iidb
Identifier: iidb
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ksh [22164]

Date/Time: 2010-01-01 17:48:27.074 -0800
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff81b50fe6 __kill + 10
1 libSystem.B.dylib 0x00007fff81bf1e32 abort + 83
2 libstdc++.6.dylib 0x00007fff841ce5d2 __tcf_0 + 0
3 libstdc++.6.dylib 0x00007fff841ccae1 __cxxabiv1::__terminate(void (*)()) + 11
4 libstdc++.6.dylib 0x00007fff841ccb16 __cxxabiv1::__unexpected(void (*)()) + 0
5 libstdc++.6.dylib 0x00007fff841ccbfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
6 iidb 0x00000001001c2a1a sigcatch(int, int, sigcontext*) + 332
7 libSystem.B.dylib 0x00007fff81b62eaa _sigtramp + 26
8 ??? 0x00007fff5fbfe570 0 + 140734799799664
9 libSystem.B.dylib 0x00007fff81b09155 free + 128
10 iidb 0x000000010001229c ControlDefUxMac::isThisMessageAnEventForIDB(int, bool, int, int, bool*, bool*, LightweightWorkerMac**, int*) + 284
11 iidb 0x000000010001280b ControlDefUxMac::waitPidViaPort(int, int*, int) + 185
12 iidb 0x0000000100012c45 ControlDefUxMac::waitpidCall(char const*, int*, int, int*, int) + 197
13 iidb 0x0000000100014194 ControlDefUxMac::waitForCloneToStop(int) + 276
14 iidb 0x0000000100014604 ControlDefUxMac::waitForProcessToStop() + 164
15 iidb 0x00000001000056ee ControlDef::waitForEvent(ENGINENotification*&, bool) + 74
16 iidb 0x00000001000058bc ControlDef::waitForUserEvent(ENGINENotification*&) + 42
17 iidb 0x00000001000385d0 ProcessDef::go(bool, bool&) + 196
18 iidb 0x0000000100021799 SessionBase::RunUntilStopped(bool) + 383
19 iidb 0x000000010017a89d CmdRun::do_it(CmdExecutionContext&, BaseForCmd::CmdResult&) + 787
20 iidb 0x00000001001436d6 BaseForCmd::execute(bool) + 8106
21 iidb 0x00000001001bed87 processCommandsWkr(int&, char*&) + 1811
22 iidb 0x00000001001bee49 ProcessCommands() + 51
23 iidb 0x00000001001bf022 mainCommand() + 14
24 iidb 0x00000001001c2776 idbMain(int, char const**, char const**) + 484
25 iidb 0x00000001000e331b main + 273
26 iidb 0x0000000100001204 _start + 234
27 iidb 0x0000000100001119 start + 33

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff70453298 rcx: 0x00007fff5fbfe068 rdx: 0x0000000000000000
rdi: 0x00000000000056a5 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfe080 rsp: 0x00007fff5fbfe068
r8: 0x0000000000000000 r9: 0x00000001046ad1f0 r10: 0x00007fff81b4d026 r11: 0x0000000000000202
r12: 0x0000000100589859 r13: 0x00000001032249f0 r14: 0x00000001001c28ce r15: 0x33f6540300000000
rip: 0x00007fff81b50fe6 rfl: 0x0000000000000202 cr2: 0x00007fff7080b940

Binary Images:
0x100000000 - 0x100694fc7 +iidb ??? (???) <18693CF8-6C34-491A-8818-1B5785641C10> /usr/bin/iidb
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) /usr/lib/dyld
0x7fff81b02000 - 0x7fff81cc0ff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
0x7fff84182000 - 0x7fff841fffef libstdc++.6.dylib ??? (???) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff8676c000 - 0x7fff86770ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib

1 contenuto / 0 nuovi
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione