[mrtg] Re: Rateup segmentation fault redux
Tobias Oetiker
oetiker at ee.ethz.ch
Sun May 21 10:39:38 MEST 2006
Hi Ed,
if you could compile rateup with -g and limit the coredumpsize to
unlimited and then create a gdb backtrace of the core I could see
the exact line of the problem ...
also make sure you work with the latest version of mrtg ...
cheers
tobi
Yesterday Ed Kasky wrote:
> I finally had some time to dig a little deeper into my problems with
> rateup. Being more of a sysadmin than anything else, I had some
> help determining where the fault is happening. Only now I have no
> idea how to fix it.
>
> If anyone has any suggestions given the strace below, don't hold back ;-)
>
> Ed
>
> ~~~~~
>
> (Setup is as follows on RH 7.2 installed with rpm's:
> mrtg-2.10.5-1
> zlib-1.1.4-8.7x
> gd-1.8.4-4
> libpng-1.2.7-1)
>
> rateup /var/www/html/wrenkasky/mrtg/ ns5gt.wrenkasky.com_2 `date +%s` -Z \
> u 906488167 4254764724 1250000 \
> c \#00cc00 \#0000ff \#006600 \#ff00ff \
> k 1000 \
> i /var/www/html/wrenkasky/mrtg/ns5gt.wrenkasky.com_2-day.png -1250000
> -1250000 400 100 1 1 1 300 1 4 1 \
> i /var/www/html/wrenkasky/mrtg/ns5gt.wrenkasky.com_2-week.png
> -1250000 -1250000 400 100 1 1 1 1800 1 4 1 \
> i /var/www/html/wrenkasky/mrtg/ns5gt.wrenkasky.com_2-month.png
> -1250000 -1250000 400 100 1 1 1 7200 1 4 1 \
> i /var/www/html/wrenkasky/mrtg/ns5gt.wrenkasky.com_2-year.png
> -1250000 -1250000 400 100 1 1 1 86400 1 4 1
> Segmentation fault (core dumped)
>
>
> [strace]
> ...
> unlink("ns5gt.wrenkasky.com_2.old") = 0
> rename("ns5gt.wrenkasky.com_2.log", "ns5gt.wrenkasky.com_2.old") = 0
> rename("ns5gt.wrenkasky.com_2.tmp", "ns5gt.wrenkasky.com_2.log") = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
> -1, 0) = 0x40018000
> write(1, "75354\n", 6) = 6
> write(1, "3365\n", 5) = 5
> write(1, "64199\n", 6) = 6
> write(1, "2870\n", 5) = 5
> write(1, "0\n", 2) = 2
> write(1, "0\n", 2) = 2
> write(1, "64910\n", 6) = 6
> write(1, "2902\n", 5) = 5
> open("/etc/localtime", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1017, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
> -1, 0) = 0x40019000
> read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"...,
> 4096) = 1017
> close(3) = 0
> munmap(0x40019000, 4096) = 0
> brk(0x80c2000) = 0x80c2000
> brk(0x80c3000) = 0x80c3000
> brk(0x80c4000) = 0x80c4000
> brk(0x80c5000) = 0x80c5000
> brk(0x80c6000) = 0x80c6000
> brk(0x80c7000) = 0x80c7000
> brk(0x80c8000) = 0x80c8000
> brk(0x80c9000) = 0x80c9000
> brk(0x80ca000) = 0x80ca000
> brk(0x80cb000) = 0x80cb000
> brk(0x80cc000) = 0x80cc000
> brk(0x80cd000) = 0x80cd000
> brk(0x80ce000) = 0x80ce000
> brk(0x80d0000) = 0x80d0000
> brk(0x80d2000) = 0x80d2000
> brk(0x80d4000) = 0x80d4000
> open("/var/www/html/wrenkasky/mrtg/ns5gt.wrenkasky.com_2-day.png",
> O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
> brk(0x80d7000) = 0x80d7000
> fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
> -1, 0) = 0x40019000
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
>
>
> . . . . . . . . . . . . . . . . . .
> Randomly Generated Quote (283 of 1052):
> A happy marriage is the union of two good forgivers.
> -Robert Quillen, journalist and cartoonist (1887-1948)
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive http://lists.ee.ethz.ch/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
>
--
ETH Zurich
Tobias Oetiker, IT Support Group D-ITET (ISG.EE)
ETL F24.2, Physikstrasse 3, 8092 Zurich, Switzerland
Phone +41 44 63 25286, http://people.ee.ethz.ch/oetiker/
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list