The problem is in the least obvious place - the std::ostringstream output deadlocks for no reason - see file project/jni/application/src/asstring.h. The only reason I can think of is that previously I've has one big statically linked library, and now libstlport and libapplication areseparate shared libraries. But why then all std::vectors etc work?