Prophidys / RTG2

Realtime Traffic Grapher 2
GNU General Public License v2.0
11 stars 9 forks source link

*** glibc detected *** /usr/lib/cgi-bin/rtgplot.cgi: double free or corruption #18

Closed Prophidys closed 9 years ago

Prophidys commented 9 years ago

From daniel%n...@gtempaccount.com on August 30, 2010 17:48:10

What steps will reproduce the problem? I have compiled rtg and rtgplot on a Debian 5.0.4 box. Everything work fine and I am monitoring a single box. When using the new web interface for the new version of rtgplot.cgi it generates the graphs correctly but logs the above error message and about 500 lines of stack trace. What is the expected output? What do you see instead? The graphs look fine, but it just products 500 lines of error in the error logs. What version of the product are you using? On what operating system? The latest check out from SVN, on debian 5.0.4. Please provide any additional information below.

Attachment: rtgplot-error.log

Original issue: http://code.google.com/p/rtg2/issues/detail?id=18

Prophidys commented 9 years ago

From mfaxf...@gmail.com on July 13, 2011 14:05:35

I think I saw the same issue on a 64 bit Fedora 14 machine (It was a while ago and I don't have the logs any more)

I created the attached patch which seems to fix the issue (I'm not sure if it's a good fix). I think it was partly based on an older discussion of a similar problem on the mailing list.

Attachment: librtgmysql.c.patch

Prophidys commented 9 years ago

From brandon....@gmail.com on July 27, 2011 07:21:59

Tested this on my x86_64 installation (CentOS5). Compiles fine, appears to fix the error. Any other testers?

Prophidys commented 9 years ago

From cjm...@gmail.com on July 27, 2011 08:51:11

Also seems to fix the error here. 64-bit Debian 6

Prophidys commented 9 years ago

From dan...@fx.net.nz on September 04, 2011 21:53:16

I am still seeing this issue even with patch :(

Attachment: Untitled.txt

Prophidys commented 9 years ago

From dan...@fx.net.nz on September 11, 2011 20:57:47

Upgrading and re-compiling for Debian Squeeze seems to fix the problem :/

Prophidys commented 9 years ago

From ced.leco...@gmail.com on January 27, 2012 00:23:45

i see the same problem on debian 5.0.8

Attachment: rtg-freecorrupt.log

Prophidys commented 9 years ago

From ced.leco...@gmail.com on January 27, 2012 00:42:41

For me the patch work fine in Debian 5.0.8 64bits.

Daniel have you though to reinstall the libmysqlrtg with the "make install-libLTLIBRARIES" ? Without the lib replacement the problem still exist.

If i have no response or comment i will apply the patch in the trunk. The code is better and respect the MySQL api docs.

Prophidys commented 9 years ago

From ced.leco...@gmail.com on January 27, 2012 00:50:04

Issue 17 has been merged into this issue.

Prophidys commented 9 years ago

From ced.leco...@gmail.com on January 27, 2012 12:44:21

Bug Fix in Rev 23

Status: Fixed