httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Mauri <fabio.ma...@gmail.com>
Subject [users@httpd] Apache segmentation fault
Date Thu, 02 Sep 2010 15:26:46 GMT
Hi all,

   I've built Apache/2.2.14 (Unix) in an embedded environment
(openembedded) including SSL and PHP5 modules.
SSL works fine, but PHP5 module after being loaded won't work.

With the mod_php module loaded it is not possible to get any page from
server, also even if the connection is fine (the browser doesn't show
an error message, but an empty page).
On logs I see an error message each time I try to load the page from browser:

[Thu Sep 02 18:23:54 2010] [notice] child pid 2919 exit signal
Segmentation fault (11)
[Thu Sep 02 18:24:01 2010] [notice] child pid 2917 exit signal
Segmentation fault (11)

The following is the result of launching httpd with strace (only at
the moment of SIGSEGV, since the caught of the request from browser):

[pid  2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0
[pid  2976] select(0, NULL, NULL, NULL, {1, 0}

 <unfinished ...>
[pid  2978] <... poll resumed> [{fd=4, events=POLLIN}, {fd=3,
events=POLLIN, revents=POLLIN}], 2, 10000) = 1
[pid  2978] SYS_285(0x3, 0xbec3d940, 0xbec3d92c, 0xb1860, 0xbec3da34) = 8
[pid  2978] fcntl64(8, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  2978] fcntl64(8, F_SETFL, O_RDWR) = 0
[pid  2978] fcntl64(8, F_GETFD)         = 0
[pid  2978] fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
[pid  2978] SYS_298(0xf0004, 0x402ff740, 0x1, 0x402ff198, 0x130c68) = 0
[pid  2978] SYS_286(0x8, 0x1f2238, 0x1f2224, 0x1, 0x1f21d8) = 0
[pid  2978] fcntl64(8, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  2978] fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid  2978] brk(0x21d000)               = 0x21d000
[pid  2978] read(8, "GET /index.html HTTP/1.1\r\nHost: "..., 8000) = 387
[pid  2978] gettimeofday({1283449429, 539}, NULL) = 0
[pid  2978] stat64("/usr/share/apache2/htdocs/index.html",
{st_mode=S_IFREG|0644, st_size=44, ...}) = 0
[pid  2978] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  2978] chdir("/usr")               = 0
[pid  2978] rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  2978] kill(2978, SIGSEGV)         = 0
[pid  2978] sigreturn()                 = ? (mask now [QUIT ILL TRAP
ABRT PIPE TERM STKFLT CHLD TSTP URG SYS])
[pid  2978] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 2978 detached
[pid  2977] <... SYS_298 resumed> )     = 0
[pid  2977] poll( <unfinished ...>
[pid  2976] <... select resumed> )      = ? ERESTARTNOHAND (To be restarted)
[pid  2976] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid  2976] select(0, NULL, NULL, NULL, {0, 498333}) = 0 (Timeout)
[pid  2976] clone(Process 2983 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x400206c8) = 2983
[pid  2976] wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}],
WNOHANG|WSTOPPED, NULL) = 2978
[pid  2976] gettimeofday({1283449429, 579544}, NULL) = 0
[pid  2976] write(2, "[Thu Sep 02 18:43:49 2010] [noti"..., 87 <unfinished ...>
[pid  2983] rt_sigaction(SIGHUP, {0x7e5b4, [],
SA_INTERRUPT|0x4000000}, {0x7d7c4, [HUP USR1], 0x4000000 /* SA_???
*/}, 8) = 0
[pid  2983] rt_sigaction(SIGTERM, {0x7e5b4, [],
SA_INTERRUPT|0x4000000}, {0x7d794, [], 0x4000000 /* SA_??? */}, 8) = 0
[pid  2983] rt_sigaction(SIGUSR1, {0x7de20, [],
SA_INTERRUPT|0x4000000}, {0x7d7c4, [HUP USR1], 0x4000000 /* SA_???
*/}, 8) = 0
[pid  2983] geteuid32()                 = 0
[pid  2983] setgid32(1)                 = 0
[pid  2983] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 8
[pid  2983] read(8, "65536\n", 31)      = 6
[pid  2976] <... write resumed> )       = 87
[pid  2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0
[pid  2976] select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
[pid  2983] close(8)                    = 0
[pid  2983] open("/etc/group", O_RDONLY|0x80000) = 8
[pid  2983] _llseek(8, 0, [0], SEEK_CUR) = 0
[pid  2983] fstat64(8, {st_mode=S_IFREG|0644, st_size=548, ...}) = 0
[pid  2983] mmap2(NULL, 548, PROT_READ, MAP_SHARED, 8, 0) = 0x40022000
[pid  2983] _llseek(8, 548, [548], SEEK_SET) = 0
[pid  2983] fstat64(8, {st_mode=S_IFREG|0644, st_size=548, ...}) = 0
[pid  2983] munmap(0x40022000, 548)     = 0
[pid  2983] close(8)                    = 0
[pid  2983] setgroups32(1, [1])         = 0
[pid  2983] geteuid32()                 = 0
[pid  2983] setuid32(1)                 = 0
[pid  2983] gettimeofday({1283449429, 629288}, NULL) = 0
[pid  2983] SYS_298(0xf0004, 0x402ff734, 0x1, 0x402ff198, 0x130c68
<unfinished ...>
[pid  2976] <... select resumed> )      = 0 (Timeout)
[pid  2976] wait4(-1, 0xbec3da4c, WNOHANG|WSTOPPED, NULL) = 0
[pid  2976] select(0, NULL, NULL, NULL, {1, 0}


Does anyone can help me with this?

Thanks in advance.


-- 
Fabio Mauri

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message