Bug#200698: apache segfault on ia64
Package: apache
Version: 1.3.27.0-2
Severity: important
Tags: patch
apache segfaults on startup on ia64 in today's sid.
i built a gdbable version, which also segfaulted, and got the following
backtrace.
(gdb) run
Starting program: /tmp/apache-1.3.27.0/build-tree-apache/apache_1.3.27/src/apache
Program received signal SIGSEGV, Segmentation fault.
server_type (cmd=0x6000000000029693, dummy=0x600000000001b948, arg=0x6000000000029688 "standalone") at http_core.c:2032
2032 return "ServerType must be either 'inetd' or 'standalone'";
(gdb) bt
#0 server_type (cmd=0x6000000000029693, dummy=0x600000000001b948, arg=0x6000000000029688 "standalone") at http_core.c:2032
#1 0x40000000000219c0 in server_type (cmd=0x600000000000daf8, dummy=0x60000fffffffb5c0, arg=0x600000000001b948 "") at http_core.c:2028
#2 0x60000fffffff95cb in ?? ()
#3 0x40000000000219c0 in server_type (cmd=0x710, dummy=0x0, arg=0x0) at http_core.c:2028
this patch fixed it for me:
--- apache_1.3.27/src/main/http_core.c.orig 2003-07-09 16:07:56.000000000 -0600
+++ apache_1.3.27/src/main/http_core.c 2003-07-09 16:04:19.000000000 -0600
@@ -2018,6 +2018,7 @@
static const char *server_type(cmd_parms *cmd, void *dummy, char *arg)
{
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+ static const char *badtype = "ServerType must be either 'inetd' or 'standalone'";
if (err != NULL) {
return err;
}
@@ -2029,7 +2030,7 @@
ap_standalone = 1;
}
else {
- return "ServerType must be either 'inetd' or 'standalone'";
+ return badtype;
}
return NULL;
-- System Information:
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux krebs 2.4.20-mckinley #1 Tue Jun 10 14:22:56 MDT 2003 ia64
Locale: LANG=C, LC_CTYPE=C
Versions of packages apache depends on:
ii apache-common 1.3.27.0-2 Support files for all Apache webse
ii debconf 1.2.42 Debian configuration management sy
ii dpkg 1.10.10 Package maintenance system for Deb
ii libc6.1 2.3.1-17 GNU C Library: Shared libraries an
ii libdb4.1 4.1.25-4 Berkeley v4.1 Database Libraries [
ii libexpat1 1.95.6-4 XML parsing C library - runtime li
ii libmagic1 4.02-4 File type determination library us
ii logrotate 3.6.5-2 Log rotation utility
ii mime-support 3.23-1 MIME files 'mime.types' & 'mailcap
ii perl [perl5] 5.8.0-18 Larry Wall's Practical Extraction
-- debconf information excluded
Reply to: