It's certainly not good. Basically it means a person goes into a deeply altered state of mind to escape thinking about something traumatic. When they come back to normal they often don't remember what they did during that state.
This is considered a psychological reaction to trauma, but anyone exhibiting these symptoms should also be checked for complex-partial seizures which could present just about the same way: to someone watching they would seem to be very spaced out as if sleepwalking.
http://www.nami.org/Content/ContentGroups/Helpline1/Dissociative_Disorders.htm