[Mono-list] SOL_IP and SOL_IPV6 on FreeBSD

Paolo Molaro lupus@ximian.com
Thu, 28 Aug 2003 16:25:10 +0200


On 08/27/03 Rachel Hestilow wrote:
> > Well, it does compile now :)
> > But I'm having no joy compiling c#, mono just hangs in select state
> > (every now and then jumping to run state, but only eating 0,1% CPU which
> > is a bit little for a compiler), not even a trivial hello world. :/
> 
> I suspect it is an issue with libgc (and possibly threads?) as mono 
> without libgc works for simple programs on FreeBSD. If you find a solution 
> or even just a hint at where the problem lies, I'd love to hear it, as I 
> am currently without a linux system.

Try changing:
	pthread_attr_setstacksize(&attr, 1024*1024*2);
to
	pthread_attr_setstacksize(&attr, 1024*1024);
io-layer/threads.c.
There were a few hints that this change could help in FreeBSD, but every
time we asked for confirmation from a FreeBSD user we got no reply.
Maybe this time we'll be more lucky...

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better