You are walking out of the array log_self at this line in your code.
log_self(10) = log_self(7);
You should always compile your code with the safe version of ADMB which
has bounds checking
especially if you are observing strange behaviour.