It happens after most of the unclean shutdowns. Here is the backtrace of all threads.
[Switching to thread 1 (process 202806)]#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt
#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
#1 0x00007f7ffdc08ee8 in pthread_cond_wait () from /usr/lib/libpthread.so.0
#2 0x000000000044b012 in Store::Buffer::dbWriterMain (this=0x7f7ffd2450e0) at /home/marek/loxim/src/Store/Buffer.cpp:334
#3 0x000000000044b0e7 in Store::Buffer::dbWriterThread (arg=0x7f7ffd2450e0) at /home/marek/loxim/src/Store/Buffer.cpp:325
#4 0x00007f7ffdc0aaa6 in pthread_create () from /usr/lib/libpthread.so.0
#5 0x00007f7ffd352c40 in swapcontext () from /usr/lib/libc.so.12
Cannot access memory at address 0x7f7ffc000000
(gdb) threa 2
[Switching to thread 2 (process 137270)]#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt
#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
#1 0x00007f7ffdc08ee8 in pthread_cond_wait () from /usr/lib/libpthread.so.0
#2 0x000000000042581a in Logs::LogThread::pop (this=0x7f7ffd20d220, record=@0x7f7ffcfffd70) at /home/marek/loxim/src/Log/LogThread.cpp:24
#3 0x000000000042598d in Logs::LogThread::main (this=0x7f7ffd20d220) at /home/marek/loxim/src/Log/LogThread.cpp:65
#4 0x00000000004259bf in Logs::LogThread::threadMain (arg=0x7f7ffd20d220) at /home/marek/loxim/src/Log/LogThread.cpp:14
#5 0x00007f7ffdc0aaa6 in pthread_create () from /usr/lib/libpthread.so.0
#6 0x00007f7ffd352c40 in swapcontext () from /usr/lib/libc.so.12
#7 0x00007f7ffdfe5000 in ?? ()
#8 0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (process 71734)]#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt
#0 0x00007f7ffd334bea in _lwp_park () from /usr/lib/libc.so.12
#1 0x00007f7ffdc08ee8 in pthread_cond_wait () from /usr/lib/libpthread.so.0
#2 0x000000000042572c in Logs::LogThread::flush (this=0x7f7ffd20d220) at /home/marek/loxim/src/Log/LogThread.cpp:93
#3 0x0000000000421795 in Logs::LogManager::flushLog (this=0x7f7ffd234970) at /home/marek/loxim/src/Log/Logs.cpp:27
#4 0x0000000000421c47 in Logs::LogManager::commitTransaction (this=0x7f7ffd234970, tid=13, id=@0x7f7fffffd6d8) at /home/marek/loxim/src/Log/Logs.cpp:236
#5 0x00000000004eb9ad in TManager::TransactionManager::commit (this=0x7f7ffd2055c0, tr=0x7f7ffc40a080) at /home/marek/loxim/src/TransactionManager/Transaction.cpp:904
#6 0x00000000004ebb47 in TManager::Transaction::commit (this=0x7f7ffc40a080) at /home/marek/loxim/src/TransactionManager/Transaction.cpp:746
#7 0x000000000052ca7d in Schemas::OuterSchemas::init (this=0x7e0c20) at /home/marek/loxim/src/QueryExecutor/OuterSchema.cpp:229
#8 0x0000000000411934 in main (argc=1, argv=0x7f7fffffd960) at /home/marek/loxim/src/Programs/loxim_server.cpp:93