[Interest] Crashing in QProcess::waitForFinished
Bill Crocker
william.crocker at analog.com
Fri Oct 3 17:12:24 CEST 2014
Hello:
I have a multi-threaded, server application
which has been crashing in QProcess::waitForFinished(int)
The frequency is low compared to the work the
application does, but it *is* happening.
A back trace shows all other threads waiting
for something to do. Running with debug is not
an option at this time.
Has anyone else had a problem in this area.
I am currently using Qt 4.8.6
Thanks
Bill
---------------------------------------------------------------
Core was generated by `./bin/Linux/gen bcommd -s'.
Program terminated with signal 11, Segmentation fault.
#0 0x0848cf17 in QProcess::waitForFinished(int) ()
Thread 12 (Thread 0xf7f388f0 (LWP 10315)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00c01963 in poll () from /lib/libc.so.6
#2 0x003f0399 in ?? () from /lib/libglib-2.0.so.0
#3 0x003f08be in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4 0x0851a0ac in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#5 0x084eece9 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#6 0x084eefea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
#7 0x084f443b in QCoreApplication::exec() ()
#8 0x0826c178 in DoBCommd(int, char**) ()
#9 0x0826d05b in main ()
Thread 11 (Thread 10320):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x08067d29 in JobDispatcher::waitOnCondition() ()
#4 0x080c795c in JobDispatcher::run() ()
#5 0x084148c0 in QThreadPrivate::start(void*) ()
#6 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#7 0x00c0b74e in clone () from /lib/libc.so.6
Thread 10 (Thread 10321):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00c04211 in select () from /lib/libc.so.6
#2 0x084da949 in QProcessManager::run() ()
#3 0x084148c0 in QThreadPrivate::start(void*) ()
#4 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#5 0x00c0b74e in clone () from /lib/libc.so.6
Thread 9 (Thread 10327):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00c01963 in poll () from /lib/libc.so.6
#2 0x003f0399 in ?? () from /lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#3 0x003f08be in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4 0x0851a0ac in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#5 0x084eece9 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#6 0x084eefea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
#7 0x08411ef1 in QThread::exec() ()
#8 0x084148c0 in QThreadPrivate::start(void*) ()
#9 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#10 0x00c0b74e in clone () from /lib/libc.so.6
Thread 8 (Thread 10328):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00c01963 in poll () from /lib/libc.so.6
#2 0x003f0399 in ?? () from /lib/libglib-2.0.so.0
#3 0x003f08be in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4 0x0851a0ac in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#5 0x084eece9 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#6 0x084eefea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
#7 0x08411ef1 in QThread::exec() ()
#8 0x084148c0 in QThreadPrivate::start(void*) ()
#9 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#10 0x00c0b74e in clone () from /lib/libc.so.6
Thread 7 (Thread 20612):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x080d7210 in RSThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 6 (Thread 27897):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
---Type <return> to continue, or q <return> to quit---
#3 0x080d7210 in RSThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 5 (Thread 927):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x080d7210 in RSThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 4 (Thread 928):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x080d7210 in RSThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 3 (Thread 929):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x080d7210 in RSThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 2 (Thread 2787):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x00ca5ff2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#2 0x084157a0 in QWaitCondition::wait(QMutex*, unsigned long) ()
#3 0x08409a55 in QThreadPoolThread::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
Thread 1 (Thread 0xf6b1a8d0 (LWP 2812)):
#0 0x0848cf17 in QProcess::waitForFinished(int) ()
#1 0x08153bec in RSProcess::superWaitForFinished2(int) ()
#2 0x08207003 in HostPessimist::checkJobAssignedHost(HostProxy) ()
#3 0x082075c1 in HostPessimist::run() ()
#4 0x084148c0 in QThreadPrivate::start(void*) ()
#5 0x00ca1912 in start_thread () from /lib/libpthread.so.0
#6 0x00c0b74e in clone () from /lib/libc.so.6
More information about the Interest
mailing list