From: Yao Qi <yao@codesourcery.com>
To: "Bilal, Muhammad" <Muhammad_Bilal@mentor.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH]13217 thread apply all detach throws a SEGFAULT
Date: Mon, 14 Jan 2013 15:25:00 -0000 [thread overview]
Message-ID: <50F42323.4050001@codesourcery.com> (raw)
In-Reply-To: <97B73E257CC18646B0B5D3DD77DCBDD158EBC9@EU-MBX-02.mgc.mentorg.com>
[Don't need to copy so many maintainers :)]
On 01/14/2013 09:38 PM, Bilal, Muhammad wrote:
> Actually when command "thread apply all detach" is applied then the function thread_apply_command (char *tidlist, int from_tty) in thread.c:1179 called a function init_thread_list (void)in thread.c:140
>
> which makes the 'thread_list' struck to null so when for (tp = thread_list; tp; tp = tp->next) loop in thread_apply_command (char *tidlist, int from_tty) in thread.c:1179 iterates 2nd time it throws a segmentation fault when try to access the bogus value of
> thread_list
>
> so i have fixed this problem
>
> I have written the test case for it also
>
Bilal,
thanks for trying to fix the bug, and adding a test case for it.
> I have worked on gdb-7.5.50.20121127 snapshot
We work on GDB CVS trunk in the development. You should re-generate
your patch on the basis of GDB trunk.
The patch looks ill-formated, which prohibits maintainers giving a
review. Please read gdb/CONTRIBUTE to see how to submit a patch.
--
Yao (é½å°§)
next prev parent reply other threads:[~2013-01-14 15:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <97B73E257CC18646B0B5D3DD77DCBDD158E8FD@EU-MBX-02.mgc.mentorg.com>
2013-01-14 13:38 ` Bilal, Muhammad
2013-01-14 15:25 ` Yao Qi [this message]
2013-01-14 15:41 ` Jan Kratochvil
2013-01-14 15:46 ` Pedro Alves
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=50F42323.4050001@codesourcery.com \
--to=yao@codesourcery.com \
--cc=Muhammad_Bilal@mentor.com \
--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