Install on FreeBSD - not starting

Discussion in 'General' started by khatfield, Jan 5, 2008.

  1. sh0ck

    sh0ck New Member

    Output with debug new build:

    Code:
    ==23859==    /home/lsws/bin/lshttpd.dbg
    ==23859==    -d
    ==23859== Startup, with flags:
    ==23859==    --tool=memcheck
    ==23859==    -v
    ==23859==    --trace-children=yes
    ==23859==    --track-fds=yes
    ==23859== Estimated CPU clock rate is 1002 MHz
    [OK] Lease License key #1 will expire in 34 days!
    ==23859== Warning: invalid file descriptor -1 in syscall close()
    ==23859==    at 0x3C12A30F: (within /lib/libc.so.6)
    ==23859==    by 0x80DAF85: log4cxx::FileAppender::close() (fileappender.cpp:98)
    ==23859==    by 0x80DA314: log4cxx::LogRotate::postRotate(log4cxx::Appender*, unsigned, unsigned) (logrotate.cpp:184)
    ==23859==    by 0x80DA1DD: log4cxx::LogRotate::roll(log4cxx::Appender*, unsigned, unsigned, long) (logrotate.cpp:153)
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D85BB: ReactorIndex::set(int, EventReactor*) (reactorindex.h:48)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== 
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8611: ReactorIndex::set(int, EventReactor*) (reactorindex.h:60)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== 
    ==23859== Use of uninitialised value of size 4
    ==23859==    at 0x80D862E: ReactorIndex::set(int, EventReactor*) (reactorindex.h:62)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== 
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8519: KQueuer::appendEvent(EventReactor*, int, short, unsigned short) (kqueuer.h:47)
    ==23859==    by 0x80D7D42: KQueuer::appendEvent(EventReactor*, short, unsigned short) (kqueuer.cpp:84)
    ==23859==    by 0x80D7D6E: KQueuer::addEvent(EventReactor*, short) (kqueuer.cpp:93)
    ==23859==    by 0x80D7E0C: KQueuer::add(EventReactor*, short) (kqueuer.cpp:109)
    ==23862== 
    ==23862== Conditional jump or move depends on uninitialised value(s)
    ==23862==    at 0x80C798E: SUExec::spawnChild(char const*, int, int, char* const*, int, RLimits const*, unsigned, unsigned) (suexec.cpp:108)
    ==23862==    by 0x80C8D4F: CgidWorker::spawnCgid(char const*, int, int, char*) (cgidworker.cpp:114)
    ==23862==    by 0x80C8B5E: CgidWorker::start(char const*, char const*, unsigned, unsigned, int) (cgidworker.cpp:82)
    ==23862==    by 0x805CB5F: HttpServerBuilder::configCgid(CgidWorker*, XmlNode const*) (httpserverbuilder.cpp:3866)
    ==23859== 
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8611: ReactorIndex::set(int, EventReactor*) (reactorindex.h:60)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x80A6FCE: HttpListener::setSockAttr(int, GSockAddr&) (httplistener.cpp:174)
    ==23859==    by 0x80A6E66: HttpListener::start() (httplistener.cpp:140)
    ==23859== 
    ==23859== Invalid read of size 4
    ==23859==    at 0x8062302: ExtWorker::getConfigPointer() const (extworker.h:84)
    ==23859==    by 0x80617CE: HttpServerBuilder::initAdmin(XmlNode const*) (httpserverbuilder.cpp:5469)
    ==23859==    by 0x2E34392D: ???
    ==23859==  Address 0x3070786E is not stack'd, malloc'd or free'd
    ==23859== 
    ==23859== Process terminating with default action of signal 11 (SIGSEGV): dumping core
    ==23859==    at 0x8062302: ExtWorker::getConfigPointer() const (extworker.h:84)
    ==23859==    by 0x80617CE: HttpServerBuilder::initAdmin(XmlNode const*) (httpserverbuilder.cpp:5469)
    ==23859==    by 0x2E34392D: ???
    ==23859== Core dumping not implemented. Please re-run valgrind after fixing the crash.
    ==23859== 
    ==23859== FILE DESCRIPTORS: 6 open at exit.
    ==23859== Open file descriptor 3: /home/lsws/logs/error.log
    ==23859==    at 0x3C11D4B3: (within /lib/libc.so.6)
    ==23859==    by 0x80DAEED: log4cxx::FileAppender::open() (fileappender.cpp:82)
    ==23859==    by 0x80DA329: log4cxx::LogRotate::postRotate(log4cxx::Appender*, unsigned, unsigned) (logrotate.cpp:185)
    ==23859==    by 0x80DA1DD: log4cxx::LogRotate::roll(log4cxx::Appender*, unsigned, unsigned, long) (logrotate.cpp:153)
    ==23859== 
    ==23859== Open file descriptor 5: /tmp/lshttpd/lshttpd.pid
    ==23859==    at 0x3C11D4B3: (within /lib/libc.so.6)
    ==23859==    by 0x80DD20E: PidFile::openPidFile(char const*) (pidfile.cpp:65)
    ==23859==    by 0x80DD24F: PidFile::lockPidFile(char const*) (pidfile.cpp:76)
    ==23859==    by 0x804DDD0: LshttpdMain::testRunningServer() (lshttpdmain.cpp:1030)
    ==23859== 
    ==23859== Open file descriptor 4: /dev/urandom
    ==23859==    at 0x3C11D4B3: (within /lib/libc.so.6)
    ==23859==    by 0x80ECB28: SSLContext::initSSL() (sslcontext.cpp:399)
    ==23859==    by 0x80ECCAE: SSLContext::publickey_decrypt(unsigned char const*, int, char const*, int, char*, int) (sslcontext.cpp:497)
    ==23859==    by 0x8068333: decrypt_license_key(char const*, int, char*, int) (license.cpp:600)
    ==23859== 
    ==23859== Open AF_UNIX socket 2: <unknown>
    ==23859==    at 0x3C0C978F: (within /lib/libc.so.6)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859==    by 0x805F14D: HttpServerBuilder::initServer(int) (httpserverbuilder.cpp:4718)
    ==23859==    by 0x804DCC9: LshttpdMain::config() (lshttpdmain.cpp:987)
    ==23859== 
    ==23859== Open file descriptor 1:
    ==23859==    <inherited from parent>
    ==23859== 
    ==23859== Open file descriptor 0:
    ==23859==    <inherited from parent>
    ==23859== 
    ==23859== 
    ==23859== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0)
    ==23859== 
    ==23859== 1 errors in context 1 of 6:
    ==23859== Invalid read of size 4
    ==23859==    at 0x8062302: ExtWorker::getConfigPointer() const (extworker.h:84)
    ==23859==    by 0x80617CE: HttpServerBuilder::initAdmin(XmlNode const*) (httpserverbuilder.cpp:5469)
    ==23859==    by 0x2E34392D: ???
    ==23859==  Address 0x3070786E is not stack'd, malloc'd or free'd
    ==23859== 
    ==23859== 1 errors in context 2 of 6:
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8611: ReactorIndex::set(int, EventReactor*) (reactorindex.h:60)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x80A6FCE: HttpListener::setSockAttr(int, GSockAddr&) (httplistener.cpp:174)
    ==23859==    by 0x80A6E66: HttpListener::start() (httplistener.cpp:140)
    ==23859== 
    ==23859== 1 errors in context 3 of 6:
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8519: KQueuer::appendEvent(EventReactor*, int, short, unsigned short) (kqueuer.h:47)
    ==23859==    by 0x80D7D42: KQueuer::appendEvent(EventReactor*, short, unsigned short) (kqueuer.cpp:84)
    ==23859==    by 0x80D7D6E: KQueuer::addEvent(EventReactor*, short) (kqueuer.cpp:93)
    ==23859==    by 0x80D7E0C: KQueuer::add(EventReactor*, short) (kqueuer.cpp:109)
    ==23859== 
    ==23859== 1 errors in context 4 of 6:
    ==23859== Use of uninitialised value of size 4
    ==23859==    at 0x80D862E: ReactorIndex::set(int, EventReactor*) (reactorindex.h:62)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== 
    ==23859== 1 errors in context 5 of 6:
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D8611: ReactorIndex::set(int, EventReactor*) (reactorindex.h:60)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== 
    ==23859== 1 errors in context 6 of 6:
    ==23859== Conditional jump or move depends on uninitialised value(s)
    ==23859==    at 0x80D85BB: ReactorIndex::set(int, EventReactor*) (reactorindex.h:48)
    ==23859==    by 0x80D7DF6: KQueuer::add(EventReactor*, short) (kqueuer.cpp:108)
    ==23859==    by 0x807DE6B: StdErrLogger::initLogger(Multiplexer*) (stderrlogger.cpp:97)
    ==23859==    by 0x805E959: HttpServerBuilder::configServer(int) (httpserverbuilder.cpp:4550)
    ==23859== IN SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0)
    ==23859== 
    ==23859== malloc/free: in use at exit: 318999 bytes in 5562 blocks.
    ==23859== malloc/free: 8413 allocs, 2851 frees, 3743726 bytes allocated.
    ==23859== 
    --23859--     TT/TC: 0 tc sectors discarded.
    --23859--            8140 chainings, 0 unchainings.
    --23859-- translate: new     11783 (192878 -> 2891676; ratio 149:10)
    --23859--            discard 0 (0 -> 0; ratio 0:10).
    --23859--  dispatch: 2208043 jumps (bb entries), of which 557225 (25%) were unchained.
    --23859--            232/25210 major/minor sched events.  13275 tt_fast misses.
    --23859-- reg-alloc: 1878 t-req-spill, 534035+13601 orig+spill uis, 61272 total-reg-r.
    --23859--    sanity: 161 cheap, 7 expensive checks.
    --23859--    ccalls: 67624 C calls, 55% saves+restores avoided (222856 bytes)
    --23859--            88317 args, avg 0.90 setup instrs each (17282 bytes)
    --23859--            0% clear the stack (202872 bytes)
    --23859--            19595 retvals, 32% of reg-reg movs avoided (12350 bytes)
    Segmentation fault
  2. mistwang

    mistwang LiteSpeed Staff

    Nothing out of ordinary and cannot explain the strange error that make it crash. Looks like the stack has been corrupted.
    Is it a default installation without any configuration change or has been configured?

    We will try a build on FreeBSD 6.2 see if it helps or not.
  3. sh0ck

    sh0ck New Member

    It is the default generic kernel. The only changes are we have a few more modules loaded and applications that have been installed.

    Here are the modules we have loaded:


    Code:
     2    1 0xc0b08000 ea54     ipfw.ko
     3    1 0xc0b17000 2364     accf_http.ko
     4    1 0xc0b1a000 3a60     speaker.ko
     5    1 0xc0b1e000 3219c    if_myk.ko
     6    2 0xc0b51000 24d8     libmbpool.ko
     7    1 0xc0b54000 2494     aout.ko
     8    1 0xc0b57000 59f20    acpi.ko
     9    1 0xc68ed000 6000     linprocfs.ko
    10    1 0xc68f3000 16000    linux.ko

    If you need any other info/logs/configs let me know. I'm willing to give you whatever you need to get this working. (privately if the information poses a security risk)



    Timothy J. Biggs
    --
    Senior Vice President / CIO

    BLUE GRAVITY COMMUNICATIONS, INC.
    3495 Haddonfield Rd. Suite 6
    Pennsauken, NJ 08109
    Toll Free: 1-877-8 HOSTING
    Tel: (856)662-9100, Fax: (856) 662-9101
    Email: tim@bluegravity.com
    http://www.bluegravity.com
  4. mistwang

    mistwang LiteSpeed Staff

  5. sh0ck

    sh0ck New Member

    Same exact thing. Any chance you could install it on an nfs mounted folder and see if it does the same for you?


    Timothy J. Biggs
    --
    Senior Vice President / CIO

    BLUE GRAVITY COMMUNICATIONS, INC.
    3495 Haddonfield Rd. Suite 6
    Pennsauken, NJ 08109
    Toll Free: 1-877-8 HOSTING
    Tel: (856)662-9100, Fax: (856) 662-9101
    Email: tim@bluegravity.com
    http://www.bluegravity.com
  6. mistwang

    mistwang LiteSpeed Staff

    what is your "ulimit -a" output? I wonder if it is a stack/heap overflow problem.
  7. mistwang

    mistwang LiteSpeed Staff

    Please send me the core file generated by the 6.2 debug build. I will check.
  8. mistwang

    mistwang LiteSpeed Staff

    It is very hard for us as we have no experience with this kind of setup, and it cannot guarantee that we can reproduce it this way.
    I think the best way to trouble shoot this, if it is OK with you, we can login to your server and debug it under GDB.

    Have you tried the standard edition? I wonder if it is the OpenSSL library that being used by Enterprise edition during startup.
  9. mistwang

    mistwang LiteSpeed Staff

    OK, the problem has been fixed. It is because that there are about 300 IP configured. I have updated it to the latest 3.3.11 build.
  10. sh0ck

    sh0ck New Member

    It can not handle that many by default? We have servers with upwards of 1-2k ips on some machines. What is the most it can handle?


    Timothy J. Biggs
    --
    Senior Vice President / CIO

    BLUE GRAVITY COMMUNICATIONS, INC.
    3495 Haddonfield Rd. Suite 6
    Pennsauken, NJ 08109
    Toll Free: 1-877-8 HOSTING
    Tel: (856)662-9100, Fax: (856) 662-9101
    Email: tim@bluegravity.com
    http://www.bluegravity.com
  11. mistwang

    mistwang LiteSpeed Staff

    should be OK with the latest build.
  12. sh0ck

    sh0ck New Member

    Thank you for all the help. I'm sure I will have other minor problems but once we get it all ironed out you wont hear from us much. =]

Share This Page