Hi,
I'm new to go so i may very well be doing something wrong to compile.
I grabbed ajpclient, and installed golang 1.7.3 from RPM from EPEL. Running on RHEL6.
I tried both
go build ajpclient.go
and
go build -buildmode=pie ajpclient.go
In each case I got a binary with no compiler errors. Each of them gives help text if called with no arguments, but when i call with arguments i get something like:
src/ajpclient/ajpclient@cnsutil0% ./ajpclient http://localhost:8009
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7f2597c0a662]
goroutine 1 [running]:
panic(0x7f2597f3e020, 0xc4200100f0)
/usr/lib/golang/src/runtime/panic.go:500 +0x1a5
main.main()
/usr/csg-nas/danno/src/ajpclient/ajpclient/ajpclient.go:287 +0x1a2
src/ajpclient/ajpclient@cnsutil0% ldd ajpclient
Any suggestions?
thanks!
Hi,
I'm new to go so i may very well be doing something wrong to compile.
I grabbed ajpclient, and installed golang 1.7.3 from RPM from EPEL. Running on RHEL6.
I tried both
go build ajpclient.go
and
go build -buildmode=pie ajpclient.go
In each case I got a binary with no compiler errors. Each of them gives help text if called with no arguments, but when i call with arguments i get something like:
Any suggestions?
thanks!