You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I am trying to use this library, but it crashes under Linux. It works fine on OS X Yosemite, but when I tried to run it under Ubuntu 14.04 in vbox, I get a crash. I will try to look at the code and see if I can resolve it, but I just wanted to document the crash here.
In Server.handleQuestion, the first call is to MDNSService.Records. When it segfaults, the MDNSService pointer object that you are calling Records on is nil. I've just noticed today that it doesn't always crash and the MDNSService is not always nil, but it happens often. Just to be clear, I am following the code snippet for setting up a server and client you have on github.
Hey, I am trying to use this library, but it crashes under Linux. It works fine on OS X Yosemite, but when I tried to run it under Ubuntu 14.04 in vbox, I get a crash. I will try to look at the code and see if I can resolve it, but I just wanted to document the crash here.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4c90a3]
goroutine 12 [running]:
github.com/hashicorp/mdns.(_MDNSService).Records(0x0, 0xc20801eb60, 0x15, 0x1000c, 0x0, 0x0, 0x0)
/home/loc/projects/go/src/github.com/hashicorp/mdns/zone.go:139 +0x343
github.com/hashicorp/mdns.(_Server).handleQuestion(0xc20803b680, 0xc20801eb60, 0x15, 0x1000c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
The text was updated successfully, but these errors were encountered: