Hello,
just short follow-up to this thread. I've also tried gcc head (from today) and its libstdc++ is OK, i.e. no dead-lock presented. I've also verified that it is libstdc++ and not libgcc_s.
Any idea what's going wrong with GCC 4.0.x's libstdc++?
Thanks, Karel