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

panic: unknown node type: 'MSAllocatorAttr 0x21a234729f0 <line:420:25>' #873

Open
yanmingsohu opened this issue Jul 28, 2020 · 1 comment

Comments

@yanmingsohu
Copy link

Parse this file: https://github.com/rscada/libmbus/blob/master/mbus/mbus-protocol.c

panic: unknown node type: 'MSAllocatorAttr 0x21a234729f0 <line:420:25>'

goroutine 9463 [running]:
github.com/elliotchance/c2go/ast.Parse(0xc000d4ef8d, 0x2b, 0x6dc8db, 0x5)
        D:/go-projects/src/github.com/elliotchance/c2go/ast/ast.go:294 +0x4548
main.convertLinesToNodes(0xc00028c510, 0x2, 0x6509, 0x0, 0x0, 0x0)
        D:/go-projects/src/github.com/elliotchance/c2go/main.go:89 +0x1ad
main.convertLinesToNodesParallel.func1.1(0xc0064e9aa0, 0xc000304000, 0xc00028c510, 0x2, 0x6509, 0x0)
        D:/go-projects/src/github.com/elliotchance/c2go/main.go:113 +0x5a
created by main.convertLinesToNodesParallel.func1
        D:/go-projects/src/github.com/elliotchance/c2go/main.go:111 +0x12b
clang version 10.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\_dev_tool\LLVM-10.0.0-win64\bin
@leekinzeng
Copy link

same question:

Parse this file: https://github.com/elliotchance/c2go/tree/master/examples/prime.c

panic: unknown node type: 'ColdAttr 0x7fd9300a35b8 col:42'

goroutine 24 [running]:
github.com/elliotchance/c2go/ast.Parse(0xc0003529f1, 0x20, 0x12add34, 0x5)
/Users/liqinzheng/Go/src/github.com/elliotchance/c2go/ast/ast.go:294 +0x3412
main.convertLinesToNodes(0xc00035db80, 0xdc, 0x1b9, 0x0, 0x0, 0x0)
/Users/liqinzheng/Go/src/github.com/elliotchance/c2go/main.go:89 +0x1a6
main.convertLinesToNodesParallel.func1.1(0xc00019a3c0, 0xc000180090, 0xc00035db80, 0xdc, 0x1b9, 0x0)
/Users/liqinzheng/Go/src/github.com/elliotchance/c2go/main.go:113 +0x53
created by main.convertLinesToNodesParallel.func1
/Users/liqinzheng/Go/src/github.com/elliotchance/c2go/main.go:111 +0x12a

Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants