Nice!

Michiel: In the spirit of Sharing info, would you mind doing like I
typically do, and do a step by step 'config' doc. Yeah, I know, time is
money, but when ya get a chance? It makes life a little easier for those
people who want to hack on it.

As it is, I think i know where the 100% cpu comes from, and it's internal to
the emulation layer for the linux threads (libpthread)

========================
Jesse Noller
Linux Fiend
Macromedia Server Development
[EMAIL PROTECTED]

"Information may want to be free, but fiber
optic cable wants to be a million US dollars per mile."  --Shawn McMahon

> -----Original Message-----
> From: Michiel Boland [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 9:05 AM
> To: CF-Linux
> Subject: CF5 on FreeBSD
> 
> 
> Hi.
> 
> I have resumed my quest to get CF running on FreeBSD. Let me 
> just share
> where I am now. First, you *must* run FreeBSD 4.4-RELEASE or 
> -STABLE with
> the appropriate kernel patch. I have included the patch, which is very
> trivial, below.
> 
> Next, you need the linux_base port, obviously, and enable 
> linux emulation.
> 
> Then you need a web server. I tried to build a module for 
> apache but that
> didn't work because the symbol __assert_fail in libcf.a 
> cannot be resolved
> on FreeBSD. What I did was use my own web server 
> (www.mathopd.org) and use
> coldfusion in CGI mode. To run CF in CGI mode properly you need the
> patched cfml that Tom talked about the other day.
> 
> Then you add a cfusion user and run the install scripts just 
> as you would
> on a normal linux system, and off you go. CF administrator, cfmail,
> cfhttp, databases, everything works...
> 
> .. up to a point where one cfserver thread starts consuming 
> 100% CPU and
> /tmp/cfserver disappears. This happens at apparently random 
> spots, but it
> is more likely to happen when you have things like INSERTs 
> etc going on.
> 
> It is interesting to note that cfserver catches SIGSEGV 
> (signal 11) but
> rather than logging that error it spins endlessly in a loop. 
> I have gdb
> stack traces if anyone is interested (probably not ;)
> 
> Cheers
> Michiel
> 
> FreeBSD 4.4-RELEASE kernel patch below
> 
> --- sys/kern/sysv_sem.c.orig  Mon Sep 10 13:37:34 2001
> +++ sys/kern/sysv_sem.c       Tue Oct 30 21:20:39 2001
> @@ -911,6 +911,7 @@
>               semptr = &semaptr->sem_base[sopptr->sem_num];
>               semptr->sempid = p->p_pid;
>       }
> +     semaptr->sem_otime = time_second;
>  
>       /* Do a wakeup if any semaphore was up'd. */
>       if (do_wakeup) {
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to