I am running Apache 1.3, mod_perl 1.30, perl 5.8.8, with gzip and ssl. I keep
getting segfaults. Sometimes they seem harmless, like the server keeps
running and honoring requests. Other times, they bring everything to a
screeching halt.

This started when I moved my server from a RAM-starved server to a beefier
one. I have had to recompile and reinstall my own perl from source,
reinstall my module environment, re*compile* my module environment, and
reconfigure DBI and DBD::mysql to work with the latest version of the
rpm-installed mysql 5 on my new server.

Just last night, I got a series of segfaults (of the sort that stops
everything) from a "DBD::mysql::st execute failed: Lost connection to MySQL
server".

Here are two short snippets of gdb output from the other evening. Can
someone lead me in the right direction? One interesting problem is the call
in the traces for index.mhtml. That file doesn't exist and isn't called for
anywhere in my codebase--at least not intentionally. And obviously, shortly
thereafter, the apache child dies. 


...
rt_sigaction(SIGUSR1, {0x4b7a35, [], SA_RESTORER|SA_INTERRUPT,
0x337000c5b0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, {0x4b6407,
[], SA_RESTORER, 0x337000c5b0}, 8) = 0
semop(5865472, 0x726a60, 1)             = 0
select(19, [17 18], NULL, NULL, NULL)   = 1 (in [18])
accept(18, {sa_family=AF_INET, sin_port=htons(42746),
sin_addr=inet_addr("66.249.72.98")}, [25769803792]) = 3
semop(5865472, 0x726a66, 1)             = 0
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x4b7a35, [], SA_RESTORER|SA_INTERRUPT,
0x337000c5b0}, 8) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("72.52.195.139")}, [25769803792]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(3, "GET / HTTP/1.1\r\nHost: localhost."..., 4096) = 277
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
rt_sigaction(SIGALRM, NULL, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, 8) =
0
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
dup2(15, 2)                             = 2
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/web/htdocs/index.mhtml", 0x30c04e8) = -1 ENOENT (No such file or
directory)
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
rt_sigaction(SIGALRM, NULL, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, 8) =
0
write(2, "Use of uninitialized value in pa"..., 117) = 117
write(2, "Use of uninitialized value in pa"..., 117) = 117
poll([{fd=9, events=POLLIN|POLLPRI, revents=POLLIN|POLLHUP}], 1, 0) = 1
read(9, "", 8192)                       = 0
shutdown(9, 2 /* send and receive */)   = 0
close(9)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
chdir("/usr/local/apache")              = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
kill(1819, SIGSEGV)                     = 0
rt_sigreturn(0x71b)                     = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 1819 detached



...
close(3)                                = 0
rt_sigaction(SIGUSR1, {0x4b7a35, [], SA_RESTORER|SA_INTERRUPT,
0x337000c5b0}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGALRM, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, {0x4b6407,
[], SA_RESTORER, 0x337000c5b0}, 8) = 0
semop(5931008, 0x726a60, 1)             = 0
select(19, [17 18], NULL, NULL, NULL)   = 1 (in [18])
accept(18, {sa_family=AF_INET, sin_port=htons(43014),
sin_addr=inet_addr("66.249.72.98")}, [16]) = 3
semop(5931008, 0x726a66, 1)             = 0
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x4b7a35, [], SA_RESTORER|SA_INTERRUPT,
0x337000c5b0}, 8) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("72.52.195.139")}, [16]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(3, "GET / HTTP/1.1\r\nHost: localhost."..., 4096) = 277
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
rt_sigaction(SIGALRM, NULL, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, 8) =
0
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
dup2(15, 2)                             = 2
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/web/htdocs/index.mhtml", 0x30c04e8) = -1 ENOENT (No such file or
directory)
stat("/home/web/htdocs", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
rt_sigaction(SIGALRM, NULL, {0x4b6407, [], SA_RESTORER, 0x337000c5b0}, 8) =
0
write(2, "Use of uninitialized value in pa"..., 117) = 117
write(2, "Use of uninitialized value in pa"..., 117) = 117
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
chdir("/tmp/cores")                     = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
kill(2396, SIGSEGV)                     = 0
rt_sigreturn(0x95c)                     = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 2396 detached
-- 
View this message in context: 
http://www.nabble.com/Segfault-Help%21-%21--tp17599739p17599739.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Reply via email to