# Segfault Error

**URL:** <https://community.icinga.com/t/segfault-error/4546>\
**Category:** Icinga 2\
**Created:** [May 28, 2020, 5:44am UTC](https://community.icinga.com/t/segfault-error/4546 "2020-05-28T05:44:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [May 28, 2020, 5:44am UTC](https://community.icinga.com/t/segfault-error/4546/1 "2020-05-28T05:44:18Z")

</div>

Icinga2 version - 2.11.3-1

May 24 09:31:21 agmaster-icinga-1a kernel: icinga2[531]: segfault at 48 ip 000000000062a617 sp 00007fbd824b2990 error 4 in icinga2[400000+a0c000]

We are stuck with this error for almost a week now. Don’t see any errors when restarting Icinga2. Only when we check the status of Icinga2 and other logs we see this.

We are afraid that we will have to re do the entire work all again which would take another few days of our efforts.

---

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [June 4, 2020, 11:32am UTC](https://community.icinga.com/t/segfault-error/4546/2 "2020-06-04T11:32:10Z")

</div>

I ran `icinga2 daemon -x debug`, didn’t get any errors or warnings. However went through each conf and other files icinga2 going through. I noticed that  
`[2020-05-28 16:55:43 +0000] information/ConfigObject: Restoring program state from file '/var/lib/icinga2/icinga2.state'`

The file was last updated on May 21st 2020, and Icinga2 is still trying to reference that. I emptied the file, restarted Icinga2 and it has started successfully. Let me know of your views on this fix.

---

<div class="post-metadata">

**Author:** ![anon66228339](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@anon66228339](https://community.icinga.com/u/anon66228339)\
**Post date:** [June 4, 2020, 7:07pm UTC](https://community.icinga.com/t/segfault-error/4546/3 "2020-06-04T19:07:06Z")

</div>

Any output with errors from `icinga2 daemon -C` ?

---

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [June 5, 2020, 4:39am UTC](https://community.icinga.com/t/segfault-error/4546/4 "2020-06-05T04:39:36Z")

</div>

No, I didn’t get any errors.

---

<div class="post-metadata">

**Author:** ![anon66228339](https://community.icinga.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@anon66228339](https://community.icinga.com/u/anon66228339)\
**Post date:** [June 5, 2020, 6:22am UTC](https://community.icinga.com/t/segfault-error/4546/5 "2020-06-05T06:22:23Z")

</div>

Then we need more information about how you installed icinga2 the distribution you use etc.

Regads,  
Carsten

---

<div class="post-metadata">

**Author:** ![elippmann](https://community.icinga.com/user_avatar/community.icinga.com/elippmann/32/743_2.png) [@elippmann](https://community.icinga.com/u/elippmann)\
**Post date:** [June 5, 2020, 1:38pm UTC](https://community.icinga.com/t/segfault-error/4546/6 "2020-06-05T13:38:50Z")

</div>

Hi,

Do you have a backup of that state file and/or a core dump?

All the best,  
Eric

---

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [June 5, 2020, 3:49pm UTC](https://community.icinga.com/t/segfault-error/4546/7 "2020-06-05T15:49:26Z")

</div>

@elippmann,

We were unable to generate the core dump. The backup has been removed after a few days of the fix. We will try to have dumps generated if we encounter similar problem in future.

Regards,  
Haris P A

---

<div class="post-metadata">

**Author:** ![Al2Klimov](https://community.icinga.com/user_avatar/community.icinga.com/al2klimov/32/959_2.png) [@Al2Klimov](https://community.icinga.com/u/Al2Klimov)\
**Post date:** [June 5, 2020, 3:54pm UTC](https://community.icinga.com/t/segfault-error/4546/8 "2020-06-05T15:54:53Z")

</div>

The upcoming v2.11.4 will contain a fix which may solve your problem.

---

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [June 5, 2020, 4:03pm UTC](https://community.icinga.com/t/segfault-error/4546/9 "2020-06-05T16:03:19Z")

</div>

Hi Carsten,

icinga2 version - 2.11.3-1

We installed from yum repository and from epel release following these steps  
`cd /tmp && wget -O epel.rpm -nv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install -y ./epel.rpm sudo rpm --import https://packages.icinga.com/icinga.key sudo yum install -y https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm sudo sed -i -e 's/$releasever/7/g' /etc/yum.repos.d/ICINGA-release.repo sudo yum makecache sudo yum install -y icinga2`

We are not facing any problem since the fix. As @Al2Klimov mentioned, we hope to have this fixed in next release.

---

<div class="post-metadata">

**Author:** ![harisspa](https://community.icinga.com/user_avatar/community.icinga.com/harisspa/32/2664_2.png) [@harisspa](https://community.icinga.com/u/harisspa)\
**Post date:** [June 5, 2020, 4:03pm UTC](https://community.icinga.com/t/segfault-error/4546/10 "2020-06-05T16:03:57Z")

</div>

Thank you, we hope the next release fixes this issue.
