I''ve read that FastCGI 0.8.5 has a memory leak, which is fixed in 0.8.6. However, 0.8.6 isn''t in ports yet, so I can''t just upgrade. Someone mentioned a way to patch it to fix the leak, but I haven''t been able to find any patch info for FreeBSD. Anyone know how I can patch/upgrade on FreeBSD 5.3? Thanks
* Pat Maddox <pergesu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0404 13:04]:> I''ve read that FastCGI 0.8.5 has a memory leak, which is fixed in > 0.8.6. However, 0.8.6 isn''t in ports yet, so I can''t just upgrade. > Someone mentioned a way to patch it to fix the leak, but I haven''t > been able to find any patch info for FreeBSD. Anyone know how I can > patch/upgrade on FreeBSD 5.3? ThanksI sent knu a patch for the port last week. Here it is if it hasn''t been applied yet. -- ''This must be Thursday. I never could get the hang of Thursdays.'' -- Arthur Dent Rasputin :: Jack of All Trades - Master of Nuns _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Sorry, I don''t know a lot about this. How do I apply this? You said "if it hasn''t been applied yet", so is there some chance that the port already has the upgrade? Sorry for the elementary questions, I''m just trying to get this set up. Thanks for the help so far. On 4/15/05, Dick Davies <rasputnik-ogHSZ3ARDZIOXkKaSkYkkl6hYfS7NtTn@public.gmane.org> wrote:> * Pat Maddox <pergesu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0404 13:04]: > > I''ve read that FastCGI 0.8.5 has a memory leak, which is fixed in > > 0.8.6. However, 0.8.6 isn''t in ports yet, so I can''t just upgrade. > > Someone mentioned a way to patch it to fix the leak, but I haven''t > > been able to find any patch info for FreeBSD. Anyone know how I can > > patch/upgrade on FreeBSD 5.3? Thanks > > I sent knu a patch for the port last week. Here it is if it hasn''t been > applied yet. > > -- > ''This must be Thursday. I never could get the hang of Thursdays.'' > -- Arthur Dent > Rasputin :: Jack of All Trades - Master of Nuns > > >
I''ve attached the two patches that I used on fcgi.c (/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.5/). http://weblog.rubyonrails.com/archives/2005/03/22/plugging-the-memory-leaks-in-fastcgi-085/ Pat Maddox wrote:> I''ve read that FastCGI 0.8.5 has a memory leak, which is fixed in > 0.8.6. However, 0.8.6 isn''t in ports yet, so I can''t just upgrade. > Someone mentioned a way to patch it to fix the leak, but I haven''t > been able to find any patch info for FreeBSD. Anyone know how I can > patch/upgrade on FreeBSD 5.3? Thanks_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Op 15-apr-05 om 14:51 heeft Pat Maddox het volgende geschreven:> Sorry, I don''t know a lot about this. How do I apply this?man patch. What you need to do is navigate to the directory containing the Makefile for the port. Then, issue make extract. You can then patch the source and install it. But if you''re not comfortable with this, why not wait until the update is in ports? -- Regards, Charles.
On Fri, 15 Apr 2005, Pat Maddox wrote:> I''ve read that FastCGI 0.8.5 has a memory leak, which is fixed in 0.8.6. > However, 0.8.6 isn''t in ports yet, so I can''t just upgrade.Why not install it straight from source? freebsd-ports are nice (actually they''re awesome!), but installing from source gives you complete control and flexibility. Anyway, with most everything autoconf''ized these days, it''s often not much more than: ./configure && make && make install --Steve
* Pat Maddox <pergesu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0452 13:52]:> Sorry, I don''t know a lot about this. How do I apply this? > > You said "if it hasn''t been applied yet", so is there some chance that > the port already has the upgrade? > > Sorry for the elementary questions, I''m just trying to get this set > up. Thanks for the help so far.No problem -just run cd /usr/ports/www patch -p0 < freebsd-fcgi-port.patch then make the port as normal ( cd ruby-fcgi make install ) -- ''When the door hits you in the ass on the way out, clean off the smudge your ass leaves, please'' -- Alien loves Predator Rasputin :: Jack of All Trades - Master of Nuns