All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel 4.9.x-rt Fully Preemptible Kernel: Issue with gdb and unexpected SIGSTOP signals
@ 2017-01-23 13:43 Koehrer Mathias (ETAS/ESW5)
  2017-01-24  9:15 ` Koehrer Mathias (ETAS/ESW5)
  0 siblings, 1 reply; 20+ messages in thread
From: Koehrer Mathias (ETAS/ESW5) @ 2017-01-23 13:43 UTC (permalink / raw)
  To: linux-rt-users

Hi all,

with the 4.9.0-rt1 and also the 4.9.4-rt2 kernel (x86, 64bit) I observe a strange issue when running my multithreaded real time executable within gdb.

Fairly often (in about 40% of all runs) the gdb stops executing with the message:
  Thread 8 "MDL07-Acknowled" received signal SIGSTOP, Stopped (signal).
  [Switching to Thread 0x7fffef141700 (LWP 9770)]
  0x00007ffff535b24d in read () at ../sysdeps/unix/syscall-template.S:84

Often it helps to enter "continue" a couple of times to continue the debugging.
However, sometimes it ends up in an endless loop of "continue" followed by a SIGSTOP, "continue", etc.
If this issue occurs, the SIGSTOP is complained for all threads in the executable.
Different system calls are affected: read, select, pselect, clone (via pthread_create), ...
Debugging is more or less impossible due to this issue.
No SIGSTOP is sent out by the application, the root cause for this signal is not clear to me.

When I reconfigured the kernel to use "Preemptible Kernel (Basic RT)" I do not observer this issue.
Also with kernel 3.18.42-rt44 (Fully Preemptible) it works fine. I never see this issue there.

Any hints on how to solve the issue are highly appreciated. 

Thanks

Best regards

Mathias



^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <6a05f9f4-9299-4b36-7f11-5e334768880a@windriver.com>]

end of thread, other threads:[~2017-06-29  8:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 13:43 Kernel 4.9.x-rt Fully Preemptible Kernel: Issue with gdb and unexpected SIGSTOP signals Koehrer Mathias (ETAS/ESW5)
2017-01-24  9:15 ` Koehrer Mathias (ETAS/ESW5)
2017-01-25  9:56   ` Sebastian Andrzej Siewior
2017-01-25 11:28     ` Koehrer Mathias (ETAS/ESW5)
2017-01-25 12:55       ` Koehrer Mathias (ETAS/ESW5)
2017-01-25 13:36         ` Koehrer Mathias (ETAS/ESW5)
2017-01-25 13:40         ` Sebastian Andrzej Siewior
2017-01-25 14:00           ` Koehrer Mathias (ETAS/ESW5)
2017-01-26  9:26             ` Koehrer Mathias (ETAS/ESW5)
2017-01-27 14:04               ` Koehrer Mathias (ETAS/ESW5)
2017-01-27 15:33                 ` Sebastian Andrzej Siewior
2017-01-30  7:24                   ` Koehrer Mathias (ETAS/ESW5)
2017-03-02 17:51                 ` Sebastian Andrzej Siewior
2017-03-07 13:39                   ` Koehrer Mathias (ETAS/ESW3)
2017-03-07 23:21                     ` Sebastian Andrzej Siewior
2017-04-24 19:49                       ` David Hauck
2017-04-25  6:06                         ` Koehrer Mathias (ETAS/ESW3)
     [not found] <6a05f9f4-9299-4b36-7f11-5e334768880a@windriver.com>
     [not found] ` <85216e5b-7c2d-9ff7-c118-9279023a1726@windriver.com>
2017-06-29  6:08   ` Zhou, Li
2017-06-29  7:45     ` Koehrer Mathias (ETAS/EHE1)
2017-06-29  8:42       ` Zhou, Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.