Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb.Value returning a string of length 1 (linux lx-version bug)
@ 2016-03-22 17:54 Kieran Bingham
  2016-03-22 17:57 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Kieran Bingham @ 2016-03-22 17:54 UTC (permalink / raw)
  To: Jan Kiszka, Peter Griffin, gdb

Hi Jan,

Me and Pete have just been looking into the gdb.Value object bug where
the lx-version command  returns a string of length 1.

As I recall at FOSDEM, you were also hitting the bug.
Out of interest, what compiler version are you using?

We've made some head way, but we are suspicious that compiler versions
may affect the issue ! :(

The crux of the issue, is that the valpy_string() calls c_get_string()
which in turn calls get_discrete_bounds().

On my broken version, get_discrete_bounds, is setting both lowp, and
highp to 0x0; where as on Peters working version, his highp gets set
correctly. (there is a +1 added later which results in the string
producing a strlen of 1)

I'm running gcc 5.2.1-22ubuntu2, whereas Pete is running gcc 4.8.4.

Pete's version of his compiled binutils-gdb always seems to function
correctly, where as I hit the bug - *occasionally*

Of course, since I have compiled with -g3 -O0 -fsanitize=undefined I
can't reproduce the issue, and now even removing the optimise levels I
haven't been able to reproduce.

We have a Heisenbug :(

Has anyone else on the GDB Mailinglist experienced any intermittent
errors with gdb.Value strings from python?
--
Kieran


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-23 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22 17:54 gdb.Value returning a string of length 1 (linux lx-version bug) Kieran Bingham
2016-03-22 17:57 ` Jan Kiszka
2016-03-23  8:50   ` Kieran Bingham
2016-03-23 13:26     ` Kieran Bingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox