Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302912 - net-analyzer/rrdtool-1.4.2 - Fix for rrdcgi segmentation faults
Summary: net-analyzer/rrdtool-1.4.2 - Fix for rrdcgi segmentation faults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-30 21:11 UTC by Jens Ott
Modified: 2010-05-26 23:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the problem (rrd_cgi.diff,449 bytes, patch)
2010-01-30 21:12 UTC, Jens Ott
Details | Diff
Ebuild applying the patch (rrdtool-1.4.2-r1.ebuild,2.69 KB, text/plain)
2010-01-30 21:14 UTC, Jens Ott
Details

Note You need to log in before you can comment on or make changes to this bug.
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