Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16534 closed defect (fixed)

rrdtool 1.3.2 port causes bus error when called from munin on Mac OS X 1.5.4

Reported by: dave.bc@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: rrdtool 1.3.2

Description

munin is system monitoring package that uses rrd through perl. one of the scripts, munin-graph, can consistently cause a bus error in rrdtool. The crash report is:

Process: perl [23997] Path: /opt/local/bin/perl Identifier: perl Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [23954]

Date/Time: 2008-09-14 13:56:33.716 +1000 OS Version: Mac OS X 10.5.4 (9E17) Report Version: 6

Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008 Crashed Thread: 0

Thread 0 Crashed: 0 libSystem.B.dylib 0x96400580 strncpy + 112 1 librrd.4.dylib 0x00157225 rrd_graph_options + 2645 2 librrd.4.dylib 0x001601b2 rrd_graph_v + 66 3 librrd.4.dylib 0x00160491 rrd_graph + 33 4 RRDs.bundle 0x0014af63 XS_RRDs_graph + 323 5 perl 0x00077f3f Perl_pp_entersub + 847 6 perl 0x0006f295 Perl_runops_standard + 37 7 perl 0x00004f53 perl_run + 851 8 perl 0x000019be main + 222 9 perl 0x000018a6 start + 54

Thread 0 crashed with X86 Thread State (32-bit):

eax: 0x00000000 ebx: 0x00156343 ecx: 0x000003ff edx: 0x0000003f edi: 0xbfffebc0 esi: 0x00000000 ebp: 0xbfffd168 esp: 0xbfffd124

ss: 0x0000001f efl: 0x00010217 eip: 0x96400580 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

cr2: 0x00000008

Binary Images:

0x1000 - 0xfeffb +perl ??? (???) /opt/local/bin/perl

0x11e000 - 0x120fff libutil.dylib ??? (???) <60cf001a1d2db72cdb69fcfaf5e94ba9> /usr/lib/libutil.dylib 0x13c000 - 0x13eff2 +IO.bundle ??? (???) /opt/local/lib/perl5/5.8.8/darwin-2level/auto/IO/IO.bundle 0x142000 - 0x145ffe +Socket.bundle ??? (???) /opt/local/lib/perl5/5.8.8/darwin-2level/auto/Socket/Socket.bundle 0x149000 - 0x14cffb +RRDs.bundle ??? (???) /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/RRDs/RRDs.bundle 0x150000 - 0x17afff +librrd.4.dylib ??? (???) /opt/local/lib/librrd.4.dylib 0x185000 - 0x195ffd +libz.1.dylib ??? (???) /opt/local/lib/libz.1.dylib 0x19a000 - 0x1a1fff +libpangocairo-1.0.0.dylib ??? (???) /opt/local/lib/libpangocairo-1.0.0.dylib 0x1aa000 - 0x1aaff1 +libXau.6.dylib ??? (???) <cd091bf5ae82c18ee03a9b4f6bb93d57> /usr/X11/lib/libXau.6.dylib 0x1af000 - 0x1b1fef +libXdmcp.6.dylib ??? (???) <6f2b16b27bab3a08bd635d8e56bfe9f6> /usr/X11/lib/libXdmcp.6.dylib 0x1b6000 - 0x1bbffc +libSM.6.dylib ??? (???) <1a5a19fa53bdce9d344782a05db3c4e7> /usr/X11/lib/libSM.6.dylib 0x1c1000 - 0x1d2ff7 +libICE.6.dylib ??? (???) <0ed3bdd6f53b07a00ef27fc3577f283a> /usr/X11/lib/libICE.6.dylib 0x1db000 - 0x1e0fff +libXrender.1.dylib ??? (???) /opt/local/lib/libXrender.1.dylib 0x1e4000 - 0x1e5ffd +libgmodule-2.0.0.dylib ??? (???) /opt/local/lib/libgmodule-2.0.0.dylib 0x1e9000 - 0x1f0ff3 +libintl.8.dylib ??? (???) /opt/local/lib/libintl.8.dylib

...

Attachments (4)

perl_2008-09-14-135633_Dave-Camerons-TWOZ-MacBook-Pro.crash (18.9 KB) - added by dave.bc@… 16 years ago.
full crash report
Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-user-g.rrd (49.4 KB) - added by dave.bc@… 16 years ago.
Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-idle-g.rrd (49.4 KB) - added by dave.bc@… 16 years ago.
Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-system-g.rrd (49.4 KB) - added by dave.bc@… 16 years ago.

