- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everyone:
I am getting a seg fault that I don't understand. It occurs on the last line of the following code fragment:
cvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
if( (vrel2.lt.0.0d0) .or. (vrel2.ne.vrel2) ) then
write(*,*) 'Here #DMM30 ',vrel2
endif
c^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
vrel = sqrt(vrel2)
vrel and vrel2 are simple real*8's that are local to the subroutine. The code is compiled with the -O -CB -traceback -fpe0 -recursive -openmp flags. The code is parallelized with OMP but this part of the code is not in a parallel loop. It IS at the bottom of a recursive loop, however. The code runs for about 12 hours before the error occurs and the subroutine is called many billions of times. The traceback looks like:
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
stryAFdebug 00000000004B57B4 Unknown Unknown Unknown
libpthread.so.0 0000003F4820EEE0 Unknown Unknown Unknown
stryAFdebug 00000000005405DB Unknown Unknown Unknown
stryAFdebug 0000000000533D85 Unknown Unknown Unknown
stryAFdebug 00000000004823F3 discard_mass_merg 6507 stryAFdebug.f
stryAFdebug 0000000000478870 symba6_merge_ 4454 stryAFdebug.f
stryAFdebug 000000000047564F symba6_step_recur 10729 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 000000000047537A symba6_step_recur 10712 stryAFdebug.f
stryAFdebug 00000000004776CC symba6_step_recur 10614 stryAFdebug.f
stryAFdebug 0000000000474A4A symba6_step_inter 5085 stryAFdebug.f
stryAFdebug 00000000004A8C1B symba6_step_pl_ 183 symba6_step_pl.f
stryAFdebug 000000000040B0E2 MAIN__ 661 stryAFdebug.f
stryAFdebug 000000000040476C Unknown Unknown Unknown
libc.so.6 0000003F4762135D Unknown Unknown Unknown
stryAFdebug 0000000000404669 Unknown Unknown Unknown
I would appreciate any insight into what is going on.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/895D6060305DF45A57FACF854B5A8CD1/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page