[rrd-developers] MRTG , Segmentation Fault , After re-installing perl .

kevin brintnall kbrint at rufus.net
Thu Mar 12 20:14:00 CET 2009


On Thu, Mar 12, 2009 at 10:43:16AM -0800, Mr. James W. Laferriere wrote:
>  	Hello Kevin ,
> 
>  	CFLAGS=-g ./configure ; CFLAGS=-g make ; CFLAGS=-g make install

> The above shows that either I have not configured & made rrdtool with
> debugging or there is no write_RRA_row() available .  I suspect the
> former .

The call to write_RRA_row() is probably being optimized out.  However, we
may be able to get the info we need now that the symbols are available.

> #3  0xb7d5f2ac in sprintf_alloc (fmt=0xb7d6b5c2 "[%lli]RRA[%s][%lu]DS[%s]") at rrd_info.c:34
> #4  0xb7d64193 in write_to_rras (rrd=0xbfd57f94, rrd_file=0x89cd7d8, rra_step_cnt=<value optimized out>, rra_begin=2760,
>      current_time=1236882919, skip_update=0x89cd838, pcdp_summary=0xbfd57ff0) at rrd_update.c:1944

Try this:

  (gdb) select 4
  (gdb) p *rrd
  (gdb) p rra_idx
  (gdb) p rrd->rra_def[rrd_idx]
  (gdb) p rrd->rra_def[rrd_idx].cf_nam
  (gdb) p rrd->rra_def[rra_idx].pdp_cnt
  (gdb) p ds_idx
  (gdb) p rrd->ds_def[ds_idx].ds_nam

Also, I have a few other questions:

- is it always the same RRD file that causes the crash?
- does that RRD cause the crash every time?

- do you have any similar files (i.e. same RRA and DS definitions) that
  do not cause crash?

-- 
 kevin brintnall =~ /kbrint at rufus.net/



More information about the rrd-developers mailing list