* (Another) Segfault in varobj.c
@ 2007-08-07 11:49 Robert Norton
2007-08-07 12:13 ` Nick Roberts
2007-08-07 15:08 ` Vladimir Prus
0 siblings, 2 replies; 6+ messages in thread
From: Robert Norton @ 2007-08-07 11:49 UTC (permalink / raw)
To: gdb
Hi,
I have encountered another crash seemingly originating in varobj.c.
Whilst I've been able to work around the segfault I think there are some
deeper rooted problems and I remembered from our previous conversation
that the whole of this has been rewritten for 6.7. How self contained
were these changes, i.e. would it be hard to back port them for our 6.6
based release? How risky would this be?
Thanks,
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (Another) Segfault in varobj.c
2007-08-07 11:49 (Another) Segfault in varobj.c Robert Norton
@ 2007-08-07 12:13 ` Nick Roberts
2007-08-07 15:08 ` Vladimir Prus
1 sibling, 0 replies; 6+ messages in thread
From: Nick Roberts @ 2007-08-07 12:13 UTC (permalink / raw)
To: Robert Norton; +Cc: gdb
> I have encountered another crash seemingly originating in varobj.c.
> Whilst I've been able to work around the segfault I think there are some
> deeper rooted problems and I remembered from our previous conversation
> that the whole of this has been rewritten for 6.7. How self contained
> were these changes, i.e. would it be hard to back port them for our 6.6
> based release? How risky would this be?
I can't say how risky it would be, I don't even understand why you would rather
backport to 6.6 than update to 6.7. If you do need to be selective about the
changes, I would just suggest including those from mi-cmd-var.c/h too.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (Another) Segfault in varobj.c
2007-08-07 11:49 (Another) Segfault in varobj.c Robert Norton
2007-08-07 12:13 ` Nick Roberts
@ 2007-08-07 15:08 ` Vladimir Prus
2007-08-07 16:12 ` Robert Norton
1 sibling, 1 reply; 6+ messages in thread
From: Vladimir Prus @ 2007-08-07 15:08 UTC (permalink / raw)
To: gdb
Robert Norton wrote:
> Hi,
>
> I have encountered another crash seemingly originating in varobj.c.
> Whilst I've been able to work around the segfault I think there are some
> deeper rooted problems and I remembered from our previous conversation
> that the whole of this has been rewritten for 6.7. How self contained
> were these changes, i.e. would it be hard to back port them for our 6.6
> based release? How risky would this be?
It's hard to say without knowing if you have any local changes in varobj.c
If not, then just grabbing varobj.c and maybe mi/* should be safe --
at least as far as my patches are concerned, they are local to varobj.c.
- Volodya
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: (Another) Segfault in varobj.c
2007-08-07 15:08 ` Vladimir Prus
@ 2007-08-07 16:12 ` Robert Norton
2007-08-08 18:01 ` Robert Norton
0 siblings, 1 reply; 6+ messages in thread
From: Robert Norton @ 2007-08-07 16:12 UTC (permalink / raw)
To: Vladimir Prus, gdb
> -----Original Message-----
> From: gdb-owner@sourceware.org
> [mailto:gdb-owner@sourceware.org] On Behalf Of Vladimir Prus
> Sent: 07 August 2007 16:09
> To: gdb@sources.redhat.com
> Subject: Re: (Another) Segfault in varobj.c
>
> It's hard to say without knowing if you have any local
> changes in varobj.c
Only an attempt to fix another bug which apparently is fixed in CVS
anyway.
> If not, then just grabbing varobj.c and maybe mi/* should be safe --
> at least as far as my patches are concerned, they are local
> to varobj.c.
OK. This is mostly what I wanted to know. I'll give it a try!
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: (Another) Segfault in varobj.c
2007-08-07 16:12 ` Robert Norton
@ 2007-08-08 18:01 ` Robert Norton
2007-08-08 18:09 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Robert Norton @ 2007-08-08 18:01 UTC (permalink / raw)
To: Robert Norton, Vladimir Prus, gdb
> -----Original Message-----
> From: gdb-owner@sourceware.org
> [mailto:gdb-owner@sourceware.org] On Behalf Of Robert Norton
> Sent: 07 August 2007 17:11
> To: Vladimir Prus; gdb@sources.redhat.com
> Subject: RE: (Another) Segfault in varobj.c
>
> I'll give it a try!
For anyone who's interested I managed to back port the changes by
copying varobj.c/h and mi/*. I had to edit mi-main.c to get it to
compile (used current_regcache instead of get_current_regcache()) and
also had to add a call to varobj_invalidate() in symfile.c.
I also had a problem with one of the tests: mi-var-cmd.exp creates a
varobj from a char* but due to gdb interpreting it is a null terminated
string it appears to be modified even though it is actually the llong
variable which is allocated after it in memory which has changed. What's
needed is some way to tell gdb that lpcharacter really is just a char *
(not a pointer to a null terminated string).
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: (Another) Segfault in varobj.c
2007-08-08 18:01 ` Robert Norton
@ 2007-08-08 18:09 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2007-08-08 18:09 UTC (permalink / raw)
To: Robert Norton; +Cc: Vladimir Prus, gdb
On Wed, Aug 08, 2007 at 10:59:56AM -0700, Robert Norton wrote:
> I also had a problem with one of the tests: mi-var-cmd.exp creates a
> varobj from a char* but due to gdb interpreting it is a null terminated
> string it appears to be modified even though it is actually the llong
> variable which is allocated after it in memory which has changed. What's
> needed is some way to tell gdb that lpcharacter really is just a char *
> (not a pointer to a null terminated string).
Or not to treat it as a string (I have some posted work in that area)
or just to NUL terminate it...
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-08 18:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-07 11:49 (Another) Segfault in varobj.c Robert Norton
2007-08-07 12:13 ` Nick Roberts
2007-08-07 15:08 ` Vladimir Prus
2007-08-07 16:12 ` Robert Norton
2007-08-08 18:01 ` Robert Norton
2007-08-08 18:09 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox