{"action":"created","issue":{"url":"https://api.github.com/repos/SeisSol/SeisSol/issues/7","labels_url":"https://api.github.com/repos/SeisSol/SeisSol/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/SeisSol/SeisSol/issues/7/comments","events_url":"https://api.github.com/repos/SeisSol/SeisSol/issues/7/events","html_url":"https://github.com/SeisSol/SeisSol/issues/7","id":112948081,"number":7,"title":"invalid reads and seg faults when running LTS generated kernels","user":{"login":"alheinecke","id":6407923,"avatar_url":"https://avatars.githubusercontent.com/u/6407923?v=3","gravatar_id":"","url":"https://api.github.com/users/alheinecke","html_url":"https://github.com/alheinecke","followers_url":"https://api.github.com/users/alheinecke/followers","following_url":"https://api.github.com/users/alheinecke/following{/other_user}","gists_url":"https://api.github.com/users/alheinecke/gists{/gist_id}","starred_url":"https://api.github.com/users/alheinecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alheinecke/subscriptions","organizations_url":"https://api.github.com/users/alheinecke/orgs","repos_url":"https://api.github.com/users/alheinecke/repos","events_url":"https://api.github.com/users/alheinecke/events{/privacy}","received_events_url":"https://api.github.com/users/alheinecke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SeisSol/SeisSol/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-23T04:15:55Z","updated_at":"2015-10-23T05:46:33Z","closed_at":null,"body":"When running LTS generated Kernels there occasionally segfaults before setting up LTS. They are due to invalid reads in cfl_step in calc_deltaT.f90\r\n\r\nRank:        0 | Info    | Reading basis functions and mass matrices for DG method \r\nRank:        0 | Info    |   from file /nfs_home/aheineck/Projects/SeisSol_workspace/launch_SeisSol/Maple/BasisFunctions3D.tri\r\nRank:        0 | Info    | Reading basis functions of order            0\r\nRank:        0 | Info    | Reading mass matrices   of order            0\r\nRank:        0 | Info    | Reading basis functions of order            1\r\nRank:        0 | Info    | Reading mass matrices   of order            1\r\nRank:        0 | Info    | Reading basis functions of order            2\r\nRank:        0 | Info    | Reading mass matrices   of order            2\r\nRank:        0 | Info    | Reading basis functions of order            3\r\nRank:        0 | Info    | Reading mass matrices   of order            3\r\nRank:        0 | Info    | Reading basis functions of order            4\r\nRank:        0 | Info    | Reading mass matrices   of order            4\r\nRank:        0 | Info    | Reading basis functions of order            5\r\nRank:        0 | Info    | Reading mass matrices   of order            5\r\n\r\n==54897== Warning: client switching stacks?  SP change: 0xffefe09e0 --> 0xffecedb30\r\n==54897==          to suppress, use: --max-stackframe=3092144 or greater\r\n==54897==          further instances of this message will not be shown.\r\n==54897== Invalid write of size 8\r\n==54897==    at 0x12CA68B: calc_deltat_mod_mp_cfl_step_ (calc_deltat.f90:245)\r\n==54897==    by 0x74A6A8: dg_setup_mod_mp_inigalerkin3d_us_level2_new_ (dg_setup.f90:447)\r\n==54897==    by 0x730BCD: ini_seissol_mod_mp_ini_seissol_ (ini_seissol.f90:335)\r\n==54897==    by 0x474004: fortran_main (seissolxx.f90:190)\r\n==54897==    by 0x489E5E: main (main.cpp:55)\r\n==54897==  Address 0xffe9fac70 is on thread 1's stack\r\n==54897== \r\n==54897== Invalid read of size 8\r\n==54897==    at 0x12C9EB6: calc_deltat_mod_mp_cfl_step_ (calc_deltat.f90:245)\r\n==54897==    by 0x74A6A8: dg_setup_mod_mp_inigalerkin3d_us_level2_new_ (dg_setup.f90:447)\r\n==54897==    by 0x730BCD: ini_seissol_mod_mp_ini_seissol_ (ini_seissol.f90:335)\r\n==54897==    by 0x474004: fortran_main (seissolxx.f90:190)\r\n==54897==    by 0x489E5E: main (main.cpp:55)\r\n==54897==  Address 0xffe9fac70 is on thread 1's stack\r\n==54897== \r\n==54897== Invalid write of size 8\r\n==54897==    at 0x12CBAA1: calc_deltat_mod_mp_cfl_step_ (calc_deltat.f90:252)\r\n==54897==    by 0x74A6A8: dg_setup_mod_mp_inigalerkin3d_us_level2_new_ (dg_setup.f90:447)\r\n==54897==    by 0x730BCD: ini_seissol_mod_mp_ini_seissol_ (ini_seissol.f90:335)\r\n==54897==    by 0x474004: fortran_main (seissolxx.f90:190)\r\n==54897==    by 0x489E5E: main (main.cpp:55)\r\n==54897==  Address 0xffe9fac70 is on thread 1's stack\r\n==54897== \r\n==54897== Invalid read of size 8\r\n==54897==    at 0x12CB758: calc_deltat_mod_mp_cfl_step_ (calc_deltat.f90:252)\r\n==54897==    by 0x74A6A8: dg_setup_mod_mp_inigalerkin3d_us_level2_new_ (dg_setup.f90:447)\r\n==54897==    by 0x730BCD: ini_seissol_mod_mp_ini_seissol_ (ini_seissol.f90:335)\r\n==54897==    by 0x474004: fortran_main (seissolxx.f90:190)\r\n==54897==    by 0x489E5E: main (main.cpp:55)\r\n==54897==  Address 0xffe9fac70 is on thread 1's stack\r\n==54897== \r\nThu Oct 22 21:09:38, Info:  Deriving clusters ids for min. time step width / multiRate: 0.000409324 / 2 \r\nThu Oct 22 21:09:46, Info:  Performed a total of 394 reductions for maximum difference in 386518 cells. \r\n"},"comment":{"url":"https://api.github.com/repos/SeisSol/SeisSol/issues/comments/150479973","html_url":"https://github.com/SeisSol/SeisSol/issues/7#issuecomment-150479973","issue_url":"https://api.github.com/repos/SeisSol/SeisSol/issues/7","id":150479973,"user":{"login":"alheinecke","id":6407923,"avatar_url":"https://avatars.githubusercontent.com/u/6407923?v=3","gravatar_id":"","url":"https://api.github.com/users/alheinecke","html_url":"https://github.com/alheinecke","followers_url":"https://api.github.com/users/alheinecke/followers","following_url":"https://api.github.com/users/alheinecke/following{/other_user}","gists_url":"https://api.github.com/users/alheinecke/gists{/gist_id}","starred_url":"https://api.github.com/users/alheinecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alheinecke/subscriptions","organizations_url":"https://api.github.com/users/alheinecke/orgs","repos_url":"https://api.github.com/users/alheinecke/repos","events_url":"https://api.github.com/users/alheinecke/events{/privacy}","received_events_url":"https://api.github.com/users/alheinecke/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T05:46:33Z","updated_at":"2015-10-23T05:46:33Z","body":"Fixed, now we see:\r\n\r\nforrtl: severe (408): fort: (7): Attempt to use pointer SOUND when it is not associated with a target\r\n\r\nImage              PC                Routine            Line        Source             \r\nSeisSol_debug_gen  00000000013A1730  Unknown               Unknown  Unknown\r\nSeisSol_debug_gen  00000000012C76E7  calc_deltat_mod_m         221  calc_deltat.f90\r\nSeisSol_debug_gen  000000000074A6E1  dg_setup_mod_mp_i         447  dg_setup.f90\r\nSeisSol_debug_gen  0000000000730C04  ini_seissol_mod_m         335  ini_seissol.f90\r\nSeisSol_debug_gen  0000000000474005  fortran_main              190  seissolxx.f90\r\nSeisSol_debug_gen  0000000000489E5F  main                       55  main.cpp\r\nlibc.so.6          00002ADB9A6A9AF5  Unknown               Unknown  Unknown\r\nSeisSol_debug_gen  0000000000471829  Unknown               Unknown  Unknown\r\n"}}