In my earlier message, I was mistaken in saying that the variables were not unused. In fact, the *real* subroutine has several stray definitions. Taking them out eliminates the core dump.