I'm pulling my hair out. I have an extremely complicated <Perl> section that I'm trying to load in Apache, and I'm having one hell of a time debugging everything.

To make a long story short, I'm defining multiple virtualhosts that each are configured to run AxKit. I have my Perl section defined in a separate file, and Include it into my main httpd.conf. I have some debugging code that dumps the PerlSections data to STDOUT when the server starts up. When Apache starts, it dies silently with a core dump (after outputting the Data::Dumper representation of my PerlSections).

If I copy/paste the outputted Perl code and re-munge it into Apache's configuration syntax and include this file, the server starts without a problem. Therefore, I know there isn't a problem with the modules I'm loading in the virtualhosts, but I can't seem to track the problem down because I can't get any debugging information.

Here's the strace log for "httpd -X" (actually, just the last few lines, since it's 7262 lines long). Any idea what might be wrong?

open("/etc/group", O_RDONLY) = 4
fcntl64(4, F_GETFD) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=940, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4002d000
read(4, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 940
close(4) = 0
munmap(0x4002d000, 4096) = 0
read(3, "s point forward you must specifi"..., 4096) = 4096
read(3, "ly text or HTML documents, \"text"..., 4096) = 4096
read(3, " .ahtml\n#\n# EBCDICConvertByType "..., 4096) = 4096
read(3, "u to place a short description a"..., 4096) = 4096
read(3, "ere. You probably want to change"..., 4096) = 4096
read(3, "/1\\.0\" force-response-1.0\n\n</IfM"..., 4096) = 4096
getuid32() = 0
geteuid32() = 0
getgid32() = 0
getegid32() = 0
time([1042723461]) = 1042723461
rt_sigprocmask(SIG_BLOCK, NULL, [RT_0], 8) = 0
stat64("/usr/lib/perl5/site_perl/5.6.0/i386-linux", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/perl5/site_perl/5.6.0", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/dev/null", O_RDONLY) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

--
Michael A Nachbaur <[EMAIL PROTECTED]>
http://nachbaur.com/pgpkey.asc

"`That young girl is one of the least benightedly
unintelligent organic life forms it has been my profound
lack of pleasure not to be able to avoid meeting.'"

-- Marvin's first ever compliment about anybody.

Reply via email to