I have the same problem and I could not solve. I have installed the version apache-log4cxx-0.10.0. apr-1.3.6 and apr-util-1.3.8. in a Red Hat 5 x64

I tried with the patch 596934 and does not work.

When the program ends gives an exception

terminate called after throwing an instance of 'log4cxx::helpers::MutexException'
  what():  Mutex exception: stat = 22
./tester.sh: line 71: 17226 Aborted                 ./tester

Arturo Bernal Gimeno