You seem to be calling entry_main_ inside of itself. Eventually that'll produce a stack overflow.