hkparker / go-i2p

A pure Go implementation of the I2P router
MIT License
111 stars 18 forks source link

crypto package cannot be tested with race flag #5

Open hkparker opened 8 years ago

hkparker commented 8 years ago
$ go test ./... -race
?       github.com/hkparker/go-i2p  [no test files]
==2648==ERROR: ThreadSanitizer failed to allocate 0x2720000 (41025536) bytes at address 1fc6dba31c080 (errno: 12)
unexpected fault address 0x0
fatal error: fault
[signal 0x7 code=0x80 addr=0x0 pc=0x7f1b6e332435]

goroutine 1 [running, locked to thread]:
runtime.throw(0x0, 0x7f1b6df32308)
    /usr/lib/go/src/runtime/panic.go:547 +0x90 fp=0x7ffee7a3cfb0 sp=0x7ffee7a3cf98

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/lib/go/src/runtime/asm_amd64.s:1998 +0x1
FAIL    github.com/hkparker/go-i2p/lib/common   0.007s
?       github.com/hkparker/go-i2p/lib/common/base32    [no test files]
?       github.com/hkparker/go-i2p/lib/common/base64    [no test files]
?       github.com/hkparker/go-i2p/lib/config   [no test files]
==2521==ERROR: ThreadSanitizer failed to allocate 0x26f8000 (40861696) bytes at address 1ffafa05c4080 (errno: 12)
unexpected fault address 0x0
fatal error: fault
[signal 0x7 code=0x80 addr=0x0 pc=0x7febe7de24e5]

goroutine 1 [running, locked to thread]:
runtime.throw(0x0, 0x7febe7c80458)
    /usr/lib/go/src/runtime/panic.go:547 +0x90 fp=0x7ffce1d62dc0 sp=0x7ffce1d62da8

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/lib/go/src/runtime/asm_amd64.s:1998 +0x1
FAIL    github.com/hkparker/go-i2p/lib/crypto   0.006s
?       github.com/hkparker/go-i2p/lib/i2np [no test files]
?       github.com/hkparker/go-i2p/lib/netdb    [no test files]
?       github.com/hkparker/go-i2p/lib/router   [no test files]
?       github.com/hkparker/go-i2p/lib/transport    [no test files]
?       github.com/hkparker/go-i2p/lib/transport/ssu    [no test files]
?       github.com/hkparker/go-i2p/lib/tunnel   [no test files]