Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #11559] Segfault during config validation if host exists, service does not exist any longer and downtime expires #4104

Closed
icinga-migration opened this issue Apr 11, 2016 · 6 comments
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11559

Created by dgoetz on 2016-04-11 09:34:04 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2016-04-12 10:10:03 +00:00)
Target Version: 2.4.5
Last Update: 2016-04-20 08:16:07 +00:00 (in Redmine)

Icinga Version: 2.4.4
Backport?: Already backported
Include in Changelog: 1

The core segfaults during config validation if host exists, service does not exist any longer and downtime expires.

In this case you can find it by running gdb --args icinga2 daemon -C

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7f92700 (LWP 19585)]
0x00007ffff04dee8d in icinga::Downtime::RemoveDowntime (id=..., cancelled=cancelled@entry=false,
expired=expired@entry=true, origin=...) at ../icinga/downtime.cpp:276
276 << "Removed downtime '" << downtime->GetName() << "' from object '" << downtime->GetCheckable()->GetName() << "'.";

and p *downtime.px

warning: RTTI symbol not found for class 'icinga::Downtime'
$1 = warning: RTTI symbol not found for class 'icinga::Downtime'

{<(anonymous namespace)::ObjectImpl> = {<(anonymous namespace)::ConfigObject> = {}, m_HostName = {static NPos = , m_Data = "su21k044"}, m_ServiceName = {static NPos = ,
m_Data = "ibix_fs_str_oradata_ibix"}, m_Author = {static NPos = , m_Data = "k435420"},
m_Comment = {static NPos = , m_Data = "lt. Stephan Lederer bis 29.03."}, m_TriggeredBy = {
static NPos = , m_Data = ""}, m_ScheduledBy = {static NPos = , m_Data = ""},
m_ConfigOwner = {static NPos = , m_Data = ""}, m_EntryTime = 1459866702.8816881,
m_StartTime = 1458220823, m_EndTime = 1459314023, m_TriggerTime = 0, m_Duration = 0, m_Triggers = {
px = 0x7fffc022d2b0}, m_LegacyId = 0, m_Fixed = true, m_WasCancelled = false,
static OnHostNameChanged = , static OnServiceNameChanged = ,
static OnAuthorChanged = , static OnCommentChanged = ,
static OnTriggeredByChanged = , static OnScheduledByChanged = ,
static OnConfigOwnerChanged = , static OnEntryTimeChanged = ,
static OnStartTimeChanged = , static OnEndTimeChanged = ,
static OnTriggerTimeChanged = , static OnDurationChanged = ,
static OnTriggersChanged = , static OnLegacyIdChanged = ,
static OnFixedChanged = , static OnWasCancelledChanged = },
static TypeInstance = , static OnDowntimeAdded = ,
static OnDowntimeRemoved = , static OnDowntimeTriggered = , m_Checkable = {
px = 0x0}}

cat /var/lib/icinga2/api/packages/_api/su01k026-1456396848-1/conf.d/downtimes/su21k044\!ibix_fs_str_oradata_ibix\!su01k026-1458220869-8.conf
object Downtime "su01k026-1458220869-8" ignore_on_error {
author = "k435420"
comment = "lt. Stephan Lederer bis 29.03."
config_owner = ""
duration = 0.000000
end_time = 1459314023.000000
fixed = true
host_name = "su21k044"
scheduled_by = ""
service_name = "ibix_fs_str_oradata_ibix"
start_time = 1458220823.000000
triggered_by = ""
version = 1458220869.641111
} 

Changesets

2016-04-12 10:05:43 +00:00 by gbeutner 974ca9f

Fix crash in Downtime::DowntimesExpireTimerHandler

fixes #11534
fixes #11559

2016-04-20 08:09:34 +00:00 by gbeutner 159681c

Fix crash in Downtime::DowntimesExpireTimerHandler

fixes #11534
fixes #11559

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-11 09:35:40 +00:00

  • Category set to Configuration
  • Target Version set to 2.4.6

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-11 09:36:13 +00:00

  • Description updated

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-12 09:40:51 +00:00

  • Duplicated set to 11534

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-12 10:05:55 +00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version changed from 2.4.6 to 2.4.5

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-12 10:10:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 974ca9f.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-04-20 08:16:07 +00:00

  • Backport? changed from Not yet backported to Already backported

@icinga-migration icinga-migration added bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.4.5 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant