[eio] getaddrinfo / pthread stacksize?
Marc Lehmann
schmorp at schmorp.de
Wed Apr 22 03:08:32 CEST 2009
On Tue, Apr 21, 2009 at 11:02:31PM +0200, Ryan Dahl <ry at tinyclouds.org> wrote:
> As you suggested I'm using getaddrinfo with libeio for dns lookups.
hmm, ok.
> I'm calling it through eio_custom but getting a SIGSEGV. The problem
> appears to be related to the stacksize. When I remove the line
yeah, the stacksize has been railored to work for the existing code -
larger stacksizes of course require more resources (and the default on
linux might be as big as 2mb, precluding lots of threads).
I guess the only thing to be done would be to make this
compiletime-configurable in xthread.h. Obviously, I do not want to
incraese the stacksize for libeio by default.
> My eio_custom call is not fancy. Pasted below for reference.
yeah, the libeio has simply been optimised to not use much stack, so 4kb
is ok.
eek, c++!
:)
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / pcg at goof.com
-=====/_/_//_/\_,_/ /_/\_\
More information about the libev
mailing list