<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Issue found by valgrind"
   href="http://llvm.org/bugs/show_bug.cgi?id=17595">17595</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Issue found by valgrind
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gold-plugin
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>~ % valgrind --track-origins=yes --trace-children=yes clang++ -flto -O2
bench.cpp
...
==23495== 
==23495== Invalid read of size 1
==23495==    at 0x402B120: strlen (mc_replace_strmem.c:399)
==23495==    by 0x674F64: std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
(in /usr/x86_64-pc-linux-gnu/binutils-bin/git/ld)
==23495==    by 0x5B8617: gold::Plugin_manager::add_input_file(char const*,
bool) (options.h:1717)
==23495==    by 0x41EE5EA: all_symbols_read_hook() (gold-plugin.cpp:444)
==23495==    by 0x5B7946:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*, g
old::Task_token**) (plugin.cc:359)
==23495==    by 0x5B7A73: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1420)
==23495==    by 0x609C3C: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==23495==    by 0x609FC9: gold::Workqueue::process(int) (workqueue.cc:495)
==23495==    by 0x4069EF: main (main.cc:252)
==23495==  Address 0x544f1e8 is 24 bytes inside a block of size 47 free'd
==23495==    at 0x4028FF8: operator delete(void*) (vg_replace_malloc.c:480)
==23495==    by 0x5D3C92C: LTOCodeGenerator::~LTOCodeGenerator()
(basic_string.h:249)
==23495==    by 0x5C6121D: lto_codegen_dispose (lto.cpp:213)
==23495==    by 0x41EE56B: all_symbols_read_hook() (gold-plugin.cpp:435)
==23495==    by 0x5B7946:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*, g
old::Task_token**) (plugin.cc:359)
==23495==    by 0x5B7A73: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1420)
==23495==    by 0x609C3C: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==23495==    by 0x609FC9: gold::Workqueue::process(int) (workqueue.cc:495)
==23495==    by 0x4069EF: main (main.cc:252)
...
==23495== Invalid read of size 8
==23495==    at 0x402C070: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:877)
==23495==    by 0x674C6D: char* std::string::_S_construct<char const*>(char
const*, char const*, std::allocator<char> const&, std::forward_iterator_tag)
(in /usr/x86_64-pc-li
nux-gnu/binutils-bin/git/ld)
==23495==    by 0x674F79: std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
(in /usr/x86_64-pc-li
nux-gnu/binutils-bin/git/ld)
==23495==    by 0x5B8617: gold::Plugin_manager::add_input_file(char const*,
bool) (options.h:1717)
==23495==    by 0x41EE5EA: all_symbols_read_hook() (gold-plugin.cpp:444)
==23495==    by 0x5B7946:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*, g
old::Task_token**) (plugin.cc:359)
==23495==    by 0x5B7A73: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1420)
==23495==    by 0x609C3C: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==23495==    by 0x609FC9: gold::Workqueue::process(int) (workqueue.cc:495)
==23495==    by 0x4069EF: main (main.cc:252)
==23495==  Address 0x544f1f0 is 32 bytes inside a block of size 47 free'd
==23495==    at 0x4028FF8: operator delete(void*) (vg_replace_malloc.c:480)
==23495==    by 0x5D3C92C: LTOCodeGenerator::~LTOCodeGenerator()
(basic_string.h:249)
==23495==    by 0x5C6121D: lto_codegen_dispose (lto.cpp:213)
==23495==    by 0x41EE56B: all_symbols_read_hook() (gold-plugin.cpp:435)
==23495==    by 0x5B7946:
gold::Plugin_manager::all_symbols_read(gold::Workqueue*, gold::Task*,
gold::Input_objects*, gold::Symbol_table*, gold::Dirsearch*, gold::Mapfile*, g
old::Task_token**) (plugin.cc:359)
==23495==    by 0x5B7A73: gold::Plugin_hook::run(gold::Workqueue*)
(plugin.cc:1420)
==23495==    by 0x609C3C: gold::Workqueue::find_and_run_task(int)
(workqueue.cc:319)
==23495==    by 0x609FC9: gold::Workqueue::process(int) (workqueue.cc:495)
==23495==    by 0x4069EF: main (main.cc:252)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>