Arduino Reboots it self when it receives a text message it has to process

At least, initialize your array!!!

The compiler/crt0 already did that.

Is the array big enough?