[mrtg] rateup just segfaulting

axie fm4 at gmx.net
Wed Jul 9 21:38:10 MEST 2003


hi list,

i'm trying to install mrtg-2.9.29 on a blank installation
of redhad 7.2 but rateup just dies with signal 11.
i'd really appreciate if anyone on this list could give me some hints
because i've searched the documentation, faqs and so on and couldn't
find anyone sharing my problem :\
here is what i did:

first i tried to compile mrtg with the pre-installed gdlib, libpng, etc.
but as expected that didn't work too well, mrtg wasn't able to write PNG ;)
then i removed the RPMs for gdlib, gdlib-devel, libpng and zlib and
compiled and installed them from source.tgz's in their newest versions.

zlib went without problems, also libpng. i ran a "make test" on libpng
and it said everything went fine, libpng has been installed properly.
also compiling and installing gdlib had no errors (at least it said so).
i also added the new library paths (/usr/local/lib/ hadn't existed before)
to /etc/ld.so.conf and ran ldconfig -v to ensure the new libraries are
found.

now for mrtg:
./configure had no errors although it gave me the following:

checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... yes

i assumed it is okay that gdImagePng_jpg and gdImagePng_jpg_ft are
not supported (can anyone confirm this?).
cfgmaker also worked properly, was able to read values from uc-snmp
and wrote a configfile that looks fine (i have copies of mrtg
running successfully on other linux machines (SuSE) that have similar
configfiles). the only thing i want to monitor is the traffic on eth0.

but when i start mrtg, regardless if i specify the full path or
run it from its bin/ dir, it says the following:

[root at machine bin]# /usr/local/mrtg-2/bin/mrtg /etc/mrtg/mrtg.cnf
ERROR: Skipping webupdates because rateup did not return anything sensible
WARNING: rateup died from Signal 11
 with Exit Value 0 when doing router '217.160.173.99_2'
 Signal was 11, Returncode was 0

so what?! i figured that signal 11 means segmentation fault (as you
can notice i'm not a linux guru ;) and did a
strace -f /usr/local/mrtg-2/bin/mrtg /etc/mrtg/mrtg.cnf :

994   brk(0x80cf000)                    = 0x80cf000
994   brk(0x80d1000)                    = 0x80d1000
994   brk(0x80d3000)                    = 0x80d3000
994   brk(0x80d5000)                    = 0x80d5000
994   open("/var/www/html/mrtg/217.160.173.99_2-day.png",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
994   brk(0x80d8000)                    = 0x80d8000
994   fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
994   old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
994   --- SIGSEGV (Segmentation fault) ---
993   <... read resumed> "", 4096)      = 0
993   read(5, "", 4096)                 = 0
993   write(2, "ERROR: Skipping webupdates becau"..., 75) = 75
993   close(5)                          = 0
993   munmap(0x401f5000, 4096)          = 0

i guess the segfault encounters when rateup tries to read a .png file?
217.160.173.99_2-day.png is 0 bytes in size.
i checked and re-checked my installation of libpng but couldn't find any
errors.

so, can you give me hints about what went wrong? do you need further
information
about my configuration?
any help would *really* be appreciated :)


regards,

axie

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list