Randomly timeouting test

Cyrille Berger Skott cberger at cberger.net
Wed Mar 23 11:50:19 CET 2011


On Wednesday 23 March 2011, Cyrille Berger Skott wrote:
> Hi,
> 
> Since March 20, on http://my.cdash.org/index.php?project=Calligra , I get
> plenty of random test failure, they seem to lock at exit time, for
> instance:
> 
> http://my.cdash.org/testDetails.php?test=5447865&build=170134
> http://my.cdash.org/testDetails.php?test=5440894&build=169866
> 
> Before anyone ask, it is a clean build :) (fully clean, I have clean ccache
> as well) And, I have a strong suspicion that the culprit is:
> http://quickgit.kde.org/?p=calligra.git&a=commit&h=21b3d21808ae4d24f611acd9
> a8f0dd1adbbfc66d

I did a bit more investigation. It is very difficult to get the deadlock if 
the machine is not under load. In attachement I have put the backtraces for 
the deadlock.

-- 
Cyrille Berger Skott
-------------- next part --------------
(gdb) info threads 
  3 Thread 0x7f6b6f906700 (LWP 15287)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  2 Thread 0x7f6b6f105700 (LWP 15288)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
* 1 Thread 0x7f6b816b17a0 (LWP 15270)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
(gdb) thread 1
[Switching to thread 1 (Thread 0x7f6b816b17a0 (LWP 15270))]#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
162     in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(gdb) bt
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f6b7bee672b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6b7bee5814 in QThread::wait(unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x00007f6b80a310f1 in ~KisTileDataStore (this=0x25be32c, __in_chrg=<value optimized out>) at /home/cyrille/src/calligra/krita/image/tiles3/kis_tile_data_store.cc:81
#4  0x00007f6b80a31817 in destroy () at /home/cyrille/src/calligra/krita/image/tiles3/kis_tile_data_store.cc:100
#5  0x00007f6b7ac56262 in __run_exit_handlers (status=0) at exit.c:78
#6  *__GI_exit (status=0) at exit.c:100
#7  0x00007f6b7ac3bc54 in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff939bd5e8) at libc-start.c:258
#8  0x0000000000402e29 in _start ()
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f6b6f105700 (LWP 15288))]#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
162     in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(gdb) bt
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f6b7bee672b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6b7bee2511 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007f6b80a6382a in KisTileDataSwapper::run (this=0x25be138) at /home/cyrille/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#4  0x00007f6b7bee5775 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f6b7bc559ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f6b7ad0370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (Thread 0x7f6b6f906700 (LWP 15287))]#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
162     in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(gdb) bt
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f6b7bee672b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6b7bee2680 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007f6b80a3221e in KisTileDataPooler::waitForWork (this=0x25be100) at /home/cyrille/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:160
#4  0x00007f6b80a32718 in KisTileDataPooler::run (this=0x25be100) at /home/cyrille/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:182
#5  0x00007f6b7bee5775 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f6b7bc559ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f6b7ad0370d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()


More information about the kimageshop mailing list