Re: Crash with FD_SET when there are more than 1024 open files
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=0Ai4c87XT6GOH6GDHVNrv/m3nGLGzQYCeIRuLu9rzKc=; b=dvmNDBizfdGuNa0I7awq4XVlZsT35Bwh3jDIViWy0Sni58j4HEv/3okbfePUSISBH7 ajFGDar+qKUCnwAJRy3dhach+Dn9m1RENVGXLsHBARnlWRwuG5izx4hM8ttznwZGQVCr TCWwBguVu9tSpAMAESOUH6Bkl4t7WePLTTWqQ= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=Jjdlcau57+IfNefcyaE4d9yLN1E6evt3jHu0tE7dnfsEc4/94F9ly8uDstTIpdJzyl 08WXXLYxVK04r73pdxd1HDfxu03hql7OINTlnefVlnRJZ2azx1ElYKhQ+QjcgSRlpoWa n6yVv51XfzwRC7Nne6bgSloUEktRj3GDBa2Tg= This is a very well know issue. Work-arounds include using epoll(linux) or kqueue(bsd). select() doesn't scale very well when handling a large number of fd (10k+), and will certainly crash (stack corruption) when more than FD_SETSIZE fds are opened. On Thu, Apr 15, 2010 at 2:18 PM, Joel Reymont <joelr1@gmail.com> wrote:
I was running Erlang which I compiled myself just so that it used my modified FD_SETSIZE.
On Apr 15, 2010, at 7:03 PM, Stefan Haller wrote:
Then you may just have been lucky. The Bonjour problem I discribed occurs whenever you open an NSOpenPanel or NSSavePanel while you are on a LAN with other Macs. So either this doesn't apply to you, or the code did overwrite random bits somewhere on your stack and you just didn't notice.
--- http://es.linkedin.com/in/joelreymont
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/g-beauchemin%40videotron.c...
This email sent to g-beauchemin@videotron.ca
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gabriel Beauchemin