From: Tom Tromey <tromey@redhat.com>
To: sami wagiaalla <swagiaal@redhat.com>
Cc: Doug Evans <dje@google.com>, gdb-patches@sourceware.org
Subject: Re: [patch] PR 12028 "GDB crashes on a double free during overload resolution"
Date: Mon, 27 Sep 2010 18:02:00 -0000 [thread overview]
Message-ID: <m3y6annm0j.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4C9B7CB1.7030208@redhat.com> (sami wagiaalla's message of "Thu, 23 Sep 2010 12:13:37 -0400")
>>>>> "Sami" == sami wagiaalla <swagiaal@redhat.com> writes:
Sami> Incidentally, there is this error:
Sami> ==8467== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 9)
Sami> ==8467== Use of uninitialised value of size 8
Sami> ==8467== at 0x57C966: bcache_full (bcache.c:189)
Sami> ==8467== by 0x52E94F: add_psymbol_to_list (psymtab.c:1358)
Sami> ==8467== by 0x596634: add_partial_symbol (dwarf2read.c:3794)
Sami> ==8467== by 0x596A7A: add_partial_subprogram (dwarf2read.c:3882)
Sami> Worth figuring out but it is unrelated to this patch series.
This is fallout from your earlier bcache changes.
I'm regtesting the appended. I already ran it through valgrind, it
definitely fixes the above report. I will check it in once the regtest
reports no regressions.
Tom
2010-09-27 Tom Tromey <tromey@redhat.com>
* bcache.c (expand_hash_table): Use hash_function, not hash.
Index: bcache.c
===================================================================
RCS file: /cvs/src/src/gdb/bcache.c,v
retrieving revision 1.28
diff -u -r1.28 bcache.c
--- bcache.c 31 Aug 2010 17:26:08 -0000 1.28
+++ bcache.c 27 Sep 2010 17:16:41 -0000
@@ -184,7 +184,8 @@
struct bstring **new_bucket;
next = s->next;
- new_bucket = &new_buckets[(hash (&s->d.data, s->length)
+ new_bucket = &new_buckets[(bcache->hash_function (&s->d.data,
+ s->length)
% new_num_buckets)];
s->next = *new_bucket;
*new_bucket = s;
next prev parent reply other threads:[~2010-09-27 17:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-18 9:25 sami wagiaalla
2010-09-19 17:39 ` Doug Evans
2010-09-22 18:12 ` sami wagiaalla
2010-09-22 19:36 ` Tom Tromey
2010-09-23 18:46 ` sami wagiaalla
2010-09-27 18:02 ` Tom Tromey [this message]
2010-09-28 16:32 ` sami wagiaalla
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=m3y6annm0j.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=swagiaal@redhat.com \
/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