mariangels
Registered
Hi,
I've just had my laptop G4, mac os x 10.3.9 repaired with a new motherboard (in an awfully long process). Anyway, the day after I got it back, I ran a fortran program:
g77 -O3 myprogram.f -o test.x
which ran beautifully.
One week after, I decided to run the same thing again, starting with different initial conditions, and I've got all sort of problems, depending on the optimisation used.
If
g77 -O3 myprogram.f -o test.x
and then
./test.x
it crashes after a lot of timesteps (every 200 written to screen) with "Bus error".
If I don't optimise, I get a different error complaining about I/O.
Sometimes, the counter in the loop that's written to screen (as in iloop in "do iloop=1,16") goes negative, some other times the number of mismatches in a grid, always a positive number, goes negative. Or some other times, the loop jums from 130200 to 11000200 (random example).
In Library/Logs/CrashReporter/, I've found test.x.crash.log
--------------- test.x.crash.log --------------------------------------------------
**********
Host Name: rioja.local
Date/Time: 2005-10-22 13:16:18 +0100
OS Version: 10.3.9 (Build 7W98)
Report Version: 2
Command: test.x
Path: ./test.x
Version: ??? (???)
PID: 1201
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 test.x 0x00008228 f_s + 0x1c (crt.c:300)
1 test.x 0x00008f60 pars_f + 0x4c (crt.c:300)
2 test.x 0x00006f48 s_wsfe + 0x11c (crt.c:300)
3 test.x 0x00001ef0 MAIN__ + 0x258 (crt.c:300)
4 test.x 0x0000305c main + 0x34 (crt.c:300)
5 test.x 0x000018d0 _start + 0x188 (crt.c:267)
6 dyld 0x8fe1a278 _dyld_start + 0x64
PPC Thread State:
srr0: 0x00008228 srr1: 0x0000f930 vrsave: 0x00000000
cr: 0x24000044 xer: 0x00000002 lr: 0x00008220 ctr: 0x00000000
r0: 0x00008f60 r1: 0xbfffef50 r2: 0x0001208c r3: 0x00000000
r4: 0x00000000 r5: 0x00000000 r6: 0x8fe505fc r7: 0xfffffe0a
r8: 0xffffffff r9: 0x00010d40 r10: 0xffffffff r11: 0x00010d40
r12: 0x9664954c r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00011ca0 r17: 0x00000001 r18: 0x00000009 r19: 0x00011ca0
r20: 0x00011ca0 r21: 0x00011ca0 r22: 0x14f8b589 r23: 0x51eb851f
r24: 0x00030d40 r25: 0x00011ca0 r26: 0xbffff080 r27: 0xbffff3a0
r28: 0x00011ca0 r29: 0x8fe5da14 r30: 0x00000000 r31: 0x00008220
Binary Images Description:
0x1000 - 0xefff test.x ./test.x
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x96636000 - 0x96785fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
**********
Host Name: vistamp1.phys.ucl.ac.uk
Date/Time: 2005-10-24 18:13:39 +0100
OS Version: 10.3.9 (Build 7W98)
Report Version: 2
Command: test.x
Path: ./test.x
Version: ??? (???)
PID: 2868
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000014
Thread 0 Crashed:
0 test.x 0x00003ff4 test_ + 0x30 (crt.c:300)
1 test.x 0x00003184 move_ + 0x198 (crt.c:300)
2 test.x 0x00002af0 MAIN__ + 0x1d0 (crt.c:300)
3 test.x 0x00004050 main + 0x34 (crt.c:300)
4 test.x 0x00002558 _start + 0x188 (crt.c:267)
5 dyld 0x8fe1a278 _dyld_start + 0x64
PPC Thread State:
srr0: 0x00003ff4 srr1: 0x0000f930 vrsave: 0x00000000
cr: 0x44000042 xer: 0x20000006 lr: 0x00003184 ctr: 0x9664954c
r0: 0x0000006e r1: 0xbfffeb60 r2: 0x00000002 r3: 0x00000002
r4: 0xbfffefb4 r5: 0xbffffad0 r6: 0xbffff0a0 r7: 0x00000014
r8: 0xbfffefb8 r9: 0x00000069 r10: 0x00000008 r11: 0x00000002
r12: 0x0000000c r13: 0x00000008 r14: 0x43300000 r15: 0x00012ff4
r16: 0x00012ff4 r17: 0x00012ff4 r18: 0x00012ff4 r19: 0x00012ff4
r20: 0xbffffad4 r21: 0xbfffeb98 r22: 0x0000000f r23: 0xbffff6d0
r24: 0x00000008 r25: 0xbffff090 r26: 0xbffffad0 r27: 0x00000004
r28: 0x00012ff4 r29: 0x00000008 r30: 0x00001f3f r31: 0x00002ff4
Binary Images Description:
0x1000 - 0xffff test.x ./test.x
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x96636000 - 0x96785fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
----------------------------------------------------------------------------------
I'm running g77 which corresponds to gcc version 3.4.1.
Just in case, the KERN_PROTECTION_FAILURE does not only appear with the fortran code, but in recent crashes of Help Viewer, Mathematica and Xcode.
Any help would be greatly appreciated.
mariangels
I've just had my laptop G4, mac os x 10.3.9 repaired with a new motherboard (in an awfully long process). Anyway, the day after I got it back, I ran a fortran program:
g77 -O3 myprogram.f -o test.x
which ran beautifully.
One week after, I decided to run the same thing again, starting with different initial conditions, and I've got all sort of problems, depending on the optimisation used.
If
g77 -O3 myprogram.f -o test.x
and then
./test.x
it crashes after a lot of timesteps (every 200 written to screen) with "Bus error".
If I don't optimise, I get a different error complaining about I/O.
Sometimes, the counter in the loop that's written to screen (as in iloop in "do iloop=1,16") goes negative, some other times the number of mismatches in a grid, always a positive number, goes negative. Or some other times, the loop jums from 130200 to 11000200 (random example).
In Library/Logs/CrashReporter/, I've found test.x.crash.log
--------------- test.x.crash.log --------------------------------------------------
**********
Host Name: rioja.local
Date/Time: 2005-10-22 13:16:18 +0100
OS Version: 10.3.9 (Build 7W98)
Report Version: 2
Command: test.x
Path: ./test.x
Version: ??? (???)
PID: 1201
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 test.x 0x00008228 f_s + 0x1c (crt.c:300)
1 test.x 0x00008f60 pars_f + 0x4c (crt.c:300)
2 test.x 0x00006f48 s_wsfe + 0x11c (crt.c:300)
3 test.x 0x00001ef0 MAIN__ + 0x258 (crt.c:300)
4 test.x 0x0000305c main + 0x34 (crt.c:300)
5 test.x 0x000018d0 _start + 0x188 (crt.c:267)
6 dyld 0x8fe1a278 _dyld_start + 0x64
PPC Thread State:
srr0: 0x00008228 srr1: 0x0000f930 vrsave: 0x00000000
cr: 0x24000044 xer: 0x00000002 lr: 0x00008220 ctr: 0x00000000
r0: 0x00008f60 r1: 0xbfffef50 r2: 0x0001208c r3: 0x00000000
r4: 0x00000000 r5: 0x00000000 r6: 0x8fe505fc r7: 0xfffffe0a
r8: 0xffffffff r9: 0x00010d40 r10: 0xffffffff r11: 0x00010d40
r12: 0x9664954c r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00011ca0 r17: 0x00000001 r18: 0x00000009 r19: 0x00011ca0
r20: 0x00011ca0 r21: 0x00011ca0 r22: 0x14f8b589 r23: 0x51eb851f
r24: 0x00030d40 r25: 0x00011ca0 r26: 0xbffff080 r27: 0xbffff3a0
r28: 0x00011ca0 r29: 0x8fe5da14 r30: 0x00000000 r31: 0x00008220
Binary Images Description:
0x1000 - 0xefff test.x ./test.x
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x96636000 - 0x96785fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
**********
Host Name: vistamp1.phys.ucl.ac.uk
Date/Time: 2005-10-24 18:13:39 +0100
OS Version: 10.3.9 (Build 7W98)
Report Version: 2
Command: test.x
Path: ./test.x
Version: ??? (???)
PID: 2868
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000014
Thread 0 Crashed:
0 test.x 0x00003ff4 test_ + 0x30 (crt.c:300)
1 test.x 0x00003184 move_ + 0x198 (crt.c:300)
2 test.x 0x00002af0 MAIN__ + 0x1d0 (crt.c:300)
3 test.x 0x00004050 main + 0x34 (crt.c:300)
4 test.x 0x00002558 _start + 0x188 (crt.c:267)
5 dyld 0x8fe1a278 _dyld_start + 0x64
PPC Thread State:
srr0: 0x00003ff4 srr1: 0x0000f930 vrsave: 0x00000000
cr: 0x44000042 xer: 0x20000006 lr: 0x00003184 ctr: 0x9664954c
r0: 0x0000006e r1: 0xbfffeb60 r2: 0x00000002 r3: 0x00000002
r4: 0xbfffefb4 r5: 0xbffffad0 r6: 0xbffff0a0 r7: 0x00000014
r8: 0xbfffefb8 r9: 0x00000069 r10: 0x00000008 r11: 0x00000002
r12: 0x0000000c r13: 0x00000008 r14: 0x43300000 r15: 0x00012ff4
r16: 0x00012ff4 r17: 0x00012ff4 r18: 0x00012ff4 r19: 0x00012ff4
r20: 0xbffffad4 r21: 0xbfffeb98 r22: 0x0000000f r23: 0xbffff6d0
r24: 0x00000008 r25: 0xbffff090 r26: 0xbffffad0 r27: 0x00000004
r28: 0x00012ff4 r29: 0x00000008 r30: 0x00001f3f r31: 0x00002ff4
Binary Images Description:
0x1000 - 0xffff test.x ./test.x
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x96636000 - 0x96785fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
----------------------------------------------------------------------------------
I'm running g77 which corresponds to gcc version 3.4.1.
Just in case, the KERN_PROTECTION_FAILURE does not only appear with the fortran code, but in recent crashes of Help Viewer, Mathematica and Xcode.
Any help would be greatly appreciated.
mariangels