This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] New FAIL in gdb.python/py-type.exp [Re: fix PR python/10676]


On Sat, 21 Aug 2010 00:39:17 +0200, Tom Tromey wrote:
> +      gdb_test "python print c.type == gdb.parse_and_eval('d').type" "False"

python print c.type == gdb.parse_and_eval('d').type
./python/py-type.c:902: internal-error: VEC_type_equality_entry_d_quick_push: Assertion `quick_push' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) FAIL: gdb.python/py-type.exp: python print c.type == gdb.parse_and_eval('d').type (GDB internal error)

On Fedora 13 x86_64 for example with `./configure; make'.

It PASSes with the fix.  Tested only gdb.python/py-type.exp on
x86_64-fedora14snapshot-linux-gnu.

OK to check-in?


Thanks,
Jan


gdb/
2010-08-24  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* python/py-type.c (typy_richcompare): Initialize worklist.

--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -892,7 +892,7 @@ typy_richcompare (PyObject *self, PyObject *other, int op)
   else
     {
       struct bcache *cache;
-      VEC (type_equality_entry_d) *worklist;
+      VEC (type_equality_entry_d) *worklist = NULL;
       struct type_equality_entry entry;
 
       cache = bcache_xmalloc ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]