You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ld...@nerim.net on 2004/04/27 14:33:15 UTC
[users@httpd] Segementation fault on Solaris 8
Hi,
I do have problems with Apache 2.0.49 compiled from the sources
on Solaris 8 ( sparc). Child processes get killed randomly when HTTP
requests are made. I get a "segmentation fault ". I disabled all
the modules that could be involved in this failure : mod_rewrite,
mod_deflate, etc. I even recompiled it without mod_ssl. But I still get
this error. I compiled Apache
with Solaris C compiler and gcc but the result is exactly the same.
I tried the gcc -g option to debug it but when it try to run httpd I get a
core dump ( no luck). Note that these options and the way Apache is
compiled used to work with older versions ( 2.0.45 -> 2.0.48)
Here are my compilation options ( with OpenSSL 0.9.7d statically compiled):
CC="gcc" EXTRA_CFLAGS="-g" \
./configure --prefix=/usr/local/apache\
--enable-ssl=static\
--with-ssl=/usr/local/ssl/bin\
--enable-module=so\
--with-mpm-prefork\
--enable-access=shared\
--enable-alias=shared\
--enable-asis=shared\
--enable-autoindex=shared\
--enable-cache=shared\
--enable-cern_meta=shared\
--enable-charset_lite=shared\
--enable-deflate=shared\
--enable-dir=shared\
--enable-env=shared\
--enable-expires=shared\
--enable-ext_filter=shared\
--enable-file_cache=shared\
--enable-headers=shared\
--enable-isapi=shared\
--enable-log_config=shared\
--enable-mime=shared\
--enable-mime_magic=shared\
--enable-negotiation=shared\
--enable-proxy=shared\
--enable-rewrite=shared\
--enable-setenvif=shared\
--enable-speling=shared\
--enable-status=shared\
--enable-unique_id=shared\
--enable-usertrack=shared\
--enable-vhost_alias=shared\
--enable-include\
--disable-cgid\
--disable-cgi\
--disable-imap\
--disable-actions\
--disable-userdir\
--disable-auth\
--disable-ipv6
I did a truss to trace system calls and here the end of it for the process
which got killed:
23293: 340.3113 connect(14, 0xFFBEB858, 16, 1) = 0
23293: 340.3117 fcntl(14, F_GETFL, 0x00000000) = 130
23293: 340.3120 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3123 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFC8, 0) = 0
23293: 340.3128 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3132 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFCC, 0) = 0
23293: 340.3136 setsockopt(14, 65535, 8192, 0xFFBEAFD0, 4, 0) = 0
23293: 340.3140 fcntl(14, F_SETFL, 0x00000002) = 0
23293: 340.3149 poll(0xFFBEA7E4, 1, 300000) = 1
23293: 340.3154 write(14, " G E T / p r i m e w e".., 593) = 593
23293: 340.3209 poll(0xFFBEB6E8, 1, 300000) = 1
23293: 340.3212 read(14, " H T T P / 1 . 1 3 0 4".., 4096) = 155
23293: 340.3223 close(14) = 0
23293: 340.3232 writev(13, 0xFFBEEF04, 1) = 170
23293: 340.3237 write(11, " [ 0 9 / A p r / 2 0 0 4".., 100) = 100
23293: 340.3247 lwp_mutex_lock(0xFEC00000) = 0
23293: 340.3252 write(7, " = = = = = = = = = = = =".., 604) = 604
23293: 340.3257 write(7, " H T T P / 1 . 1 3 0 4".., 142) = 142
23293: 340.3261 lwp_mutex_unlock(0xFEC00000) = 0
23293: 340.3265 poll(0xFFBEEEB8, 1, 15000) = 1
23293: 340.3268 read(13, "17030101 jFCD8F486CF >F9".., 8000) = 367
23293: 340.3280
stat("/opt/website/website/static/website/js/file.js", 0xFFBEF5BC) Err#2
ENOENT
23293: 340.3286 lstat("/opt", 0xFFBEF554) = 0
23293: 340.3290 stat("/opt", 0xFFBEF4EC) = 0
23293: 340.3295 lstat("/opt/website", 0xFFBEF554) = 0
23293: 340.3301 lstat("/opt/website/website", 0xFFBEF554) = 0
23293: 340.3307 lstat("/opt/website/website/static", 0xFFBEF554) = 0
23293: 340.3312 lstat("/opt/website/website/static/website",
0xFFBEF554) Err#2 ENOENT
23293: 340.3320 getpid() =
23293 [23289]
23293: 340.3328 open("/tmp/wlproxy.log",
O_WRONLY|O_APPEND|O_CREAT, 0666) Err#13 EACCES
23293: 340.3333 time() =
1081501692
23293: 340.3338 so_socket(2, 2, 0, "", 1) = 14
23293: 340.3341 fcntl(14, F_GETFL, 0x00000000) = 2
23293: 340.3343 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3347 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFC8, 0) = 0
23293: 340.3350 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3353 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFCC, 0) = 0
23293: 340.3356 setsockopt(14, 65535, 8192, 0xFFBEAFD0, 4, 0) = 0
23293: 340.3360 fcntl(14, F_SETFL, 0x00000082) = 0
23293: 340.3364 setsockopt(14, 6, 1, 0xFFBEB6CC, 4, 1) = 0
23293: 340.3367 setsockopt(14, 65535, 4, 0xFFBEB6CC, 4, 1) = 0
23293: 340.3373 connect(14, 0xFFBEB858, 16, 1) = 0
23293: 340.3376 fcntl(14, F_GETFL, 0x00000000) = 130
23293: 340.3379 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3381 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFC8, 0) = 0
23293: 340.3384 fstat64(14, 0xFFBEAED0) = 0
23293: 340.3387 getsockopt(14, 65535, 8192, 0xFFBEAFD0,
0xFFBEAFCC, 0) = 0
23293: 340.3390 setsockopt(14, 65535, 8192, 0xFFBEAFD0, 4, 0) = 0
23293: 340.3392 fcntl(14, F_SETFL, 0x00000002) = 0
23293: 340.3399 poll(0xFFBEA7E4, 1, 300000) = 1
23293: 340.3403 write(14, " G E T / p r i m e w e".., 537) = 537
23293: 340.3566 poll(0xFFBEB6E8, 1, 300000) = 1
23293: 340.3571 read(14, " H T T P / 1 . 1 4 0 4".., 4096) =
4096
23293: 340.3583 writev(13, 0xFFBEB0CC, 1) = 234
23293: 340.3595 writev(13, 0xFFBEB0CC, 1) =
3988
23293: 340.3599 poll(0xFFBEB848, 1, 300000) = 1
23293: 340.3604 read(14, " R >\r\n ".., 4096) =
1342
23293: 340.3613 writev(13, 0xFFBEB314, 1)
Err#32 EPIPE
23293: 340.3613 signotifywait() = 13
23293: 340.3618 lwp_sigredirect(0, SIGPIPE, 0x00000000) = 0
23293: 340.3627 close(14) = 0
23293: 340.3633 write(11, " [ 0 9 / A p r / 2 0 0 4".., 97) = 97
23293: 340.3644 lwp_mutex_lock(0xFEC00000) = 0
23293: 340.3648 write(7, " = = = = = = = = = = = =".., 546) = 546
23293: 340.3653 write(7, " H T T P / 1 . 1 4 0 4".., 142) = 142
23293: 340.3658 lwp_mutex_unlock(0xFEC00000) = 0
23293: 340.3663 close(13) = 0
23293: 340.3667 read(8, 0xFFBEFA73, 1)
Err#11 EAGAIN
23293: 340.3672 writev(-1, 0xFFBEF3FC, 1)
Err#9 EBADF
23293: 340.3677 Incurred fault #6, FLTBOUNDS %pc = 0xFF0F7438
23293: siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
23293: 340.3680 Received signal #11, SIGSEGV [caught]
23293: siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
23293: 340.3685 sigaction(SIGSEGV, 0xFFBEECE8, 0x00000000) = 0
23293: 340.3689 sigprocmask(SIG_SETMASK, 0xFED9CFB8, 0x00000000) = 0
23293: 340.3694 chdir("/usr/local/apache") = 0
23293: 340.3699 sigaction(SIGSEGV, 0xFFBEEB80, 0xFFBEEC84) = 0
23293: 340.3702 getpid() =
23293 [23289]
23293: 340.3706 getpid() =
23293 [23289]
23293: 340.3710 getpid() =
23293 [23289]
23293: 340.3714 kill(23293, SIGSEGV) = 0
23293: 340.3714 signotifywait() = 11
23293: 340.3719 sigprocmask(SIG_SETMASK, 0xFEDA8CE0, 0x00000000) = 0
23293: 340.3726 setcontext(0xFFBEEBC8)
23293: 340.3724 lwp_sigredirect(1, SIGSEGV, 0xFDC0FC6C) = 0
23293: 340.3733 Received signal #11, SIGSEGV [default]
23293: siginfo: SIGSEGV pid=23293 uid=502
23293: *** process killed ***
Thanks in advance,
Luc
---------------------------------------------------------------------
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