This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix for testsuite errors with gdbserver (remote)
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, Keith Seitz <keiths at redhat dot com>, Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Date: Fri, 18 Feb 2011 13:30:15 -0700
- Subject: Re: [RFA] Fix for testsuite errors with gdbserver (remote)
- References: <4D5C71F6.80208@vmware.com> <000901cbcf8b$a7e35b50$f7aa11f0$@muller@ics-cnrs.unistra.fr> <4D5EBF32.30802@redhat.com> <201102181954.25496.pedro@codesourcery.com> <m3d3mpxf6q.fsf@fleche.redhat.com>
Tom> All that python_inferior_exit is doing to provoke the crash is calling
Tom> get_current_arch. Under what circumstances is this not safe? I would
Tom> have thought -- perhaps naively -- that it was always safe.
This is maybe a little too brief.
get_current_arch calls has_stack_frames.
My view is that has_stack_frames relies on some invariants that should
hold for the various globals it accesses. Maybe it is using them
incorrectly. Or maybe the invariants, whatever they are, are violated
elsewhere.
I think Pierre's patch operates on the latter theory. I don't really
know enough to know whether it is correct.
Tom