Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash of the test MX program #1

Closed
bortzmeyer opened this issue Jan 3, 2011 · 1 comment
Closed

Crash of the test MX program #1

bortzmeyer opened this issue Jan 3, 2011 · 1 comment

Comments

@bortzmeyer
Copy link
Contributor

The demo mx program crashes:

Programmation/Go/godns % _examples/mx/mx
_examples/mx/mx DOMAIN

Programmation/Go/godns % _examples/mx/mx nic.fr
panic: runtime error: invalid memory address or nil pointer dereference

panic PC=0xb7656e90
runtime.panic+0x9f /usr/local/go/src/pkg/runtime/proc.c:1032
runtime.panic(0x80b8bb8, 0xb7652938)
runtime.panicstring+0x61 /usr/local/go/src/pkg/runtime/runtime.c:83
runtime.panicstring(0x81a6977, 0x44)
runtime.sigpanic+0x11b /usr/local/go/src/pkg/runtime/linux/thread.c:286
runtime.sigpanic()
main.main+0x27a /home/bortzmeyer/Programmation/Go/godns/_examples/mx/mx.go:32
main.main()
runtime.mainstart+0xf /usr/local/go/src/pkg/runtime/386/asm.s:84
runtime.mainstart()
runtime.goexit /usr/local/go/src/pkg/runtime/proc.c:148
runtime.goexit()

goroutine 3 [3]:
runtime.entersyscall+0x25 /usr/local/go/src/pkg/runtime/proc.c:572
runtime.entersyscall()
syscall.Syscall6+0x5 /usr/local/go/src/pkg/syscall/asm_linux_386.s:39
syscall.Syscall6()
syscall.EpollWait+0x74 /usr/local/go/src/pkg/syscall/zsyscall_linux_386.go:188
syscall.EpollWait(0x6, 0xb76536d0, 0x1, 0x1, 0xffffffff, ...)
net._pollster·WaitFD+0x134 /usr/local/go/src/pkg/net/fd_linux.go:116
net._pollster·WaitFD(0xb76528d8, 0x0, 0x0, 0x0, 0x0, ...)
net._pollServer·Run+0xcb /usr/local/go/src/pkg/net/fd.go:207
net._pollServer·Run(0xb767dd60, 0x0)
runtime.goexit /usr/local/go/src/pkg/runtime/proc.c:148
runtime.goexit()

goroutine 2 [4]:
runtime.gosched+0x75 /usr/local/go/src/pkg/runtime/proc.c:553
runtime.gosched()
runtime.selectgo+0x2c0 /usr/local/go/src/pkg/runtime/chan.c:768
runtime.selectgo(0xb76536f0, 0xb76717c0)
dns/resolver.query+0x549 /home/bortzmeyer/Programmation/Go/godns/resolver/resolver.go:130
dns/resolver.query(0xb7671540, 0xb76717c0, 0x0)
runtime.goexit /usr/local/go/src/pkg/runtime/proc.c:148
runtime.goexit()

go at its tip:

% hg summary
parent: 7016:4380423c630f tip
Fix documentation typo.
branch: default
commit: 6 unknown (clean)
update: (current)

godns at its tip:
% git log|head
commit 4592aba
Author: Miek Gieben miek@miek.nl
Date: Mon Jan 3 11:34:54 2011 +0100

fix TODO

Debian squeeze:

% uname -a
Linux batilda 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 GNU/Linux

@miekg
Copy link
Owner

miekg commented Jan 3, 2011

Latest git version fixes the issues.

  • added return value checking to the examples.
  • Note: you still have to recompile to set the nameserver you want to use. It is now hardcoded to 127.0.0.1

jmhodges pushed a commit to jmhodges/dns that referenced this issue Aug 12, 2015
matje pushed a commit to matje/dns that referenced this issue Dec 16, 2016
Fixed import references to original. Oops
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants