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]

valgrind warnings current mainline


(Posting in case someone is already looking into it.)

I'm seeing a bunch of valgrind warnings on current mainline,
around symbols names.  Known issue?

...
GNU gdb (GDB) 7.3.50.20110520-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/pedro/gdb/tests/loop...==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x56A522: symbol_set_names (symtab.c:626)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498==    by 0x57831E: symbol_file_add_from_bfd (symfile.c:1217)
==11498==    by 0x578362: symbol_file_add (symfile.c:1229)
==11498==    by 0x5783D3: symbol_file_add_main_1 (symfile.c:1252)
==11498==    by 0x57838E: symbol_file_add_main (symfile.c:1245)
==11498==    by 0x5A38A5: catch_command_errors (exceptions.c:522)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x7A4FD7: htab_hash_string (hashtab.c:847)
==11498==    by 0x56A08A: hash_demangled_name_entry (symtab.c:443)
==11498==    by 0x7A4CBC: htab_find_slot (hashtab.c:712)
==11498==    by 0x56A5E6: symbol_set_names (symtab.c:646)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498==    by 0x57831E: symbol_file_add_from_bfd (symfile.c:1217)
==11498==    by 0x578362: symbol_file_add (symfile.c:1229)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C292B1: __GI_strlen (mc_replace_strmem.c:284)
==11498==    by 0x795EDE: demangle_prefix (cplus-dem.c:2725)
==11498==    by 0x792B4B: internal_cplus_demangle (cplus-dem.c:1181)
==11498==    by 0x792228: cplus_demangle (cplus-dem.c:873)
==11498==    by 0x56A1A7: symbol_find_demangled_name (symtab.c:503)
==11498==    by 0x56A610: symbol_set_names (symtab.c:653)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C292B1: __GI_strlen (mc_replace_strmem.c:284)
==11498==    by 0x795F4F: demangle_prefix (cplus-dem.c:2734)
==11498==    by 0x792B4B: internal_cplus_demangle (cplus-dem.c:1181)
==11498==    by 0x792228: cplus_demangle (cplus-dem.c:873)
==11498==    by 0x56A1A7: symbol_find_demangled_name (symtab.c:503)
==11498==    by 0x56A610: symbol_set_names (symtab.c:653)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C28EBC: __GI_strchr (mc_replace_strmem.c:144)
==11498==    by 0x79616E: demangle_prefix (cplus-dem.c:2778)
==11498==    by 0x792B4B: internal_cplus_demangle (cplus-dem.c:1181)
==11498==    by 0x792228: cplus_demangle (cplus-dem.c:873)
==11498==    by 0x56A1A7: symbol_find_demangled_name (symtab.c:503)
==11498==    by 0x56A610: symbol_set_names (symtab.c:653)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C28EB0: __GI_strchr (mc_replace_strmem.c:144)
==11498==    by 0x79616E: demangle_prefix (cplus-dem.c:2778)
==11498==    by 0x792B4B: internal_cplus_demangle (cplus-dem.c:1181)
==11498==    by 0x792228: cplus_demangle (cplus-dem.c:873)
==11498==    by 0x56A1A7: symbol_find_demangled_name (symtab.c:503)
==11498==    by 0x56A610: symbol_set_names (symtab.c:653)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C29309: strcpy (mc_replace_strmem.c:311)
==11498==    by 0x56A9AE: symbol_set_names (symtab.c:684)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498==    by 0x578104: symbol_file_add_with_addrs_or_offsets (symfile.c:1125)
==11498==    by 0x57831E: symbol_file_add_from_bfd (symfile.c:1217)
==11498==    by 0x578362: symbol_file_add (symfile.c:1229)
==11498==    by 0x5783D3: symbol_file_add_main_1 (symfile.c:1252)
==11498==    by 0x57838E: symbol_file_add_main (symfile.c:1245)
==11498== 
==11498== Conditional jump or move depends on uninitialised value(s)
==11498==    at 0x4C2983F: memchr (mc_replace_strmem.c:446)
==11498==    by 0x6294E8F: __GI_strstr (str-two-way.h:235)
==11498==    by 0x79656D: demangle_prefix (cplus-dem.c:2864)
==11498==    by 0x792B4B: internal_cplus_demangle (cplus-dem.c:1181)
==11498==    by 0x792228: cplus_demangle (cplus-dem.c:873)
==11498==    by 0x56A1A7: symbol_find_demangled_name (symtab.c:503)
==11498==    by 0x56A610: symbol_set_names (symtab.c:653)
==11498==    by 0x459624: prim_record_minimal_symbol_full (minsyms.c:904)
==11498==    by 0x51668C: record_minimal_symbol (elfread.c:204)
==11498==    by 0x517459: elf_rel_plt_read (elfread.c:679)
==11498==    by 0x518BFD: elf_symfile_read (elfread.c:1302)
==11498==    by 0x577ED3: syms_from_objfile (symfile.c:1016)
==11498== 
done.
(gdb) 

-- 
Pedro Alves


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