LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2012, 04:36 AM   #1
pvradu
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
SARG buffer overflow detected


Hello everyone,

this is another buffer overflow from SARG. I've been searching the web and found a lot of them. But this is what's happening to me.

So, I try to create a monthly report from the first day of the month till the end of it. For that, I get all the log files from remote servers and process them to one running just sarg.

Anyway, Sarg begins to decompress the logs, pre-sort them, and even starts to generate and move html files to the output folder where the report should be stored. Still, before it generates the indexes, I get this:


*** buffer overflow detected ***: /usr/bin/sarg terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x334f2ff617]
/lib64/libc.so.6[0x334f2fd500]
/lib64/libc.so.6[0x334f2fc959]
/lib64/libc.so.6(_IO_default_xsputn+0xc9)[0x334f273899]
/lib64/libc.so.6(_IO_vfprintf+0xcf9)[0x334f2449e9]
/lib64/libc.so.6(__vsprintf_chk+0x9d)[0x334f2fc9fd]
/lib64/libc.so.6(__sprintf_chk+0x7f)[0x334f2fc93f]
/usr/bin/sarg[0x4039c8]
/usr/bin/sarg[0x41000c]
/usr/bin/sarg[0x40d7a7]
/usr/bin/sarg[0x40964f]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x334f21ecdd]
/usr/bin/sarg[0x4029a9]

So, after the crash, in my output dir I have a folder for every IP address that access squid with the name of "AA_BB_CC_DD", each of them has html pages with the pages the IP accessed, but there is not AA_BB_CC_DD.html, which should be the index of the folder; also, the index.html from the folder where I keep the monthlies is not regenerated. And, in the temp dir I have 2 files for each IP, in which some statistics are stored, and they're named like AA_BB_CC_DD.day and AA_BB_CC_DD.txt.

Is there a way I can resume SARG? Or a way I can see what exactly is the problem? I used to have some other buffer overflow errors, some of them were because of TABs in the usertab file, other from a line in squid access log. But all of those were crashing sarg way early. This time is different. Any ideas?!
 
Old 06-19-2012, 04:37 AM   #2
pvradu
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Sorry, I missed some details:

OS:
Red Hat Enterprise Linux Server release 6.2 (Santiago)

kernel:
2.6.32-220.4.1.el6.x86_64

RPM:
sarg-2.3-2.el6.test.x86_64
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SARG: *** stack smashing detected ***: sarg terminated Aborted btaylor1988 Linux - Server 0 06-10-2008 03:28 AM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
What is a buffer overflow Joey.Dale Linux - Security 4 07-12-2004 05:12 PM
buffer overflow cxel91a Programming 3 08-14-2003 05:23 PM
Q. What is a buffer overflow? auslew Linux - Security 2 11-08-2002 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration