Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid.mlir test leaks memory in Parser #51387

Closed
joker-eph opened this issue Oct 2, 2021 · 1 comment
Closed

invalid.mlir test leaks memory in Parser #51387

joker-eph opened this issue Oct 2, 2021 · 1 comment
Assignees
Labels
bugzilla Issues migrated from bugzilla mlir:core MLIR Core Infrastructure

Comments

@joker-eph
Copy link
Collaborator

Bugzilla Link 52045
Version unspecified
OS All
CC @jpienaar,@River707

Extended Description

Trace looks like this:

    #​0 0xda5938d in operator new(unsigned long) (build-asan/bin/mlir-opt+0xda5938d)
    #​1 0x122b1ff3 in (anonymous namespace)::OperationParser::defineBlockNamed(llvm::StringRef, llvm::SMLoc, mlir::Block*) mlir/lib/Parser/Parser.cpp:1837:47
    #​2 0x122b0c7f in (anonymous namespace)::OperationParser::parseBlock(mlir::Block*&) mlir/lib/Parser/Parser.cpp:1779:11
    #&#8203;3 0x122afc50 in (anonymous namespace)::OperationParser::parseRegionBody(mlir::Region&, llvm::SMLoc, llvm::ArrayRef<std::pair<(anonymous namespace)::OperationParser::SSAUseInfo, mlir::Type> >, bool) mlir/lib/Parser/Parser.cpp:1743:9
    #&#8203;4 0x122ae9bb in (anonymous namespace)::OperationParser::parseRegion(mlir::Region&, llvm::ArrayRef<std::pair<(anonymous namespace)::OperationParser::SSAUseInfo, mlir::Type> >, bool) mlir/lib/Parser/Parser.cpp:1669:7
    #&#8203;5 0x122a87f1 in (anonymous namespace)::CustomOpAsmParser::parseRegion(mlir::Region&, llvm::ArrayRef<mlir::OpAsmParser::OperandType>, llvm::ArrayRef<mlir::Type>, bool) mlir/lib/Parser/Parser.cpp:1359:16
    #&#8203;6 0x122a8b45 in (anonymous namespace)::CustomOpAsmParser::parseOptionalRegion(mlir::Region&, llvm::ArrayRef<mlir::OpAsmParser::OperandType>, llvm::ArrayRef<mlir::Type>, bool) mlir/lib/Parser/Parser.cpp:1371:12
    #&#8203;7 0x12892d9f in mlir::function_like_impl::parseFunctionLikeOp(mlir::OpAsmParser&, mlir::OperationState&, bool, llvm::function_ref<mlir::Type (mlir::Builder&, llvm::ArrayRef<mlir::Type>, llvm::ArrayRef<mlir::Type>, mlir::function_like_impl::VariadicFlag, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)>) mlir/lib/IR/FunctionImplementation.cpp:258:44
    #&#8203;8 0x1276e651 in parseFuncOp(mlir::OpAsmParser&, mlir::OperationState&) mlir/lib/IR/BuiltinDialect.cpp:122:10
    #&#8203;9 0x1276e558 in mlir::FuncOp::parse(mlir::OpAsmParser&, mlir::OperationState&) build-asan/tools/mlir/include/mlir/IR/BuiltinOps.cpp.inc:252:10
@joker-eph
Copy link
Collaborator Author

assigned to @River707

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla mlir:core MLIR Core Infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant