[rrd-users] ERROR: attempting to write beyond end of file

Derek Simkowiak ubuntu at realloc.net
Thu Dec 30 01:34:42 CET 2010


     I am not able to repro, but I did see a different (?) segfault bug.

derek at derek-laptop:~$ rrdtool create tester.rrd DS:inet:GAUGE:600:0:U 
RRA:AVERAGE:0.5:1:600
derek at derek-laptop:~$ ls -la tester.rrd
-rw-r--r-- 1 derek derek 5344 2010-12-29 16:22 tester.rrd
derek at derek-laptop:~$ rrdtool resize tester.rrd 0 GROW 100
derek at derek-laptop:~$ ls -la resize.rrd
-rw------- 1 derek derek 6144 2010-12-29 16:23 resize.rrd
derek at derek-laptop:~$
derek at derek-laptop:~$ rrdtool resize tester.rrd 0 GROW 9900
derek at derek-laptop:~$ mv resize.rrd tester2.rrd
derek at derek-laptop:~$ rrdtool resize tester2.rrd 0 GROW 19900
derek at derek-laptop:~$ mv resize.rrd tester3.rrd
derek at derek-laptop:~$ rrdtool resize tester3.rrd 0 GROW 29900
derek at derek-laptop:~$

     Notice that the error never printed, even after the second and 
third resize attempts.  Maybe try it on a different filesystem?

     I did find a possibly related bug.  If the permissions are such 
that rrdtool can't write to "resize.rrd", then it segfaults instead of 
handling the permission error gracefully:

derek at derek-laptop:~$ chmod 500 resize.rrd
derek at derek-laptop:~$ rrdtool resize tester3.rrd 0 GROW 29900
Segmentation fault
derek at derek-laptop:~$

     Perhaps Stefan's bug is related.  Stefan, what is the umask on 
lowrider:/home/ ?  What are the permissions on "resize.rrd" after the 
first resize attempt?


Thanks,
Derek Simkowiak

derek at derek-laptop:~$ rrdtool -V | head -2
RRDtool 1.3.8  Copyright 1997-2009 by Tobias Oetiker <tobi at oetiker.ch>
                Compiled Feb 23 2010 20:48:05
derek at derek-laptop:~$ cat /etc/issue
Ubuntu 10.04.1 LTS \n \l

derek at derek-laptop:~$ uname -a
Linux derek-laptop 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 
UTC 2010 i686 GNU/Linux
derek at derek-laptop:~$


On 12/28/2010 02:46 AM, Stefan M. Brandl wrote:
> On Sun, Dec 26, 2010 at 04:16:18PM +0100, Tobias Oetiker wrote:
>    
>> Hi Stefan,
>>
>> I tried to repoduce that but faild .. can you please provide
>> the create line for your rrd as well ...
>>
>>      
> noc at lowrider:~$
> noc at lowrider:~$ rrdtool create tester.rrd DS:inet:GAUGE:600:0:U RRA:AVERAGE:0.5:1:600
> noc at lowrider:~$  rrdtool resize tester.rrd 0 GROW 100
> ERROR: attempting to write beyond end of file
> noc at lowrider:~$
>
>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>    



More information about the rrd-users mailing list