[icinga-users] Solaris 10: Bus Error (core dumped) when starting icinga

Michael Friedrich michael.friedrich at univie.ac.at
Mon Sep 27 10:53:34 CEST 2010


Hi,

I've now identified the error, it came from a faulty event profiler 
implementation, and some strange realloc behavior on Solaris 10 with 
gcc3. See #702 for more info - https://dev.icinga.org/issues/702

This bug came up with different behavior on x86 and sparc too, but lead 
all to memory mapping errors (some had sigsegv, some sigbus). In order 
to make this work with ancient gcc3 too, Icinga Core now detects if gcc3 
is used and disables integration of the event profiler (it does not moan 
about the config option, it just ignores it).

Furthermore, eventprofiler is now initialized only if enabled throughout 
the config, keeping this clean. I've debugged it with truss and gdb and 
it is working like it should.

I've also fixed several sigsegv on the cgis when not providing a 
query_string. printf("%s", NULL); on Solaris is always a bad idea - see 
https://dev.icinga.org/issues/594 for more info about that.

We have tested this on x86 and sparc over the weekend, it runs fine at 
our stage.

Changes are already merged back to master - would be great if you could 
checkout the latest head and test this yourself :)


Thanks to Lars Engels for providing intensive help on my Solaris 
n00bishness :-)

Kind regards,
Michael

PS: I will have a look at misbehaving IDOUtils too.


-------- Original Message  --------
Subject: [icinga-users] Solaris 10: Bus Error (core dumped) when 
starting    icinga
From: Anton Müller <antonxx at gmx.de>
To: icinga-users at lists.sourceforge.net
Date: 2010-08-09 14:37
> Hi,
>
> I did now the same steps on solaris which I did when compiling on linux.
>
> My actual status:
>
> icinga with classical web interface works on suse linux 11.1 64 bit.
>
> On solaris 10 I stumble over the step in
> the quickstart documentation:
> ---------------------------------------
> #>  /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg
>
> Icinga 1.0.2
> Copyright (c) 2009-2010 Icinga Development Team (http://www.icinga.org)
> Copyright (c) 2009 Nagios Core Development Team and Community Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 06-30-2010
> License: GPL
>
> Bus Error (core dumped)
> #>
> ---------------------------------------
>
> When looking at the dump, I see:
> --------------------------------------
>    
>> pstack /var/core/core_utuw57_icinga_0_0_1281357332_10848
>>      
> core '/var/core/core_utuw57_icinga_0_0_1281357332_10848' of 10848:      /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg
>   ff056e5c _morecore (2011, b2648, b4438, ff1392ac, 7ffffc00, 0) + 178
>   ff05662c _malloc_unlocked (600, b2648, 1, b2648, ff1303a8, 0) + 1fc
>   ff05635c _smalloc (10, 0, da08c, ff056538, ffffffff, ff139214) + 4c
>   ff056414 malloc   (9, 1, d9fd8, 0, ff1303a8, ff13a518) + 4c
>   ff0693dc strdup   (8b6e0, 0, 0, 0, 0, 99) + c
>   0003f5e8 init_macrox_names (b01d4, 0, 0, 0, 0, 0) + 28
>   0003ff80 init_macros (ffffffff, 3c, 1e, 1, aec00, ae800) + 4
>   0004ba8c reset_variables (b1050, 0, e, ff13a050, 1, 1) + 460
>   0001ef90 main     (aec00, ffbffb9c, ffbffbac, b01c8, ff350100, 0) + a98
>   0001e390 _start   (0, 0, 0, 0, 0, 0) + 5c
> -------------------------------------------
>
> Is this a known bug???
>
> Should I use the actual dev build??
>
>
> Thanks a lot
>
>
> Anton
>
>
>    


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: 	michael.friedrich at univie.ac.at
phone: 	+43 1 4277 14359
fax: 	+43 1 4277 14279
web:	http://www.univie.ac.at/zid

Icinga Core&  IDOUtils Developer
http://www.icinga.org





More information about the icinga-users mailing list