Openlitespeed Segfault due to vhost configuration

203 views
Skip to first unread message

Sir Tempest

unread,
Jun 28, 2015, 11:12:03 PM6/28/15
to openlitespee...@googlegroups.com
Hello,

OLS is segfaulting on 1.4.10 due to a specific configuration in my vhost. Of course, I' deleted it, hoping I could find what caused the issue without thinking it could be the vhosts. Nevertheless, recreating the same circumstances, or as close as I could remember, did not cause it to segfault. Here's the info, I still have:

It segfaulted right after I reloaded it with the new vhost:

Jun 28 21:04:03 atlas kernel: [ 1923.396794] conftest[2416]: segfault at 0 ip 0000000000400570 sp 00007ffd7f00dba0 error 4 in conftest[400000+1000]
Jun 28 21:04:04 atlas kernel: [ 1923.649525] conftest[2440]: segfault at 0 ip 00007f4e1ebf35c6 sp 00007ffc55527cd8 error 4 in libc-2.19.so[7f4e1eab4000+1ba000]

Now it segaults with a different callback when trying to start it any other way: 

Jun 28 21:43:55 atlas kernel: [ 4315.203215] litespeed[29071]: segfault at 38 ip 000000000045dfd5 sp 00007ffd8d1fa650 error 4 in openlitespeed[400000+17f000]
Jun 28 21:43:58 atlas kernel: [ 4318.242764] litespeed[29124]: segfault at 38 ip 000000000045dfd5 sp 00007ffce3f45490 error 4 in openlitespeed[400000+17f000]

It produces a few logs before it dies:


015-06-28 21:35:30.663 [INFO] [PlainConf] [httpServerConfig:] start parsing file /usr/local/lsws/conf/httpd_config.conf
2015-06-28 21:35:30.663 [INFO] [PlainConf] [httpServerConfig:] RCS checkin config file /usr/local/lsws/conf/httpd_config.conf0 OK.
2015-06-28 21:35:30.663 [NOTICE] Loading LiteSpeed/1.4.10 Open ...
2015-06-28 21:35:30.663 [NOTICE] Using [OpenSSL 1.0.1f 6 Jan 2014]
2015-06-28 21:35:30.664 [NOTICE] [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7739
2015-06-28 21:35:30.664 [NOTICE] [config] chroot is disabled.
2015-06-28 21:35:30.664 [INFO] [config] old priority: 0, new priority: 0
2015-06-28 21:35:30.664 [INFO] [Module: modcompress 1.1] has been initialized successfully
2015-06-28 21:35:30.664 [INFO] [Module: moddecompress 1.1] has been initialized successfully
2015-06-28 21:35:30.664 [INFO] [config:server:basics2] For better obscurity, server version number is hidden in the response header.
2015-06-28 21:35:30.671 [INFO] [PlainConf] RCS checkin config file /usr/local/lsws/conf/mime.properties0 OK.
2015-06-28 21:35:30.671 [NOTICE] [PID: 28986]: forked cgid: 28997
2015-06-28 21:35:30.671 [INFO] [PlainConf] [adminConfig:] start parsing file /usr/local/lsws/admin/conf/admin_config.conf
2015-06-28 21:35:30.677 [INFO] [PlainConf] [adminConfig:] RCS checkin config file /usr/local/lsws/admin/conf/admin_config.conf0 OK.
2015-06-28 21:35:30.677 [DEBUG] [config:admin:listener:adminListener:ssl] Create SSL context with Certificate file: /usr/local/lsws/admin/conf/webadmin.crt and Key File: /usr/local/lsws/admin/conf/webadmin.key.
2015-06-28 21:35:30.679 [NOTICE] [config:admin:listener:adminListener:ssl] SET OPENSSL CTX TIMEOUT FROM 300 TO 300
2015-06-28 21:35:30.679 [DEBUG] [config:admin:listener:adminListener:ssl] set ciphers to:SSLv3:TLSv1:HIGH:MEDIUM:!aNULL:!MD5:!SSLv2:!eNULL:!EDH
2015-06-28 21:35:30.679 [NOTICE] [config] The maximum number of file descriptor limit is set to 6000.
2015-06-28 21:35:30.681 [NOTICE] [config:server:epsr:lsphp7] 'Process Limit' probably is too low, adjust the limit to: 620.
2015-06-28 21:35:30.681 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/Example/vhconf.conf
2015-06-28 21:35:30.687 [INFO] [PlainConf] [virtualHostConfig:] RCS checkin config file /usr/local/lsws/conf/vhosts/Example/vhconf.conf0 OK.
2015-06-28 21:35:30.688 [INFO] [PlainConf] [virtualHostConfig:] start parsing file /usr/local/lsws/conf/vhosts/mybb/vhconf.conf
2015-06-28 21:35:30.693 [INFO] [PlainConf] [virtualHostConfig:] RCS checkin config file /usr/local/lsws/conf/vhosts/mybb/vhconf.conf0 OK.

I'm running OLS in a Virtualbox VM. System info:

root@atlas:/var/www/mybb# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.10
Release:        14.10
Codename:       utopic
root@atlas:/var/www/mybb# uname -r
3.16.0-37-generic
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.9.1-16ubuntu6' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.1 (Ubuntu 4.9.1-16ubuntu6) 

I used the default configure and compile options:

root@atlas:~/openlitespeed-1.4.10# ./configure
root@atlas:~/openlitespeed-1.4.10# make && make install


Sir Tempest

unread,
Jun 30, 2015, 6:36:26 PM6/30/15
to openlitespee...@googlegroups.com
Found the issue: it segfaults due to a missing a document root in a vhroot config. 
Reply all
Reply to author
Forward
0 new messages