Bug#300319: apache: Apache segfaults with more than 10 ErrorLog files in virtual hosts
Package: apache
Version: 1.3.33-4
Severity: important
Today I added the tenth virtualhost to my apache on sarge, then stopped and
restarted it and it didn't come up. No warning, non error, no info.
In each VirtualHost stanza there is an
ErrorLog /var/log/apache/sitename/error.log
line. Commenting out this line on one of the virtual hosts makes apache work
again. Re-enabling it and issuing an /etc/rc.d/apache reload keeps apache
working and enables the error log too.
strace shows:
[omissis]
open("/etc/protocols", O_RDONLY) = 5
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402f3000
read(5, "# Internet (IP) protocols\n#\n# Up"..., 4096) = 2478
close(5) = 0
munmap(0x402f3000, 4096) = 0
open("/usr/share/misc/file/magic.mime", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=30429, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402f3000
read(5, "# Magic data for KMimeMagic (ori"..., 4096) = 4096
read(5, "audio/x-dec-basic\n>12\tlelong\t\t5\t"..., 4096) = 4096
read(5, " #!/usr/local/bin/ash applica"..., 4096) = 4096
read(5, "\\040\\0\t\tapplication/x-tar\tgnu\n\n0"..., 4096) = 4096
read(5, "p Format proposal\n# (best; not y"..., 4096) = 4096
read(5, "--------------------------------"..., 4096) = 4096
read(5, " 0x05\t\n#>8 leshort\t >0"..., 4096) = 4096
read(5, "#\n0\t\tstring\tMZ\n>24\t\tstring\t@\t\tap"..., 4096) = 1757
read(5, "", 4096) = 0
close(5) = 0
munmap(0x402f3000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
The SuEXEC option doesn't affect this. Adding any other log type neither.
Regards,
L
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)
Versions of packages apache depends on:
ii apache-common 1.3.33-4 support files for all Apache webse
ii debconf 1.4.30.11 Debian configuration management sy
ii dpkg 1.10.27 Package maintenance system for Deb
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii libmagic1 4.12-1 File type determination library us
ii logrotate 3.7-2 Log rotation utility
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.4-6 Larry Wall's Practical Extraction
-- debconf information:
apache/server-name: ns2.tsanet.it
apache/document-root: /var/www
apache/server-port: 80
* apache/enable-suexec: false
apache/init: true
apache/server-admin: webmaster@tsanet.it
Reply to: