Hi James, this bug
#3 0xb7d252ac in sprintf_alloc (fmt=0xb7d315c2,"[%lli]RRA[%s][%lu]DS[%s]") at rrd_info.c:34 is exactly what was fixed in 1.3.7, I bet you are not actually using 1.3.7 ... my guess is that your perl is still using some older version of the code ... cheers tobi Today Mr. James W. Laferriere wrote: > Hello Tobias & Kevin , See inline . > > On Tue, 7 Apr 2009, Tobias Oetiker wrote: > > Hi James, > > > > the *.cfg_l file is normal after the second run it is used for > > makeing sure that only one copy of mrtg is running. > > > > whyy do you think there is a segfault occuring ? > Because it pipes out 'Segmentation fault' out on the console and only > on the console . At least I take that as a good hint :-) . > > > try > > > > # rm core > > # ulimit -c unlimited > > # ./mrtg mrtg.cfg > > > > when there is a segfault you should now have a core file > Some where else core files are being disabled . So no core file(s) . > But Kevin has shown me how to get around that . > > > # gdb --core=core perl > > > > inside gdb type > > > > > bt > > > > cheers > > tobi > Please see attached file for the bt & some more for Kevin he had asked > for . > Versions information below ... > > Tia , JimL > ps: I am not sure this is a rrdtool problem , It may be mrtg or perl > related . > > # /usr/local/bin/perl --version > > This is perl, v5.10.0 built for i686-linux > > Copyright 1987-2007, Larry Wall > > Perl may be copied only under the terms of either the Artistic License or the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to the > Internet, point your browser at http://www.perl.org/, the Perl Home Page. > > > # cat /usr/local/bin/perl | head -5 > #! /usr/local/bin/perl -w > # -*- mode: cperl -*- > > ################################################################### > # MRTG 2.16.2 Multi Router Traffic Grapher > > > # rrdtool --version > RRDtool 1.3.6 Copyright 1997-2008 by Tobias Oetiker <t...@oetiker.ch> > Compiled Feb 6 2009 09:28:18 > ...snip... > > > Today Mr. James W. Laferriere wrote: > > > > > Hello Kevin , > > > Ok , I grabbed 1.3.7 & compiled it & installed . > > > I still have the mrtg-2.16.2 executable in place as mrtg-ORIG & tried > > > that . > > > I had a successful manual run using the test to-rtr01.cfg , no > > > lingering *.cfg_l* file(s) . > > > But on running it a second manual run I get those lingering *.cfg_l* > > > file(s) , Output below of a mrtg --debug ... > > > > > > There still is the 'SegFault' which isn't very good , which > > > cause the lingering files . > > > > > > I'll try getting you the rest of the data you requested . > > > > > > Tia , JimL > > > > > > > > > # rm /var/www/htdocs/router2cgi/cfg/*_l_* ; > > > /usr/local/mrtg-2/bin/mrtg-ORIG > > > --debug="base,snpo,snpo2,coca,repo,fork,time,log,eval,prof" > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg > > > rm: cannot remove `/var/www/htdocs/router2cgi/cfg/*_l_*': No such file or > > > directory > > > --time: prog start Tue Apr 7 09:56:42 2009 > > > --base: Creating Lockfiles > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg_l,/var/www/htdocs/router2cgi/cfg/to-rtr01.cfg_l_21578 > > > --base: Reading Config File: /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg > > > --base: Reading Interface Config cache > > > --base: Checking Config File > > > --base: Loading RRD support > > > --base: Loading default Locale > > > --base: Starting main Loop > > > --time: loop start Tue Apr 7 09:56:42 2009 > > > --base: Populate Target object by polling SNMP and external Datasources > > > --time: snmp read start Tue Apr 7 09:56:42 2009 > > > --snpo: run snmpget from ifInOctets&ifOutOctets:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .1 > > > --snpo: simple If: .1 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- ifInOctets.1,ifOutOctets.1 > > > --snpo: SNMPfound -- '316328040', '1294124291' > > > --snpo: run snmpget from ifInOctets&ifOutOctets:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .2 > > > --snpo: simple If: .2 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- ifInOctets.2,ifOutOctets.2 > > > --snpo: SNMPfound -- '904537115', '4203066052' > > > --snpo: run snmpget from ifInOctets&ifOutOctets:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .3 > > > --snpo: simple If: .3 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- ifInOctets.3,ifOutOctets.3 > > > --snpo: SNMPfound -- 'undef', 'undef' > > > --snpo: run snmpget from > > > .1.3.6.1.2.1.2.2.1.14&.1.3.6.1.2.1.2.2.1.20:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .1 > > > --snpo: simple If: .1 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- > > > .1.3.6.1.2.1.2.2.1.14.1,.1.3.6.1.2.1.2.2.1.20.1 > > > --snpo: SNMPfound -- '18013', 'undef' > > > --snpo: run snmpget from > > > .1.3.6.1.2.1.2.2.1.14&.1.3.6.1.2.1.2.2.1.20:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .2 > > > --snpo: simple If: .2 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- > > > .1.3.6.1.2.1.2.2.1.14.2,.1.3.6.1.2.1.2.2.1.20.2 > > > --snpo: SNMPfound -- 'undef', 'undef' > > > --snpo: run snmpget from > > > .1.3.6.1.2.1.2.2.1.14&.1.3.6.1.2.1.2.2.1.20:6...@i#nb$@to-rtr01 > > > --snpo: simple If: .3 > > > --snpo: simple If: .3 > > > --snpo: SNMPGet from 6...@i#nb$@to-rtr01: -- > > > .1.3.6.1.2.1.2.2.1.14.3,.1.3.6.1.2.1.2.2.1.20.3 > > > --snpo: SNMPfound -- 'undef', 'undef' > > > --time: target loop start Tue Apr 7 09:56:42 2009 > > > --base: Act on Router/Target to-rtr01_1 > > > --base: Get Current values: in:316328040, out:1294124291, up:undef, > > > name:undef, time:1239127002 > > > --base: Create Graphics > > > --base: start RRDtool section > > > --base: maxi:48000, maxo:48000 > > > --log: > > > RRDs::tune(/var/www/htdocs/router2cgi/graphs/to-rtr01/to-rtr01_1.rrd -a > > > ds0:48000 -a ds1:48000 -d ds0:COUNTER -d ds1:COUNTER) > > > --prof: RRDs::tune > > > /var/www/htdocs/router2cgi/graphs/to-rtr01/to-rtr01_1.rrd - 0.000s > > > --log: > > > RRDs::update(/var/www/htdocs/router2cgi/graphs/to-rtr01/to-rtr01_1.rrd, > > > '1239127002:316328040:1294124291') > > > Segmentation fault > > > > > > r...@dsb-mntr01:~/bin# dir /var/www/htdocs/router2cgi/cfg/*to*rtr01* > > > 12 -rw-r--r-- 1 root apache 11813 2009-04-02 12:15 > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg > > > 0 -rw-r--r-- 2 root root 0 2009-04-07 09:56 > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg_l > > > 0 -rw-r--r-- 2 root root 0 2009-04-07 09:56 > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.cfg_l_21578 > > > 0 -rw-r--r-- 1 root root 0 2009-04-07 09:52 > > > /var/www/htdocs/router2cgi/cfg/to-rtr01.ok > > > > > > > > > > > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 _______________________________________________ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers