I have seen a similar error when I tried to access pin numbers that did not correspond to GPIO pins on my NodeMCU (Amica) ESP8266 dev board. Executing this instruction ...
pinMode(6, OUTPUT);
will generate a reset and the following text will be returned to the serial port ...
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
The same result occurs when I try to set pins 7, 8 and 11 as output. Your error message is a bit more involved. I'm running Arduino IDE 1.6.5-r2 (with 32-bit Windows 7) and have the board "NodeMCU 1.0 (ESP-12E Module)" selected. This appears to be a critical selection. I cannot program my device with ANY of the other ESP8266 options offered by the boards manager. To get the "NodeMCU 1.0 (ESP-12E Module)" I had to install an additional boards manager. Under preferences, I put in an additional boards manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json and installed it from the boards manager. You can see details of how to set up additional boards here: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide.
Good luck.