s-rah / onionscan

OnionScan is a free and open source tool for investigating the Dark Web.
https://twitter.com/OnionScan
Other
2.89k stars 599 forks source link

Panic runtime error: Segmentation violation #153

Open cxyang101 opened 6 years ago

cxyang101 commented 6 years ago

Getting this issue:

dhcp-18-111-107-187:onionscan cindyyang$ onionscan --crawlconfigdir=service-configs/ --depth=1 --scans=web --webport=8080 --verbose --torProxyAddress=127.0.0.1:9150 http://wallst3gi4a5wtn4.onion
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x73e53]

goroutine 1 [running]:
panic(0x403500, 0xc420012080)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/s-rah/onionscan/config.Configure.func1(0x7fff5fbffb2b, 0x10, 0x0, 0x0, 0x658720, 0xc42015f560, 0x1, 0xc42016c170)
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/config/onionscan_config.go:53 +0x43
path/filepath.Walk(0x7fff5fbffb2b, 0x10, 0xc42016c170, 0x0, 0x1000)
    /usr/local/go/src/path/filepath/path.go:396 +0x8b
github.com/s-rah/onionscan/config.Configure(0x7fff5fbffb7d, 0xe, 0x1, 0x1, 0x78, 0x477d75, 0xd, 0xc4200135f0, 0x1, 0x1, ...)
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/config/onionscan_config.go:66 +0x35b
main.main()
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/main.go:62 +0x699
dhcp-18-111-107-187:onionscan cindyyang$ export GOPATH=~/go
dhcp-18-111-107-187:onionscan cindyyang$ export PATH=$PATH:$GOPATH/bin
dhcp-18-111-107-187:onionscan cindyyang$ 
dhcp-18-111-107-187:onionscan cindyyang$ onionscan --crawlconfigdir=service-configs/ --depth=1 --scans=web --webport=8080 --verbose --torProxyAddress=127.0.0.1:9150 http://wallst3gi4a5wtn4.onion
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x73e53]

goroutine 1 [running]:
panic(0x403500, 0xc420012080)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/s-rah/onionscan/config.Configure.func1(0x7fff5fbffb13, 0x10, 0x0, 0x0, 0x658720, 0xc420171500, 0x1, 0xc420180090)
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/config/onionscan_config.go:53 +0x43
path/filepath.Walk(0x7fff5fbffb13, 0x10, 0xc420180090, 0x0, 0x1000)
    /usr/local/go/src/path/filepath/path.go:396 +0x8b
github.com/s-rah/onionscan/config.Configure(0x7fff5fbffb65, 0xe, 0x1, 0x1, 0x78, 0x477d75, 0xd, 0xc420075510, 0x1, 0x1, ...)
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/config/onionscan_config.go:66 +0x35b
main.main()
    /Users/cindyyang/go/src/github.com/s-rah/onionscan/main.go:62 +0x699

I'm using go 1.7.3 and here are my settings:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/cindyyang/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lr/s20yh16d4sqc7nh3124464xr0000gn/T/go-build998272678=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"