LWN.net Logo

Best practices for portable patches (NewsForge)

NewsForge has an article on writing portable patches. "One of the things I usually take care of as a Gentoo packages maintainer is sending patches to upstream developers. If a patch is applied upstream, we can remove it from future versions of a package so we have less work to do to maintain the package. Unfortunately, it seems that other distributions and packagers don't always do the same. This is true not only for Linux distributions such as Debian, Fedora Core, and SUSE, but also for maintainers of packages in places like FreeBSD's Ports, DarwinPorts or Fink. Here are some tips for developers on making things easier for yourself and everyone who has to touch your code."
(Log in to post comments)

Ads on site crash firefox?

Posted Jul 26, 2005 16:23 UTC (Tue) by bkw1a (subscriber, #4101) [Link]

Hi folks,

I've tried to visit the site of the NewsForge article a couple of
times, but firefox has crashed each time while loading the page.
About the only thing I saw were two different MS "Get the Facts"
banner ads. Is anyone else having problems viewing the site?

FWIW:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc3 Firefox/1.0.6

Bryan

Ads on site crash firefox?

Posted Jul 26, 2005 17:15 UTC (Tue) by smitty_one_each (subscriber, #28989) [Link]

>Mozilla/5.0 Gecko/20050711 Firefox/1.0.5
alles gut

Ads on site crash firefox?

Posted Jul 26, 2005 17:21 UTC (Tue) by Duncan (guest, #6647) [Link]

Ads, what are those?

Seriously, I'm using Konqueror, here, surfing with images off by default,
and using privoxy with ad filters turned on as a pre-filter before I see
the page. (I also prefer light text on a dark background and use privoxy
filters to enforce that preference without killing color entirely, so it's
not just ad filtering I do with it.) About the only ads I see are the
text ads sites such as Google use, because those are unobtrusive enough
(and actually useful sometimes, even) I don't find I need to filter them.

Anyway, no crashing here. I'd suggest you turn off images and/or
scripting, and try visiting the site again. See if that helps.

Duncan

Ads on site crash firefox?

Posted Jul 26, 2005 17:39 UTC (Tue) by allesfresser (subscriber, #216) [Link]

I also get a crash; I'm using the custom G5 build for OS X from Beatnikpad: "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050720 Firefox/1.0.6"

It seems to be an ad from Doubleclick. (Why am I not surprised somehow?)

Ads on site crash firefox?

Posted Jul 26, 2005 17:46 UTC (Tue) by bkw1a (subscriber, #4101) [Link]

Hmm. I notice that you're using Firefox 1.0.6, like I am. Maybe the question should be "has anybody else seen this with Firefox 1.0.6?"

Ads on site crash firefox?

Posted Jul 26, 2005 17:59 UTC (Tue) by allesfresser (subscriber, #216) [Link]

The crash does not occur with Deer Park Alpha 2 for OS X ("Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+")

Ads on site crash firefox?

Posted Jul 26, 2005 21:49 UTC (Tue) by scripter (subscriber, #2654) [Link]

It crashed for me too.

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Ads on site crash firefox?

Posted Jul 27, 2005 1:38 UTC (Wed) by Mithrandir (subscriber, #3031) [Link]

No crash here:

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050725 Firefox/1.0.4 (Ubuntu package 1.0.6)

Ads on site crash firefox?

Posted Jul 26, 2005 18:26 UTC (Tue) by cypherpunks (guest, #1288) [Link]

Yep, Newsforge used to occasionally
crash an ancient version of Mozilla
that I use. I suggest appending your
/etc/hosts file thusly:

# Stupid adserver crashing my browser.
127.0.0.1 falkag.net
127.0.0.1 a.as-eu.falkag.net
127.0.0.1 a.as-test.falkag.net
127.0.0.1 admin.as-eu.falkag.net
127.0.0.1 bw.as-test.falkag.net
127.0.0.1 data.as-eu.falkag.net
127.0.0.1 e.as-eu.falkag.net
127.0.0.1 f.as-eu.falkag.net
127.0.0.1 origin.as-eu.falkag.net
127.0.0.1 red.as-eu.falkag.net
127.0.0.1 red.as-test.falkag.net
127.0.0.1 red01.as-eu.falkag.net
127.0.0.1 sel.as-eu.falkag.net
127.0.0.1 a.as-us.falkag.net
127.0.0.1 b.as-us.falkag.net
127.0.0.1 bw.as-us.falkag.net
127.0.0.1 c.as-us.falkag.net
127.0.0.1 e.as-us.falkag.net
127.0.0.1 origin.as-us.falkag.net
127.0.0.1 red01.as-us.falkag.net
127.0.0.1 s.as-us.falkag.net
127.0.0.1 sel.as-us.falkag.net
127.0.0.1 as1.falkag.de #[Ad-Aware.Tracking Cookie]
127.0.0.1 www.falkag.de
127.0.0.1 ad1.adsolution.de

Works on my machine! And the site
loads a *whole* lot faster now.

J

quicker

Posted Jul 26, 2005 19:57 UTC (Tue) by ncm (subscriber, #165) [Link]

To make this work as fast as it might, run
  while tcplisten -i 127.0.0.1 </dev/null >/dev/null; do echo -n '.'; done
in a root shell. It also shows you how much ad dreck you're skipping.

(tcplisten is the tcputils package, on Debian)

@cypherpunks

Posted Jul 28, 2005 1:00 UTC (Thu) by del (subscriber, #380) [Link]

Thank you for the extremely helpful tip! My Firefox browser crashed upon loading a different Newsforge article a few days ago. I noticed immediately a faster page display after changing my hosts file.

In fact I noticed last night that an advertiser succeeded in generating a blank popup add on Firefox 1.0.6 on Wired despite setting Firefox to always block popups. Hopefully adding that advertiser's url to hosts will stiffle that irritating behavior.

Again, many thanks,

David

Ads on site crash firefox?

Posted Jul 26, 2005 22:09 UTC (Tue) by allesfresser (subscriber, #216) [Link]

Just a little note:

I saved the page (and associated files) with Deer Park Alpha 2, and then (attempted to) open the page with Firefox 1.0.6--it still crashes. I'm not sure what bit is causing it yet, but I am going to try to take apart the file piece by piece until it stops crashing...

One odd thing about the saved version is that I get four Microsoft ads at the top of the page and three versions of the other ad (instead of one each like it is in the live version). Very weird.

Ads on site crash firefox?

Posted Jul 27, 2005 13:36 UTC (Wed) by dmaxwell (guest, #14010) [Link]

The last time I had trouble like that, a flash ad was triggering it. I don't know if Flash per se was the cause or not. What cured it for me was dropping to a console, getting rid of everything in /tmp, restarting services, and then restarting KDE. I could have been more surgical about it with strace but I was going for quick results.

Extensions can also be a culprit with problems like this.

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds