Quantron codesysruntime hangs in Service_task: ---- snip ---- # ps -T -p 1049 rol 1049 PID SPID TTY TIME CMD 1049 1049 ttymxc4 00:03:08 codesyscontrol 1049 1051 ttymxc4 00:00:04 VTThread 1049 1052 ttymxc4 00:00:41 Thread SPI 1 1049 1053 ttymxc4 00:00:47 HW-CC-Thread 1049 1061 ttymxc4 00:00:00 SW-CC-Thread 1049 1068 ttymxc4 00:01:07 SchedProcessorL 1049 1069 ttymxc4 00:00:00 SchedException 1049 1070 ttymxc4 00:00:00 CAAEventTask 1049 1074 ttymxc4 00:03:17 Control_task 1049 1075 ttymxc4 00:00:00 Service_task 1049 1079 ttymxc4 00:00:00 GwCommDrvTcp 1049 1080 ttymxc4 00:00:04 BlkDrvTcp 1049 1081 ttymxc4 00:00:11 BlkDrvUdp 1049 1083 ttymxc4 00:00:08 LinRxThread 1049 1084 ttymxc4 00:01:15 LinMasterThread 1049 1085 ttymxc4 00:00:00 ASCPThread ---- snip ---- Stack traces of all threads, thread tid=1975 is the "offending" "Service_task": ---- snip ---- (gdb) thread apply all bt 50 Thread 16 (Thread 0xb5f02470 (LWP 1051)): #0 0xb6d954ec in syscall () from /lib/libc.so.6 #1 0xb5fa27d4 in QMutexPrivate::wait(int) () from /usr/lib/libQtCore.so.4 #2 0xb5f9eb9c in QMutex::lockInternal() () from /usr/lib/libQtCore.so.4 #3 0xb6ac54c4 in ?? () from /usr/lib/libvt.so #4 0xb6ac5754 in vt_check() () from /usr/lib/libvt.so #5 0xb6ac501c in EDataMngr::processISO_Msg() () from /usr/lib/libvt.so #6 0xb6ac52c0 in EDataMngr::event(QEvent*) () from /usr/lib/libvt.so #7 0xb6419310 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #8 0xb641d51c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #9 0xb608f02c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #10 0xb6092040 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4 #11 0xffff0fc0 in ?? () Cannot access memory at address 0x0 #12 0xffff0fc0 in ?? () Cannot access memory at address 0x0 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 15 (Thread 0xb5e96470 (LWP 1052)): #0 0xb6e16ba8 in clock_nanosleep (clock_id=1, flags=1, req=0x22c1d0, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48 #1 0x001614c0 in SysTaskWaitInterval () #2 0xb6b32d5c in threadSPI1(tagSYS_TASK_PARAM*) () from /usr/lib/libIODriver.so #3 0x00000000 in ?? () Thread 14 (Thread 0xb5e76470 (LWP 1053)): #0 0xb6e3cbd0 in nanosleep () from /lib/libpthread.so.0 #1 0x00161238 in SysTaskWaitSleep () #2 0xb6b32304 in threadCC(tagSYS_TASK_PARAM*) () from /usr/lib/libIODriver.so #3 0x00160af0 in SysTaskFrame () #4 0xb6e33f88 in start_thread (arg=0xb5e76470) at pthread_create.c:310 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 13 (Thread 0xb5aff470 (LWP 1061)): #0 0xb6d8f63c in __GI_ppoll (fds=0xb5afedd8, nfds=1, timeout=, sigmask=) at ../sysdeps/unix/sysv/linux/ppoll.c:57 #1 0xb6cb2a48 in cppgpio::gpio::gpioGuardThreadHandler(void*) () from /usr/lib/libcommon.so.1 #2 0xb6e33f88 in start_thread (arg=0xb5aff470) at pthread_create.c:310 #3 0xb6d98f48 in ?? () from /lib/libc.so.6 #4 0xb6d98f48 in ?? () from /lib/libc.so.6 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 #7 0xb6d98f48 in ?? () from /lib/libc.so.6 #8 0xb6d98f48 in ?? () from /lib/libc.so.6 #9 0xb6d98f48 in ?? () from /lib/libc.so.6 #10 0xb6d98f48 in ?? () from /lib/libc.so.6 #11 0xb6d98f48 in ?? () from /lib/libc.so.6 #12 0xb6d98f48 in ?? () from /lib/libc.so.6 #13 0xb6d98f48 in ?? () from /lib/libc.so.6 #14 0xb6d98f48 in ?? () from /lib/libc.so.6 #15 0xb6d98f48 in ?? () from /lib/libc.so.6 #16 0xb6d98f48 in ?? () from /lib/libc.so.6 #17 0xb6d98f48 in ?? () from /lib/libc.so.6 #18 0xb6d98f48 in ?? () from /lib/libc.so.6 #19 0xb6d98f48 in ?? () from /lib/libc.so.6 #20 0xb6d98f48 in ?? () from /lib/libc.so.6 #21 0xb6d98f48 in ?? () from /lib/libc.so.6 #22 0xb6d98f48 in ?? () from /lib/libc.so.6 #23 0xb6d98f48 in ?? () from /lib/libc.so.6 #24 0xb6d98f48 in ?? () from /lib/libc.so.6 #25 0xb6d98f48 in ?? () from /lib/libc.so.6 #26 0xb6d98f48 in ?? () from /lib/libc.so.6 #27 0xb6d98f48 in ?? () from /lib/libc.so.6 #28 0xb6d98f48 in ?? () from /lib/libc.so.6 #29 0xb6d98f48 in ?? () from /lib/libc.so.6 #30 0xb6d98f48 in ?? () from /lib/libc.so.6 #31 0xb6d98f48 in ?? () from /lib/libc.so.6 #32 0xb6d98f48 in ?? () from /lib/libc.so.6 #33 0xb6d98f48 in ?? () from /lib/libc.so.6 #34 0xb6d98f48 in ?? () from /lib/libc.so.6 #35 0xb6d98f48 in ?? () from /lib/libc.so.6 #36 0xb6d98f48 in ?? () from /lib/libc.so.6 #37 0xb6d98f48 in ?? () from /lib/libc.so.6 #38 0xb6d98f48 in ?? () from /lib/libc.so.6 #39 0xb6d98f48 in ?? () from /lib/libc.so.6 #40 0xb6d98f48 in ?? () from /lib/libc.so.6 #41 0xb6d98f48 in ?? () from /lib/libc.so.6 #42 0xb6d98f48 in ?? () from /lib/libc.so.6 #43 0xb6d98f48 in ?? () from /lib/libc.so.6 #44 0xb6d98f48 in ?? () from /lib/libc.so.6 #45 0xb6d98f48 in ?? () from /lib/libc.so.6 #46 0xb6d98f48 in ?? () from /lib/libc.so.6 #47 0xb6d98f48 in ?? () from /lib/libc.so.6 #48 0xb6d98f48 in ?? () from /lib/libc.so.6 #49 0xb6d98f48 in ?? () from /lib/libc.so.6 (More stack frames follow...) Thread 12 (Thread 0xb5e24470 (LWP 1068)): #0 0xb6e3aed4 in do_futex_wait (isem=isem@entry=0x23d8e8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 #1 0xb6e3afa0 in __new_sem_wait (sem=0x23d8e8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69 #2 0x0013f0d4 in SysEventWait () #3 0x000fe8c4 in ProcessorLoadTask () #4 0x00160af0 in SysTaskFrame () #5 0xb6e33f88 in start_thread (arg=0xb5e24470) at pthread_create.c:310 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 #7 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 11 (Thread 0xb5c3b470 (LWP 1069)): #0 0xb6e3aed4 in do_futex_wait (isem=isem@entry=0x23d9f8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 #1 0xb6e3afa0 in __new_sem_wait (sem=0x23d9f8) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69 #2 0x0013f0d4 in SysEventWait () #3 0x001523d0 in SysMsgQRecv () #4 0x000fa12c in SchedExceptionTask () #5 0x00160af0 in SysTaskFrame () #6 0xb6e33f88 in start_thread (arg=0xb5c3b470) at pthread_create.c:310 #7 0xb6d98f48 in ?? () from /lib/libc.so.6 #8 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 10 (Thread 0xb52ff470 (LWP 1070)): #0 0xb6e3aed4 in do_futex_wait (isem=isem@entry=0x23b970) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48 #1 0xb6e3afa0 in __new_sem_wait (sem=0x23b970) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69 #2 0x0013f0d4 in SysEventWait () #3 0x00073bf4 in AsyncEventTask () #4 0x00160af0 in SysTaskFrame () #5 0xb6e33f88 in start_thread (arg=0xb52ff470) at pthread_create.c:310 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 #7 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 9 (Thread 0xb51df470 (LWP 1074)): #0 0xb6e16ba8 in clock_nanosleep (clock_id=1, flags=1, req=0x22e500, rem=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48 #1 0x001614c0 in SysTaskWaitInterval () #2 0x000fe100 in Schedule () #3 0x000fe6e4 in SchedIecTask () #4 0x00160af0 in SysTaskFrame () #5 0xb6e33f88 in start_thread (arg=0xb51df470) at pthread_create.c:310 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 #7 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 8 (Thread 0xb51bf470 (LWP 1075)): #0 0xb6d954ec in syscall () from /lib/libc.so.6 #1 0xb5fa27d4 in QMutexPrivate::wait(int) () from /usr/lib/libQtCore.so.4 #2 0xb5f9eb9c in QMutex::lockInternal() () from /usr/lib/libQtCore.so.4 #3 0xb6ac5b48 in data_in(char*, int) () from /usr/lib/libvt.so #4 0xb6a8dbec in codesys_send () from /usr/lib/libvt.so #5 0xb6b567a0 in IsoVtLib_NumericValue () from /usr/lib/libIsobus.so #6 0xb6b55574 in isocmd_numericvalue () from /usr/lib/libIsobus.so #7 0xb52799a0 in ?? () #8 0xb52799a0 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 7 (Thread 0xb519f470 (LWP 1079)): #0 0xb6d920f4 in select () from /lib/libc.so.6 #1 0x00158e30 in SysSockSelect () #2 0x000a4a68 in CommunicationThread () #3 0x00160af0 in SysTaskFrame () #4 0xb6e33f88 in start_thread (arg=0xb519f470) at pthread_create.c:310 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 6 (Thread 0xb517f470 (LWP 1080)): #0 0xb6e3cbd0 in nanosleep () from /lib/libpthread.so.0 #1 0x00161238 in SysTaskWaitSleep () #2 0x00069dbc in BlkDrvTcpCommunicationThread () #3 0x00160af0 in SysTaskFrame () #4 0xb6e33f88 in start_thread (arg=0xb517f470) at pthread_create.c:310 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 5 (Thread 0xb515f470 (LWP 1081)): #0 0xb6d920f4 in select () from /lib/libc.so.6 #1 0x00158e30 in SysSockSelect () #2 0x0006d960 in CommunicationThread () #3 0x00160af0 in SysTaskFrame () #4 0xb6e33f88 in start_thread (arg=0xb515f470) at pthread_create.c:310 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 #6 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 4 (Thread 0xb4dac470 (LWP 1083)): #0 0xb6e3c170 in read () from /lib/libpthread.so.0 #1 0xb6b12e40 in lin_rx_thread () from /usr/lib/libLinbus.so #2 0x00160af0 in SysTaskFrame () #3 0xb6e33f88 in start_thread (arg=0xb4dac470) at pthread_create.c:310 #4 0xb6d98f48 in ?? () from /lib/libc.so.6 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 3 (Thread 0xb4d8c470 (LWP 1084)): #0 0xb6d677b0 in nanosleep () from /lib/libc.so.6 #1 0xb6d9296c in usleep (useconds=) at ../sysdeps/unix/sysv/linux/usleep.c:32 #2 0xb6b12dbc in lin_recv () from /usr/lib/libLinbus.so #3 0xb6b12f2c in lin_recv_message.constprop.6 () from /usr/lib/libLinbus.so #4 0xb6b1337c in lin_face_value () from /usr/lib/libLinbus.so #5 0xb6b139c4 in lin_master_thread () from /usr/lib/libLinbus.so #6 0x00160af0 in SysTaskFrame () #7 0xb6e33f88 in start_thread (arg=0xb4d8c470) at pthread_create.c:310 #8 0xb6d98f48 in ?? () from /lib/libc.so.6 #9 0xb6d98f48 in ?? () from /lib/libc.so.6 Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 2 (Thread 0xb4d6c470 (LWP 1085)): #0 0xb6e3c170 in read () from /lib/libpthread.so.0 #1 0x00137ccc in SysComRead () #2 0xb6afc3bc in ASCP_Thread () from /usr/lib/libASCP.so #3 0x00160af0 in SysTaskFrame () #4 0xb6e33f88 in start_thread (arg=0xb4d6c470) at pthread_create.c:310 #5 0xb6d98f48 in ?? () from /lib/libc.so.6 Cannot access memory at address 0x84 ---- snip ----