[Resolved] HttpConnection::sendHttpError __assert_fail () from /lib/i686/cmov/libc.so.6

Status
Not open for further replies.
#1
I'm getting from some time now litespeed server restarts every few seconds, i install gdb and got:
Code:
Core was generated by `litespeed'.
Program terminated with signal 6, Aborted.
#0  0xf7799430 in __kernel_vsyscall ()
#0  0xf7799430 in __kernel_vsyscall ()
#1  0xf7632781 in raise () from /lib/i686/cmov/libc.so.6
#2  0xf7635bb2 in abort () from /lib/i686/cmov/libc.so.6
#3  0xf762b8e8 in __assert_fail () from /lib/i686/cmov/libc.so.6
#4  0x080e8041 in HttpConnection::sendHttpError (this=0x8e17da0,
  pAdditional=0x0)
  at /home/gwang/release/httpd/httpd/http/httpconnection.cpp:1902
#5  0x080bf4f3 in HttpConnection::httpError (this=0x8e17da0, code=25,
  pAdditional=0x0)
  at /home/gwang/release/httpd/httpd/http/httpconnection.h:246
#6  0x080e8675 in HttpConnection::eek:nReadEx (this=0x8e17da0)
  at /home/gwang/release/httpd/httpd/http/httpconnection.cpp:2053
#7  0x080a1048 in HttpIOLink::doReadT (this=0x8e17da0)
  at /home/gwang/release/httpd/httpd/http/httpiolink.h:147
#8  0x0809fc4d in HttpIOLink::eek:nReadT (pThis=0x8e17da0)
  at /home/gwang/release/httpd/httpd/http/httpiolink.cpp:907
#9  0x0809e61e in HttpIOLink::handleEvents (this=0x8e17da0, evt=1)
  at /home/gwang/release/httpd/httpd/http/httpiolink.cpp:167
#10 0x08124d97 in epoll::waitAndProcessEvents (this=0x8dcaad8,
  iTimeoutMilliSec=100)
  at /home/gwang/release/httpd/httpd/edio/epoll.cpp:260
#11 0x0808d516 in EventDispatcher::run (this=0x8db3044)
  at /home/gwang/release/httpd/httpd/http/eventdispatcher.cpp:226
#12 0x080554f8 in HttpServerImpl::start (this=0x8db3030)
  at /home/gwang/release/httpd/httpd/main/httpserver.cpp:473
#13 0x08058550 in HttpServer::start (this=0x830dd90)
  at /home/gwang/release/httpd/httpd/main/httpserver.cpp:1890
#14 0x0804fd9c in LshttpdMain::main (this=0x8db2dc0, argc=1, argv=0xffe09c74)
  at /home/gwang/release/httpd/httpd/main/lshttpdmain.cpp:1840
#15 0x0804b98e in main (argc=1, argv=0xffe09c74)
  at /home/gwang/release/httpd/httpd/main.cpp:124
The same behavior and stacktrace on Litespeed Standard Versions: 4.1.13 - 4.2.18
Using LSPHP with probably different versions.
The latest/up to date version o libc6 from squeeze.
on a vServer enviroment (kernel 3.10.27-vs2.3.6.8-beng x86_64) but 32bit Virtual System

Where should look to find more info to fix this issue?
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
Looks like the "ErrorDocument 404 " URL is longer than 2KB,
check the core file with gdb, do command
Code:
up 4
print *pErrDoc
print *this
to find out more information about the bad configuration, then fix it.
 
Last edited by a moderator:
#3
Client did upload .htaccess file with wrong formatting, he put only "\r" as a line breaking, no "\n"
Code:
m_pStr = 0xba4d684 "/notfound.html\r\rRewriteEngine On\r", ' ' <repeats 22 times>, "\rRewriteBase / #online\r#RewriteBase /~profutbol/ #offline  \r\r#homepage\rRewriteRule ^([index.html]+)/?$ index.php [L] #page\r\rRewriteCond %{HTTP_HO"...},
the file is 18k and start with: (less .htaccess) ErrorDocument 404 /notfound.html^M^MRewriteEngine(...) a very long file without endline terminations ("\n") only and everywhere caret return ("\r") that "looked like" new line in some html editors


It's greate that you could easily find the problem using gdb, but the problem would be if some hacker would put .htaccess and then he can put down your whole server, our was dead (stuck on dumping core) quite few times and server load ... very high.. not to mention page not load between restarts :/

But still, Great support ! Thanks.
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#4
latest build of 4.2.18 will log a warning message instead of abort().
Just do a force update with
Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.18
 
Last edited by a moderator:
#5
Thanks

tested with nginx + phpfpm and lsphp5, confirmed the difference.

>debugging a page cache problem
do you mean the lsws page cache ? after you patch the lsapi, the issue is gone ? can you give more info regarding this ?

________________
ali
 
Last edited:
Status
Not open for further replies.
Top