This is an oldie problem with a tech bulletin first issued in 2001 but it still comes up every now and then these days. You put your glass under the in-door water dispenser and press the button for water. Your glass starts filling with water but so does the icemaker, making a big frozen mess inside the freezer.
The problem is a shorted diode in the icemaker wiring harness. The new diode comes conveniently factory-installed and bundled in a shiny new wiring harness. Come git you one==> http://www.repairclinic.com/PartDetail/Triac-Diode-or-Resistor/1015421
Samurai Appliance Repair Man