[LLVMbugs] [Bug 14370] New: bugpoint crashes when undoing loop extraction

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 17 10:43:07 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14370

             Bug #: 14370
           Summary: bugpoint crashes when undoing loop extraction
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9560
  --> http://llvm.org/bugs/attachment.cgi?id=9560
Testcase

Tested with trunk, SVN r168259 / git 9e6ee16b1814268897965b81e82a74ef39173ee1.

$ bugpoint --version
LLVM (http://llvm.org/):
  LLVM version 3.2svn
  DEBUG build with assertions.
  Built Nov 17 2012 (20:27:33).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: penryn

$ bugpoint -llc-safe linked.bc -sroa
Read input file      : 'linked.bc'
*** All input ok
Running selected passes on program to test for crash: Success!
Initializing execution environment: Found gcc: /home/deewiant/bin/gcc
Running the code generator to test for a crash: <llc>
Generating reference output from raw program: <llc><llc><gcc><program>
Reference output is: bugpoint.reference.out-ASQh2h

*** Checking the code generator...
<llc><gcc><program>
*** Output matches: Debugging miscompilation!
Checking to see if '' compiles correctly: <llc><gcc><program> yup.
Checking to see if '-sroa' compiles correctly: <llc><gcc><program> nope.

*** Found miscompiling pass: -sroa
Emitted bitcode to 'bugpoint-passinput.bc'

*** You can reproduce the problem with: opt bugpoint-passinput.bc -sroa
Checking to see if the program is misoptimized when these functions are run
through the pass: main r_split_node r_flatten_node
  Optimizing functions being tested: done.
  Checking to see if the merged program executes correctly: <llc><gcc><program>
nope.
Checking to see if the program is misoptimized when these functions are run
through the pass: r_split_node r_flatten_node
  Optimizing functions being tested: done.
  Checking to see if the merged program executes correctly: <llc><gcc><program>
nope.
Checking to see if the program is misoptimized when this function is run
through the pass: r_flatten_node
  Optimizing functions being tested: done.
  Checking to see if the merged program executes correctly: <llc><gcc><program>
yup.
Checking to see if the program is misoptimized when this function is run
through the pass: r_split_node
  Optimizing functions being tested: done.
  Checking to see if the merged program executes correctly: <llc><gcc><program>
nope.

*** The following function is being miscompiled:  r_split_node
Extracted a loop from the breaking portion of the program.
<llc><gcc><program>  Testing after loop extraction:
  Optimizing functions being tested: done.
  Checking to see if the merged program executes correctly: <llc><gcc><program>
yup.
*** Loop extraction masked the problem.  Undoing.
0  bugpoint        0x0000000000c7c20e
1  bugpoint        0x0000000000c7c70a
2  libpthread.so.0 0x00007f22362941a0
3  bugpoint        0x0000000000542dca
4  bugpoint        0x0000000000542dac
5  bugpoint        0x000000000053ffef
6  bugpoint        0x000000000056600b
7  bugpoint        0x000000000056309d
8  bugpoint        0x0000000000562ae2
llvm::BugDriver::debugMiscompilation(std::string*) + 514
9  bugpoint        0x00000000005325ae llvm::BugDriver::run(std::string&) + 1246
10 bugpoint        0x0000000000578708 main + 1576
11 libc.so.6       0x00007f22354e9725 __libc_start_main + 245
12 bugpoint        0x00000000005318d9
Stack dump:
0.    Program arguments: bugpoint -llc-safe linked.bc -sroa

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list