LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 45704 - MLIR parser crash
Summary: MLIR parser crash
Status: RESOLVED FIXED
Alias: None
Product: MLIR
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Linux
: P enhancement
Assignee: Sean Silva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 13:53 PDT by Sean Silva
Modified: 2020-04-27 15:24 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Silva 2020-04-27 13:53:02 PDT
echo '"foo.op"() {a,a} : () -> ()' | mlir-opt

assert.h assertion failed at third_party/llvm/llvm-project/mlir/lib/IR/Attributes.cpp:122 in static mlir::DictionaryAttr mlir::DictionaryAttr::get(ArrayRef<mlir::NamedAttribute>, mlir::MLIRContext *): value[0].first != value[1].first && "DictionaryAttr element names must be unique"                                                                                                                                                                                                                
    @     0x55e2989305c0  __assert_fail
    @     0x55e298354c40  mlir::DictionaryAttr::get()                                                                                                                                                             
    @     0x55e29835a68a  mlir::NamedAttributeList::setAttrs()
    @     0x55e29835a5f5  mlir::NamedAttributeList::NamedAttributeList()                                                                                                                                          
    @     0x55e2983bc6b9  mlir::Operation::create()
    @     0x55e298374271  mlir::OpBuilder::createOperation()                                                                                                                                                      
    @     0x55e297687301  (anonymous namespace)::OperationParser::parseGenericOperation()
    @     0x55e2976847ad  (anonymous namespace)::OperationParser::parseOperation()                                                                                                                                
    @     0x55e2976836ab  (anonymous namespace)::ModuleParser::parseModule()
Comment 1 Sean Silva 2020-04-27 15:24:58 PDT
Fixed in https://reviews.llvm.org/D78966