From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <gdb-patches@sourceware.org>
Subject: RE: [RFC] persistence of schedlock mode
Date: Mon, 17 May 2010 10:33:00 -0000 [thread overview]
Message-ID: <000c01caf598$50754fe0$f15fefa0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <4BEAEEB0.5040202@vmware.com>
Did I miss some part of the discussion here?
I really have the impression that this
patch went in by error in a long series of patches
from Michael all labeled with '[ob]... white space'
without the patch itself being approved on the main thread.
First reset_schedlock went in and generated a 'New ARI warning'
Jan replied to it
http://sourceware.org/ml/gdb-patches/2010-05/msg00320.html
Then, another commit of the same series
http://sourceware.org/ml/gdb-cvs/2010-05/msg00145.html
added a call to reset_schedlock in infrun.c.
as can be seen in
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&r
1=1.250&r2=1.251
This lead to a compilation error that Hui
tried to fix, and Joel added a second patch to cleanup.
I have no opinion of the validity of the patch itself,
but the way it got into CVS leaves a strange impression to me.
Pierre Muller
Pascal language support maintainer for GDB
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Michael Snyder
> Envoyé : Wednesday, May 12, 2010 8:09 PM
> À : gdb-patches@sourceware.org
> Objet : [RFC] persistence of schedlock mode
>
> Bug 11580 points out a problem related to persistence of the
> scheduler locking mode. If you set the mode to "on" (which
> means that only one thread can run), and then kill and restart
> your program, the mode persists and your program may deadlock.
>
> I don't think this is a problem for mode "step", and it could
> be argued that mode "on" is "use at your own risk". However
> I've been thinking about how to resolve it, and this simple
> but intrusive patch is what I come up with.
>
> Comments?
next prev parent reply other threads:[~2010-05-17 8:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 18:08 Michael Snyder
2010-05-12 19:25 ` Pedro Alves
2010-05-12 19:49 ` Mark Kettenis
2010-05-17 10:33 ` Pierre Muller [this message]
2010-05-17 15:29 ` Joel Brobecker
2010-05-17 17:34 ` Michael Snyder
2010-05-17 13:20 ` Nathan Froyd
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='000c01caf598$50754fe0$f15fefa0$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=gdb-patches@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox