Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302912

Summary: net-analyzer/rrdtool-1.4.2 - Fix for rrdcgi segmentation faults
Product: Gentoo Linux Reporter: Jens Ott <jo>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix the problem
Ebuild applying the patch

Description Jens Ott 2010-01-30 21:11:19 UTC
Find attached an ebuild including the patch from upstream-trac to fix the segmentation-fault which occurs on usage of  RRD::TIME::LAST

See http://oss.oetiker.ch/rrdtool-trac/ticket/251 for reference.

Reproducible: Always

Steps to Reproduce:
1. use RRD::TIME::LAST in a rrdcgi template
2.
3.

Actual Results:  
segfault

Expected Results:  
creation of output
Comment 1 Jens Ott 2010-01-30 21:12:58 UTC
Created attachment 217943 [details, diff]
Patch to fix the problem

This is the patch supplied from upstream, slightly modified to match the epatch pathes.
Comment 2 Jens Ott 2010-01-30 21:14:55 UTC
Created attachment 217944 [details]
Ebuild applying the patch

Ebuild applying patch from attachment 217943 [details, diff]
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-02-09 16:27:13 UTC
Upstream patch differs from the one attached here:
http://oss.oetiker.ch/rrdtool-trac/changeset/2013
Have you tried this ^^ patch?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-26 23:16:33 UTC
Fixed in 1.4.3.

<http://oss.oetiker.ch/rrdtool/pub/CHANGES>:

RRDtool 1.4.3 - 2010-03-22
==========================
[...]
* rrd_cgi: make sure that (argv-1)[0] points to something sensible ... 
  hack to undo the damage caused by a senseless optimization. see bug #251
  -- tobi oetiker