Okay, this may or may not be it, but I figured I’d give it a shot since I really like the Cube series. In any event, is it possible that you are misremembering the movie? The reason I ask is because the cube series fit, or at least they are very close.
The premise of all three films is roughly the same – a bunch of people lose their memories and wind up alone in a room. This room is connected to other rooms (possibly upward of 100 or so) and the individuals meet up with each other. Some of the rooms have traps in them – ranging from the generic poison gas to the bizarre, a room where time accelerates to such an extent that the occupants end up dying due to the amount of time in it. I believe all three have one protagonist who survives and makes it outside of the cube. That scene is generally weird – almost as though they are walking into a void in some respects.
So, the third movie, Cube Zero, has as one of the protagonists, a woman who is trying to reunite with her daughter. So I’m thinking you may have seen that movie and/or Hypercube, which has a weird ending where some of the characters die in a manner that could be construed as being sucked into space.
I can't recall anything about a comb though.