Peter Bismuti wrote: > > My program is crashing giving the error message: Floating exception > (core dumped) but I can't seem to get the compiler (NagF90) or the > debugger (gdb/Linux) to show where the error is occuring. The best > I have gotten so far has been: > > k = 358 > k = 359 > Floating exception (core dumped) > > gdb 2d core > GDB is free software and you are welcome to distribute copies of it > under certain conditions; type "show copying" to see the conditions. > There is absolutely no warranty for GDB; type "show warranty" for details. > GDB 4.16 (i486-slackware-linux), Copyright 1996 Free Software Foundation, Inc... > Core was generated by `2d'. > Program terminated with signal 8, Floating point exception. > Reading symbols from /lib/libm.so.5...done. > Reading symbols from /lib/libc.so.5...done. > Reading symbols from /lib/ld-linux.so.1...done. > #0 0x400433c5 in __kill () > (gdb) where > #0 0x400433c5 in __kill () > #1 0x4002c39d in gsignal () > #2 0x805195c in equation_interface_MP_method_of_characteristics (ib20_=0xbffff30c, > ib21_=0xbffff2e4, xnorm0_=0x81573f0, xnorm1_=0x8157408, q0_=0x8157420, q1_=0x8157448, > q_=0xbffff2e8) at EQUATION/equation_interface.f90:131 > #3 0x80675e8 in mortar_operations_MP_project_from_layer_to_mortar (mrt_=0x8190738) > at MORTAR/mortar_operations.f90:157 > #4 0x8075c7c in mortar_library_MP_traverse_mortar_list (head_=0x8190738, > mortar_operation_=0x8064724 <mortar_operations_MP_project_from_layer_to_mortar>) > at MORTAR/mortar_library.f90:23 > #5 0x8075d3c in mortar_library_MP_traverse_mortar_list (head_=0x8185c58, > mortar_operation_=0x8064724 <mortar_operations_MP_project_from_layer_to_mortar>) > at MORTAR/mortar_library.f90:27 > #6 0x804ace4 in main (argc=1, argv=0xbffff560) at driver.f90:241 > #7 0x8048fbe in ___crt_dummy__ () > (gdb) > > rather cryptic, not much help. Any tips? > thanks > _______________________________________________________________________ > | Pete Bismuti | > | Supercomputer Computations Research Institute | > | Florida State University - Department of Mathematics | > | [log in to unmask] (904)644-6263 | > |_____________________________________________________________________| Hi! The problem in debugging the executables made from NAG f90 is the intermediate C step. As you don't see the C code which is generated you don't know what you are actually debugging. To circumvent this I sometimes compiled the code in question with the option to produce explicitly the C code (I think it is -S). This gives you the chance to see the code you are debugging and to know all the names of the variables (sometimes converted into C structs). It might also be useful for you to take a look at the C header files which come with the NAG compiler. Good luck! Karsten -- *********************************************************************** Karsten Chmielewski * e-mail [log in to unmask] Institut fuer Theoretische Physik * Tel. 00-49-511 7 62 3659 Appelstr.2 * FAX 00-49-511 7 62 3023 D-30167 Hannover, Germany * *********************************************************************** %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%