<html>
    <head>
      <base href="https://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 --- - Error in `bugpoint': free(): invalid pointer"
   href="https://llvm.org/bugs/show_bug.cgi?id=27166">27166</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error in `bugpoint': free(): invalid pointer
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.8
          </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>bugpoint
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sh37092@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16141" name="attach_16141" title="input bitcode">attachment 16141</a> <a href="attachment.cgi?id=16141&action=edit" title="input bitcode">[details]</a></span>
input bitcode

gzip1.bc is generated by llvm-link.

supervisor@localhost:~$ bugpoint --output gzip.out -run-llc-ia ./gzip1.bc
--gcc-tool-args -static
Read input file      : './gzip1.bc'
*** All input ok
Initializing execution environment: Found llc: /opt/llvm/3.8.0/bin/llc
Running the code generator to test for a crash: <llc-ia>
*** Checking the code generator...
<llc-ia><CC><program>
*** Input program does not match reference diff!
Debugging code generator problem!
Checking to see if the program is misoptimized when these functions are run
through the passes: bi_init send_bits bi_reverse bi_windup copy_block lm_init
longest_match deflate get_method abort_gzip... <69 total>
*** Error in `bugpoint': free(): invalid pointer: 0x0000000002702910 ***
#0 0x0000000000bb19e5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/opt/llvm/3.8.0/bin/bugpoint+0xbb19e5)
#1 0x0000000000bafa06 llvm::sys::RunSignalHandlers()
(/opt/llvm/3.8.0/bin/bugpoint+0xbafa06)
#2 0x0000000000bafc05 SignalHandler(int)
(/opt/llvm/3.8.0/bin/bugpoint+0xbafc05)
#3 0x00007f932d476340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x00007f932c69ecc9 gsignal
/build/eglibc-3GlaMS/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f932c6a20d8 abort
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f932c6db394
/build/eglibc-3GlaMS/eglibc-2.19/libio/../sysdeps/posix/libc_fatal.c:175:0
#7 0x00007f932c6e766e malloc_printerr
/build/eglibc-3GlaMS/eglibc-2.19/malloc/malloc.c:4996:0
#8 0x00007f932c6e766e _int_free
/build/eglibc-3GlaMS/eglibc-2.19/malloc/malloc.c:3840:0
#9 0x00000000008a9171 llvm::Module::~Module()
(/opt/llvm/3.8.0/bin/bugpoint+0x8a9171)
#10 0x0000000000542815 TestCodeGenerator(llvm::BugDriver&,
std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> >,
std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> >,
std::string&) (/opt/llvm/3.8.0/bin/bugpoint+0x542815)
#11 0x0000000000543ae3 (anonymous
namespace)::ReduceMiscompilingFunctions::TestFuncs(std::vector<llvm::Function*,
std::allocator<llvm::Function*> > const&, std::string&) [clone .isra.235]
(/opt/llvm/3.8.0/bin/bugpoint+0x543ae3)
#12 0x0000000000544116 (anonymous
namespace)::ReduceMiscompilingFunctions::doTest(std::vector<llvm::Function*,
std::allocator<llvm::Function*> >&, std::vector<llvm::Function*,
std::allocator<llvm::Function*> >&, std::string&)
(/opt/llvm/3.8.0/bin/bugpoint+0x544116)
#13 0x000000000052b438
llvm::ListReducer<llvm::Function*>::reduceList(std::vector<llvm::Function*,
std::allocator<llvm::Function*> >&, std::string&)
(/opt/llvm/3.8.0/bin/bugpoint+0x52b438)
#14 0x0000000000545b21 DebugAMiscompilation(llvm::BugDriver&, bool
(*)(llvm::BugDriver&, std::unique_ptr<llvm::Module,
std::default_delete<llvm::Module> >, std::unique_ptr<llvm::Module,
std::default_delete<llvm::Module> >, std::string&), std::string&)
(/opt/llvm/3.8.0/bin/bugpoint+0x545b21)
#15 0x00000000005491b6 llvm::BugDriver::debugCodeGenerator(std::string*)
(/opt/llvm/3.8.0/bin/bugpoint+0x5491b6)
#16 0x0000000000529183 llvm::BugDriver::run(std::string&)
(/opt/llvm/3.8.0/bin/bugpoint+0x529183)
#17 0x000000000050fe6e main (/opt/llvm/3.8.0/bin/bugpoint+0x50fe6e)
#18 0x00007f932c689ec5 __libc_start_main
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:321:0
#19 0x0000000000527b94 _start (/opt/llvm/3.8.0/bin/bugpoint+0x527b94)
Stack dump:
0.    Program arguments: bugpoint --output gzip.out -run-llc-ia ./gzip1.bc
--gcc-tool-args -static 
已放弃 (核心已转储)</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>