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

SIGSEGV: invalid address #184

Open
97mik opened this issue Apr 4, 2020 · 0 comments
Open

SIGSEGV: invalid address #184

97mik opened this issue Apr 4, 2020 · 0 comments

Comments

@97mik
Copy link

97mik commented Apr 4, 2020

Sometimes got Segmentation fault crash:

* thread #11, name = 'NIO-ELT-#2', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x0000555555d45728 Run`Socket.connect(host="X.X.X.X", port=25, timeout=10000, familyOnly=false, self=<unavailable>) at Socket.swift:1890:20
   1887			
   1888			self.isConnected = true
   1889			var address: Address
-> 1890			if info!.pointee.ai_family == Int32(AF_INET6) {
   1891	
   1892				var addr = sockaddr_in6()
   1893				memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))

Ubuntu 18.04, Swift 5.0.3

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

1 participant