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: runtime error: invalid memory address or nil pointer dereference #889

Open
avagin opened this issue Apr 1, 2022 · 0 comments
Open

Comments

@avagin
Copy link

avagin commented Apr 1, 2022

c2go transpile -clang-flag -M -clang-flag -MT -clang-flag compel/plugins/std/infect.d -clang-flag -MT -clang-flag compel/plugins/std/infect.o -clang-flag -O2 -clang-flag -g -clang-flag -Wall -clang-flag -Wformat-security -clang-flag -Wdeclaration-after-statement -clang-flag -Wstrict-prototypes -clang-flag -Werror -clang-flag -DCONFIG_X86_64 -clang-flag -D_FILE_OFFSET_BITS=64 -clang-flag -D_GNU_SOURCE -clang-flag -DCONFIG_COMPAT -clang-flag -iquote -clang-flag include/ -clang-flag -DCONFIG_COMPAT -clang-flag -U_FORTIFY_SOURCE -clang-flag -D_FORTIFY_SOURCE=0 -clang-flag -Wp,-U_FORTIFY_SOURCE -clang-flag -Wp,-D_FORTIFY_SOURCE=0 -clang-flag -DCR_NOGLIBC -clang-flag -I -clang-flag compel/include/uapi -clang-flag -iquote -clang-flag compel/include -clang-flag -fpie -clang-flag -fno-stack-protector -clang-flag -iquote -clang-flag compel/plugins/include -clang-flag -iquote -clang-flag compel/arch/x86/plugins/include compel/plugins/std/infect.c
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x58175c]

goroutine 1 [running]:
github.com/elliotchance/c2go/preprocessor.analyzeFiles({0xc0000108e0, 0x7fc02639bfff, 0x10}, {0xc000039000, 0x203000, 0x203000}, 0x0)
	/home/avagin/go/pkg/mod/github.com/elliotchance/[email protected]/preprocessor/preprocessor.go:203 +0x53c
github.com/elliotchance/c2go/preprocessor.Analyze({0xc0000108e0, 0x1, 0x2}, {0xc000039000, 0x22, 0x40}, 0x38)
	/home/avagin/go/pkg/mod/github.com/elliotchance/[email protected]/preprocessor/preprocessor.go:89 +0x73
main.Start({0x0, 0x0, {0xc0000108e0, 0x1, 0x2}, {0xc000039000, 0x22, 0x40}, {0x0, 0x0}, ...})
	/home/avagin/go/pkg/mod/github.com/elliotchance/[email protected]/main.go:193 +0x150
main.runCommand()
	/home/avagin/go/pkg/mod/github.com/elliotchance/[email protected]/main.go:429 +0x5b8
main.main()
	/home/avagin/go/pkg/mod/github.com/elliotchance/[email protected]/main.go:352 +0x19
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

1 participant