proxypool icon indicating copy to clipboard operation
proxypool copied to clipboard

启动时报错,麻烦看一下

Open blyanqi opened this issue 6 years ago • 1 comments

./proxypool conf/app.ini 2018/10/17 18:51:29 [TRACE] Log path: 2018/10/17 18:51:29 [TRACE] Log Mode: File (Info) 2018/10/17 18:51:29 [ INFO] ProxyPool 2018/10/17 18:51:29 Starting server 0.0.0.0:3000 2018/10/17 18:51:29 Chan: 0, IP: 0 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7f3f2a]

goroutine 21 [running]: github.com/Aiicy/htmlquery.(*NodeNavigator).NodeType(0xc4202c8100, 0x7f260e858bf8) /root/go/src/github.com/Aiicy/htmlquery/query.go:145 +0x2a github.com/antchfx/xpath.axisPredicate.func1(0xb2c9c0, 0xc4202c8100, 0x4128c8) /root/go/src/github.com/antchfx/xpath/build.go:45 +0x4f github.com/antchfx/xpath.(*descendantQuery).Select.func1(0x8a6500, 0xc420163ec0) /root/go/src/github.com/antchfx/xpath/query.go:236 +0x158 github.com/antchfx/xpath.(*descendantQuery).Select(0xc420163da0, 0xb231a0, 0xc4202c80c0, 0xc42002d400, 0x8000e851000) /root/go/src/github.com/antchfx/xpath/query.go:263 +0x36 github.com/antchfx/xpath.(*filterQuery).Select(0xc4202c8060, 0xb231a0, 0xc4202c80c0, 0x881200, 0x0) /root/go/src/github.com/antchfx/xpath/query.go:526 +0x4b github.com/antchfx/xpath.(*descendantQuery).Select(0xc420163e00, 0xb231a0, 0xc4202c80c0, 0x412167, 0xc420163e90) /root/go/src/github.com/antchfx/xpath/query.go:226 +0xd5 github.com/antchfx/xpath.(*filterQuery).Select(0xc4202c80a0, 0xb231a0, 0xc4202c80c0, 0xc4202c80c0, 0x20) /root/go/src/github.com/antchfx/xpath/query.go:526 +0x4b github.com/antchfx/xpath.(*descendantQuery).Select(0xc420163e60, 0xb231a0, 0xc4202c80c0, 0x0, 0xb28f01) /root/go/src/github.com/antchfx/xpath/query.go:226 +0xd5 github.com/antchfx/xpath.(*descendantQuery).Select(0xc420163e90, 0xb231a0, 0xc4202c80c0, 0xc4202c80c0, 0xc420163e90) /root/go/src/github.com/antchfx/xpath/query.go:226 +0xd5 github.com/antchfx/xpath.(*NodeIterator).MoveNext(0xc4202c80c0, 0xb2c9c0) /root/go/src/github.com/antchfx/xpath/xpath.go:85 +0x49 github.com/Aiicy/htmlquery.Find(0x0, 0x9045ea, 0x39, 0xb241e0, 0xc420163bf0, 0x0, 0xc, 0xc0ad00) /root/go/src/github.com/Aiicy/htmlquery/query.go:32 +0x112 github.com/henson/proxypool/getter.PLP(0xc, 0xc4201f8150, 0xc4201f2060) /root/go/src/github.com/henson/proxypool/getter/plp.go:14 +0x6e main.run.func1(0xc42010e1e0, 0xc4201f20e0, 0x916658) /root/go/src/github.com/henson/proxypool/main.go:70 +0x2b created by main.run /root/go/src/github.com/henson/proxypool/main.go:69 +0xe0

blyanqi avatar Oct 17 '18 11:10 blyanqi

此问题已经修正。。

sndnvaps avatar Feb 01 '19 08:02 sndnvaps