privacylab / talek

a Private Publish Subscribe System
BSD 2-Clause "Simplified" License
47 stars 5 forks source link

talekclient panic due to uninitialized Handle.hasher #96

Closed mixmasala closed 9 months ago

mixmasala commented 9 months ago
27fb29696b31:/build/talek/cli/talekclient#  ./talekclient --verbose --config /path/to/config.json --topic talek.foo --write "hellooo"
Connection to RPC established.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x6917f4]

goroutine 1 [running]:
github.com/privacylab/talek/libtalek.(*Handle).nextInterestVector(0xc000016290)
    /build/talek/libtalek/handle.go:92 +0xb4
github.com/privacylab/talek/libtalek.(*Topic).GeneratePublish(0xc000016280, 0x3b0?, {0xc000146400, 0x3b0, 0x3b0})
    /build/talek/libtalek/topic.go:87 +0xcc
github.com/privacylab/talek/libtalek.(*Client).Publish(0xc000000180, 0x7fff4b9e6e66?, {0xc00001ce10?, 0x1?, 0x1?})
    /build/talek/libtalek/client.go:126 +0x230
main.main()
    /build/talek/cli/talekclient/main.go:92 +0xca5