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

goreporter generates runtime error: invalid memory address #53

Open
aka-mj opened this issue Jan 2, 2018 · 1 comment
Open

goreporter generates runtime error: invalid memory address #53

aka-mj opened this issue Jan 2, 2018 · 1 comment

Comments

@aka-mj
Copy link

aka-mj commented Jan 2, 2018

Hello,

Attempting to run goreporter on my project but it gets an error.

❯❯❯ goreporter -p . -r . -f html                                                                                                                                                                                                                                  
2018/01/02 11:50:04 The template path is not specified,and will use the default template
2018/01/02 11:50:04 There are no packages that are excepted, review all items of the package
2018/01/02 11:50:04 Linter:CountCode over,time consuming 0.007610744s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8049e6c]

goroutine 35 [running]:
sync/atomic.AddUint64(0x1a75eb2c, 0xa, 0x0, 0x0, 0x0)
        /home/mjohn/software/go/src/sync/atomic/asm_386.s:112 +0xc
github.com/360EntSecGroup-Skylar/goreporter/engine/processbar.LinterProcessBar(0x1a89a000, 0x1a8152c0)
        /home/mjohn/workspaces/goprojects/src/github.com/360EntSecGroup-Skylar/goreporter/engine/processbar/processbar.go:82 +0x31d
created by main.main
        /home/mjohn/workspaces/goprojects/src/github.com/360EntSecGroup-Skylar/goreporter/main.go:151 +0x803

My project is able to build via go build and there is no vendor directory to exclude. This is with HEAD of goreporter.

❯❯❯ goreporter -version                                                                                                                                                                                                                                           
GoReporter v3.0.0
❯❯❯ go version                                                                                                                                                                                                                                                      
go version go1.9.1 linux/386
@WinstonPrivacy
Copy link

WinstonPrivacy commented Feb 24, 2018

Same here...

2018/02/24 17:21:52 The template path is not specified,and will use the default template
2018/02/24 17:21:52 There are no packages that are excepted, review all items of the package
2018/02/24 17:21:52 Linter:CountCode over,time consuming 0.038459578s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x13454]

goroutine 20 [running]:
sync/atomic.addUint64(0x11b59d4c, 0x1, 0x0, 0x0, 0x0)
        /usr/local/go/src/sync/atomic/64bit_arm.go:31 +0x4c
github.com/360EntSecGroup-Skylar/goreporter/engine/processbar.LinterProcessBar(0x11c80000, 0x11b992c0)
        /root/code/go/src/github.com/360EntSecGroup-Skylar/goreporter/engine/processbar/processbar.go:82 +0x2ec
created by main.main

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