segmentation fault while looping

Hello lammps users, I have placed the following code inside another loop. When I execute the program I
get the error (mentioned below). This piece of code works before the loop starts and gives the correct result.
However when placed inside another loop this gives the error of exit code:11

Can you please suggest what could be the problem ?

Code:

label loopdelete
variable i loop ${N_0}
variable x equal type[$i]
if “$x==15” then &
“print $x”
next i
jump in.mysys loopdelete

Error:

BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= EXIT CODE: 11
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

Hello lammps users, I have placed the following code inside another loop.
When I execute the program I
get the error (mentioned below). This piece of code works before the loop
starts and gives the correct result.
However when placed inside another loop this gives the error of exit code:11

Can you please suggest what could be the problem ?

it cannot be due to this piece of code. this is working correctly and
"valgrind clean" (i.e. it has no operations that can potentially cause
segmentation faults or memory corruption). at least with the current
version of LAMMPS (30 Oct 2014).

axel.