[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
NewsCache 1.1.90 Command Parse Error
From: Straub Herbert ####@####.#### Date: 10 Dec 2003 12:12:13 -0000 Message-Id: <3365692EA1026A498A5DB41801AE2DB5CCE3FB@xcwrk2.xund.magwien.gv.at> NewsCache 1.1.90 (only this version) has troubles with wrong Commands. This error leads in a SIG11 in the child process. You can find the following sequenz in the Logfile: Dec 10 12:11:23 news99 NewsCache[6175]: 12968 caught signal 11 Thanks to Konstantin Nikonenko, who has isolate he error situation. Apply the following patch to src/NewsCache.cc: cat ~/NewsCache-1.1.90-command-map.patch Index: src/NewsCache.cc =================================================================== RCS file: /home/stb/products/newscache-new/my_cvs/NewsCache/src/NewsCache.cc,v retrieving revision 1.32 diff -u -r1.32 NewsCache.cc --- src/NewsCache.cc 24 Oct 2003 10:12:20 -0000 1.32 +++ src/NewsCache.cc 27 Nov 2003 11:04:21 -0000 @@ -2024,7 +2024,7 @@ } cmdp = clt.client_command_map.find(argv[0]); - if (cmdp == end || !cmdp->second->func) { + if (cmdp == clt.client_command_map.end() || !cmdp->second->func) { slog.p(Logger::Notice) << clt.client_logname << " unrecognized " << oreq << "\n"; (*clt.co) << "500 What?\r\n"; Unfortunately, i found the error two weeks ago, but only correcting this in my cvs :-( I will offer a public cvs in the near future. Regards Herbert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |