Dieter Maurer <dieter@handshake.de> writes:
Michael Piotrowski wrote at 2003-12-4 21:57 +0100:
I've been trying to get Zope to run on a Sun Blade 100 running FreeBSD 5.1, but it segfaults and dumps core on startup regardless of the version of Python and Zope.
FreeBSD is known to have a too small C runtime stack allocated to threads. The "segfault" you observe is almost surely a stack overflow.
There are patched around to work around this FreeBSD problem (search for them).
I'm aware of the thread stack issue because it bit me when I first installed Zope on FreeBSD (i386). But the Ports Makefile now contains .if !defined(WANT_HUGE_STACK_SIZE) CFLAGS+= -DTHREAD_STACK_SIZE=0x20000 .else CFLAGS+= -DTHREAD_STACK_SIZE=0x100000 .endif # !defined(WANT_HUGE_STACK_SIZE) which fixes the problem--at least on i386. I've tried building Python with these and larger values (up to 0x500000), but the behavior didn't change. Furthermore, even with a small stack Zope started on the i386; now on the Sun it crashes almost immediately: # bin/runzope ------ 2003-12-06T01:24:11 INFO(0) ZServer HTTP server started at Sat Dec 6 01:24:11 2003 Hostname: xxxx Port: 8080 ------ 2003-12-06T01:24:11 INFO(0) ZServer FTP server started at Sat Dec 6 01:24:11 2003 Hostname: xxxx Port: 8021 Segmentation fault (core dumped) -- Michael Piotrowski, M.A. <mxp@dynalabs.de> Public key at <http://www.dynalabs.de/mxp/pubkey.txt>