[llvm-bugs] [Bug 28577] New: [PM] Assertion `PipelineText[0] == ', '' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 15 16:15:46 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28577

            Bug ID: 28577
           Summary: [PM] Assertion `PipelineText[0] == ','' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: chandlerc at gmail.com
          Reporter: chisophugis at gmail.com
                CC: llvm-bugs at lists.llvm.org
            Blocks: 28315
    Classification: Unclassified

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: https://reviews.llvm.org/P6751)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160715/beedf55d/attachment.html>


More information about the llvm-bugs mailing list