<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 --- - [PM] Assertion `PipelineText[0] == ','' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=28577">28577</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PM] Assertion `PipelineText[0] == ','' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>Core LLVM classes
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chandlerc@gmail.com
          </td>
        </tr>

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

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

        <tr>
          <th>Blocks</th>
          <td>28315
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>There seems to be a bug in the pass pipeline parser.

sean:~/pg/release-asan % ./bin/opt
-passes='function(gvn)function(loop-simplify)' -disable-output foo.ll           
opt: /home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:677: bool
llvm::PassBuilder::parseModulePassPipeline(llvm::ModulePassManager&,
llvm::StringRef&, bool, bool): Assertion `PipelineText[0] == ','' failed.
#0 0x00007eff9380d077 (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x4a077)
#1 0x00000000030ee1e3 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/sean/pg/llvm/lib/Support/Unix/Signals.inc:406:0
#2 0x00000000030e9e89 llvm::sys::RunSignalHandlers()
/home/sean/pg/llvm/lib/Support/Signals.cpp:44:0
#3 0x00000000030ea267 SignalHandler(int)
/home/sean/pg/llvm/lib/Support/Unix/Signals.inc:246:0
#4 0x00007eff935b73d0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x113d0)
#5 0x00007eff92553418 gsignal
/build/glibc-GKVZIf/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007eff9255501a abort /build/glibc-GKVZIf/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007eff9254bbd7 __assert_fail_base
/build/glibc-GKVZIf/glibc-2.23/assert/assert.c:92:0
#8 0x00007eff9254bc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x00000000033e2b01 llvm::StringRef::operator[](unsigned long) const
/home/sean/pg/llvm/include/llvm/ADT/StringRef.h:215:0
#10 0x00000000033e2b01
llvm::PassBuilder::parseModulePassPipeline(llvm::PassManager<llvm::Module>&,
llvm::StringRef&, bool, bool)
/home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:629:0
#11 0x00000000033e2eb9
llvm::PassBuilder::parsePassPipeline(llvm::PassManager<llvm::Module>&,
llvm::StringRef, bool, bool)
/home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:691:0
#12 0x000000000081c909 llvm::runPassPipeline(llvm::StringRef,
llvm::LLVMContext&, llvm::Module&, llvm::TargetMachine*,
llvm::tool_output_file*, llvm::StringRef, llvm::opt_tool::OutputKind,
llvm::opt_tool::VerifierKind, bool, bool)
/home/sean/pg/llvm/tools/opt/NewPMDriver.cpp:85:0
#13 0x00000000006ceaed main /home/sean/pg/llvm/tools/opt/opt.cpp:473:0
#14 0x00007eff9253e830 __libc_start_main
/build/glibc-GKVZIf/glibc-2.23/csu/../csu/libc-start.c:325:0
#15 0x000000000080f199 _start (./bin/opt+0x80f199)
Stack dump:
0.      Program arguments: ./bin/opt
-passes=function(gvn)function(loop-simplify) -disable-output foo.ll 
zsh: abort (core dumped)  ./bin/opt
-passes='function(gvn)function(loop-simplify)' -disable-output 
sean:~/pg/release-asan % ./bin/opt
-passes='function(gvn)function(loop-simplify)' -disable-output /dev/null
opt: /home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:677: bool
llvm::PassBuilder::parseModulePassPipeline(llvm::ModulePassManager&,
llvm::StringRef&, bool, bool): Assertion `PipelineText[0] == ','' failed.
#0 0x00007fc319de6077 (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x4a077)
#1 0x00000000030ee1e3 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/sean/pg/llvm/lib/Support/Unix/Signals.inc:406:0
#2 0x00000000030e9e89 llvm::sys::RunSignalHandlers()
/home/sean/pg/llvm/lib/Support/Signals.cpp:44:0
#3 0x00000000030ea267 SignalHandler(int)
/home/sean/pg/llvm/lib/Support/Unix/Signals.inc:246:0
#4 0x00007fc319b903d0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x113d0)
#5 0x00007fc318b2c418 gsignal
/build/glibc-GKVZIf/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#6 0x00007fc318b2e01a abort /build/glibc-GKVZIf/glibc-2.23/stdlib/abort.c:91:0
#7 0x00007fc318b24bd7 __assert_fail_base
/build/glibc-GKVZIf/glibc-2.23/assert/assert.c:92:0
#8 0x00007fc318b24c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#9 0x00000000033e2b01 llvm::StringRef::operator[](unsigned long) const
/home/sean/pg/llvm/include/llvm/ADT/StringRef.h:215:0
#10 0x00000000033e2b01
llvm::PassBuilder::parseModulePassPipeline(llvm::PassManager<llvm::Module>&,
llvm::StringRef&, bool, bool)
/home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:629:0
#11 0x00000000033e2eb9
llvm::PassBuilder::parsePassPipeline(llvm::PassManager<llvm::Module>&,
llvm::StringRef, bool, bool)
/home/sean/pg/llvm/lib/Passes/PassBuilder.cpp:691:0
#12 0x000000000081c909 llvm::runPassPipeline(llvm::StringRef,
llvm::LLVMContext&, llvm::Module&, llvm::TargetMachine*,
llvm::tool_output_file*, llvm::StringRef, llvm::opt_tool::OutputKind,
llvm::opt_tool::VerifierKind, bool, bool)
/home/sean/pg/llvm/tools/opt/NewPMDriver.cpp:85:0
#13 0x00000000006ceaed main /home/sean/pg/llvm/tools/opt/opt.cpp:473:0
#14 0x00007fc318b17830 __libc_start_main
/build/glibc-GKVZIf/glibc-2.23/csu/../csu/libc-start.c:325:0
#15 0x000000000080f199 _start (./bin/opt+0x80f199)
Stack dump:
0.      Program arguments: ./bin/opt
-passes=function(gvn)function(loop-simplify) -disable-output /dev/null 
zsh: abort (core dumped)  ./bin/opt
-passes='function(gvn)function(loop-simplify)' -disable-output 


(non-bugzilla-wrapped output here: <a href="https://reviews.llvm.org/P6751">https://reviews.llvm.org/P6751</a>)</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>