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