I do not think it has anything to do with the pauses.
I think you hit an infinite loop from a "do while"
Here is a trace for one:
(gdb) where
#0 0x00000001000083c7 in buildvecsolidxfem_ (dndxmat=(( -9.7663740497368323) ( 9.7663740497367009) ( 2.9608986775360226) ( -2.9608986775358908) ), dndymat=(( -11.950656770462516) ( -3.6231137213409177) ( 3.6231137213409177) ( 11.950656770462516) ), dmdxmat=(( 0) ( 0) ( 0) ( 0) ), dmdymat=(( 0) ( 0) ( 0) ( 0) ), df1dxmat=(( 0) ( 0) ( 0) ( 0) ), df1dymat=(( 0) ( 0) ( 0) ( 0) ), df2dxmat=(( 0) ( 0) ( 0) ( 0) ), df2dymat=(( 0) ( 0) ( 0) ( 0) ), df3dxmat=(( 0) ( 0) ( 0) ( 0) ), df3dymat=(( 0) ( 0) ( 0) ( 0) ), df4dxmat=(( 0) ( 0) ( 0) ( 0) ), df4dymat=(( 0) ( 0) ( 0) ( 0) ), wwint=(9.5386523137497834e-06), ul=(( ( ) ) ), ndf=12, hrn=(), hr1=(), nh=7, ud=(), sig256=(( -12965.890182594299) ( -1827681.608621985) ( 0) ( 495574.1424386935) ( 0) ( 0) ( 0) ( 0) ( 0) ), nq=256, tk=0.40999999999999998, isw=6, dpsolid=(-4815.2028909287465, 15073.814454592821, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1410.9640273347925, 7844.712308082846, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1328.4665405345484, -2756.5337930617775, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4897.700377728991, -20161.992969613901, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) at SubRoutine3/BuildVecSolidXFEM.f:120
#1 0x000000010003be89 in sxfem2d1_ (d=(), ul=(( ( ) ) ), xl=(( ) ), ix=(), tl=(), s=(( ) ), p=(), ndf=12, ndm=2, nst=48, isw=6) at SubRoutine3/Sxfem2d1.f:344
#2 0x00000001000405dd in elmt01_ (d=(), ul=(), xl=(( ) ), ix=(), tl=(), s=(( ) ), p=(), ndf=12, ndm=2, nst=48, isw=6) at SubRoutine3/elmt01.f:108
If you use do while you need to protect against the loops going on forever. Maybe add a counter and bail out after a set number?
The one I reached was
Inside the other half hyperbolic