#0 0x00de9c1e in QReadWriteLock::~QReadWriteLock() ()
Are you sure this is the backtrace of the code you posted in post #1?
The back trace says that a destructor of QReadWriteLock object failed, probably as part of a QFile or QIODevice object destruction, non of which is to be seen in the code you posted..