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

DNS broken in BSD/OSx #115

Open
orthecreedence opened this issue Jan 4, 2015 · 2 comments
Open

DNS broken in BSD/OSx #115

orthecreedence opened this issue Jan 4, 2015 · 2 comments
Labels

Comments

@orthecreedence
Copy link
Owner

(as:with-event-loop ()
  (as:dns-lookup "www.google.com"
    (lambda (addr fam) (format t "addr: ~a~%" addr))
    (lambda (ev) (format t "err: ~a~%" ev)))

This hangs on BSD and throws a memory alignment issue on OSx (see orthecreedence/blackbird#8), quite possibly related.

@fiddlerwoaroof
Copy link

I just tried reproducing this and failed on osx sierra. Has this been fixed?

@zmyrgel
Copy link
Contributor

zmyrgel commented Jan 13, 2019

Just tested this with following code:

CL-USER> (as:with-event-loop ()
           (as:dns-lookup "www.google.com" 
                          (lambda (addr fam) (format t "addr: ~a~%" addr))
                          :event-cb (lambda (ev) (format t "err: ~a~%" ev))))
; in: CL-ASYNC:WITH-EVENT-LOOP ()
;     (LAMBDA (ADDR FAM) (FORMAT T "addr: ~a~%" ADDR))
; ==>
;   #'(LAMBDA (ADDR FAM) (FORMAT T "addr: ~a~%" ADDR))
; 
; caught STYLE-WARNING:
;   The variable FAM is defined but never used.
; 
; compilation unit finished
;   caught 1 STYLE-WARNING condition
addr: 172.217.21.132
0 (0 bits, #x0, #o0, #b0)
CL-USER> 

So it seems to work on OpenBSD-current

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants