All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hauck <davidh@netacquire.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	"Koehrer Mathias (ETAS/ESW3)" <mathias.koehrer@etas.com>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: RE: Kernel 4.9.x-rt Fully Preemptible Kernel: Issue with gdb and unexpected SIGSTOP signals
Date: Mon, 24 Apr 2017 19:49:09 +0000	[thread overview]
Message-ID: <FCC5AC80E299464B82E1345E2C10FC9D9B5C8530@S1P5DAG10E.EXCHPROD.USA.NET> (raw)
In-Reply-To: <20170307232151.7macprg6qnl3exbh@linutronix.de>

Hi Sebastian and Mathias,
 
I wanted to follow-up on this thread since we, too, are seeing issues with GDB and v4.9-rt kernels. We've been working on upgrading our systems/application from the v3.18-rt kernel series (specifically v3.18..29-rt30) to v4.9-rt (specifically 4.9.13-rt11) and immediately started experiencing various GDB related issues. The first (inability to pause at breakpoints and single-step) was eliminated by reverting to using GDB v7.11.1 (from GDB v7.12.1). However, the second (the SIGSTOP issue originally reported by Mathias) isn't something we've been able to work around. Have either of you made any of your own progress on this issue? Are others also seeing this?

Toolchain (v3.18-rt i386 targets/application)
	GCC v4.9.3
	GLIbC v2.19
	GDB v7.11.1
Toolchain (v4.9-rt i386 targets/application)
	GCC v4.9.4
	GLibC v2.25
	GDB v7.11.1
	
Thanks,
-David Hauck
NetAcquire Corp.
 
On Tuesday, March 07, 2017 3:22 PM, linux-rt-users-owner@vger.kernel.org wrote:
> On 2017-03-07 13:39:36 [+0000], Koehrer Mathias (ETAS/ESW3) wrote:
>> Hi Sebastian,
> Hi Mathias,
> 
>>> and 8144 blocks in wait for 8424 which is never completes without
>>> additional help (like a manual SIGCONT). Right now it looks like the
>>> PTRACE_DETACH (syscall 101, 11) which should remove the task from
>>> ptrace and wakeup did not work but I see a wakeup… The wakeup worked
>>> (most likely) but since it is stuck I guess that there was a second signal it is processing and waiting for
> gdb.
>> I do not understand, what that means.
>> When I run the very same test on a non-rt kernel (or even on a RT
>> kernel with a preemption model that is not configured as "Fully
>> Preemptible Kernel"), I never see this issue.
> 
> I can reproduce the issue on a -RT kernel. I don't really know what the root issue is but it is a problem.
> We had a ptrace issue if you look into the queue for
>   "ptrace: fix ptrace vs tasklist_lock race"
>> Also - as mentioned - previously, with older RT preempted kernel
>> versions it is working fine as well. For me it looks as if the RT
>> preempting on newer kernels somehow has impact on the way the
>> debugging with gdb works My expectation (and so far I had the
>> experience) is that a code that is running fine with a non RT kernel
>> should also run fine with the fully preempted kernel (of course the timing behavior is different).
> 
> That is correct - it should work. I've been tracing it for a while now and have no real clue what goes
> wrong. There a few different ways how it seems to go wrong and the outcome is always that the kernel
> puts the task in "stop" mode while gdb expects it to run and waits for it.
> 
>> Regards
>> 
>> Mathias
> 
> Sebastian

  reply	other threads:[~2017-04-24 19:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FCC5AC80E299464B82E1345E2C10FC9D9B5C8530@S1P5DAG10E.EXCHPROD.USA.NET \
    --to=davidh@netacquire.com \
    --cc=bigeasy@linutronix.de \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mathias.koehrer@etas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.