Public bug reported:

This bug occurs when you enter a very long line in the hosts file to
create a set of aliases for local web development.  Steps to produce:

1) Add a single line to your /etc/hosts file with many sites, eg.

127.0.0.1 local.devsite1.com local.devsite2.org, ....

I had about 170 sites on a single line.

2) Attempt to connect to one of the local sites.  In my case, whenever
the PHP code attempted to connect to a postgres database, apache
segfaulted.

3) A similar crash can happen in firefox.  Attempt to browse to a local
site, and firefox crashes with a segafault warning.

My Local setup:

1) Ubuntu Edgy, up to date at date of submitting this bug.
2) Apache 2, installed via apt.
3) Postgres 8.2, installed via apt.
4) PHP5.2.1 - compiled from source and installed with checkinstall.
5) Firefox 2.0.0.1

I have solved this problem on my local machine by splitting all of the
sites listed on the single line on to separate lines.  For this reason,
I think the bug was a buffer overflow in the low-level networking libs,
as the above fix worked for both apache AND firefox.

--Robin

** Affects: Ubuntu
     Importance: Undecided
         Status: Unconfirmed

-- 
Segfaults in Apache and Firefox
https://launchpad.net/bugs/85540

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to