Download all attachments as: .zip

Change History (12)

Changed 16 years ago by dave.bc@…

full crash report

Changed 16 years ago by dave.bc@…

Changed 16 years ago by dave.bc@…

comment:1 Changed 16 years ago by dave.bc@…

Based on munin debugging, munin thinks it's sending a command equivalent to

rrdtool "graph" "--font"
	"LEGEND:7:/opt/munin/lib/VeraMono.ttf"
	"--font"
	"UNIT:7:/opt/munin/lib/VeraMono.ttf"
	"--font"
	"AXIS:7:/opt/munin/lib/VeraMono.ttf"
	"-W"
	"Munin svn-trunk-r1731"
	"/opt/munin/var/www/local/Dave-Camerons-TWOZ-MacBook-Pro.local/cpu-month.png"
	"--title"
	"CPU usage - by month"
	"--start"
	"-33d"
	"--base"
	"1000"
	"-r"
	"--lower-limit"
	"0"
	"--upper-limit"
	"100"
	"--vertical-label"
	"%"
	"--height"
	"175"
	"--width"
	"400"
	"--imgformat"
	"PNG"
	"--lazy"
	"--units-exponent"
	"0"
	"DEF:gsystem=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-system-g.rrd:42:AVERAGE"
	"DEF:isystem=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-system-g.rrd:42:MIN"
	"DEF:asystem=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-system-g.rrd:42:MAX"
	"CDEF:csystem=gsystem,POP,UNKN"
	"COMMENT:      "
	"COMMENT: Cur\:"
	"COMMENT:Min\:"
	"COMMENT:Avg\:"
	"COMMENT:Max\:  \j"
	"AREA:gsystem#00CC00:system "
	"GPRINT:csystem:LAST:%6.2lf"
	"GPRINT:isystem:MIN:%6.2lf"
	"GPRINT:gsystem:AVERAGE:%6.2lf"
	"GPRINT:asystem:MAX:%6.2lf\j"
	"DEF:guser=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-user-g.rrd:42:AVERAGE"
	"DEF:iuser=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-user-g.rrd:42:MIN"
	"DEF:auser=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-user-g.rrd:42:MAX"
	"CDEF:cuser=guser,POP,UNKN"
	"STACK:guser#0066B3:user   "
	"GPRINT:cuser:LAST:%6.2lf"
	"GPRINT:iuser:MIN:%6.2lf"
	"GPRINT:guser:AVERAGE:%6.2lf"
	"GPRINT:auser:MAX:%6.2lf\j"
	"DEF:gidle=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-idle-g.rrd:42:AVERAGE"
	"DEF:iidle=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-idle-g.rrd:42:MIN"
	"DEF:aidle=/var/opt/munin/local/Dave-Camerons-TWOZ-MacBook-Pro.local-cpu-idle-g.rrd:42:MAX"
	"CDEF:cidle=gidle,POP,UNKN"
	"STACK:gidle#FF8000:idle   "
	"GPRINT:cidle:LAST:%6.2lf"
	"GPRINT:iidle:MIN:%6.2lf"
	"GPRINT:gidle:AVERAGE:%6.2lf"
	"GPRINT:aidle:MAX:%6.2lf\j"
	"COMMENT:Last update\: Sun Sep 14 13\:56\:30 2008\r"

referenced files attached

comment:2 Changed 16 years ago by dave.bc@…

Removing the --font options and their parameters stop the bus error from occuring.

comment:3 Changed 16 years ago by dave.bc@…

Even more specifically, it's caused by the size specifier. LEGEND:0:/opt/munin/lib/VeraMono.ttf will not cause a Bus Error, but will cause the following warning:

(process:50014): Pango-WARNING : couldn't load font "/opt/munin/lib/VeraMono.ttf Not-Rotated 0", falling back to "Sans Not-Rotated 0", expect ugly output.

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to markd@…

Assigning to maintainer.

comment:5 Changed 16 years ago by markd@…

Did munin work okay with a previous version of 1.3.x? Also, I just updated rrdtool to 1.3.3.

comment:6 in reply to:  5 Changed 16 years ago by markd@…

1.3.2 had a problem where "it did break badly when you tried to supply your own font names and sizes. 1.3.3 fixes this regression."

comment:7 Changed 16 years ago by markd@…

Resolution: fixed
Status: newclosed

This can be reopened if need be, but I think 1.3.3 has fixed this.

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.