asterisk crashes after update to 120

Questions to IPFire Addons.
Post Reply
hphalle
Posts: 3
Joined: May 2nd, 2018, 8:06 am

asterisk crashes after update to 120

Post by hphalle » May 2nd, 2018, 8:22 am

After updating to version 120 asterisk is crashing with the following logs:

May 2 09:52:29 ipfire kernel: grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/sbin/asterisk[asterisk:2561] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
May 2 09:52:29 ipfire kernel: DROP_INPUT IN=ppp0 OUT= MAC= SRC=60.191.38.77 DST=91.45.98.195 LEN=44 TOS=0x00 PREC=0x00 TTL=116 ID=53731 PROTO=TCP SPT=52751 DPT=4786 WINDOW=29200 RES=0x00 SYN URGP=0 MARK=0xd2

I tried to uninstall and reinstall, but without changes. Is there any fast solution, as to fall back to the old asterisk version?

User avatar
MichaelTremer
Core Developer
Core Developer
Posts: 5583
Joined: August 11th, 2005, 9:02 am

Re: asterisk crashes after update to 120

Post by MichaelTremer » May 2nd, 2018, 10:12 am

Please install the latest version of the package...

hphalle
Posts: 3
Joined: May 2nd, 2018, 8:06 am

Re: asterisk crashes after update to 120

Post by hphalle » May 2nd, 2018, 12:02 pm

I was using the latest version, at least there is no newer version displayed by pakfire. At the same time the core update was done an asterisk update took place. After this update the crash occured. I did deinstall asterisk, updated the pakfire list and did a reinstal - whithout changes. asterisk -V shows "Asterisk 13.18.5" and still crashes when trying to start service.

Any other suggestions?

callifo
Posts: 9
Joined: September 30th, 2013, 4:14 pm

Re: asterisk crashes after update to 120

Post by callifo » May 2nd, 2018, 1:17 pm

Same issue, been happening since the update on Core 119. Asterisk otherwise has been rock solid for years. Have had to download the version available back at Core 118 and manually unpack and install outside of pakfire to get it going again.

Core 119
Mar 28 23:09:04 ipfire.localdomain kernel: grsec: Illegal instruction occurred at 08223f60 in /usr/sbin/asterisk[asterisk:5247] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
Mar 28 23:09:04 ipfire.localdomain kernel: grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/sbin/asterisk[asterisk:5247] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

Core 120
May 1 23:47:17 ipfire kernel: grsec: From 192.168.10.100: Illegal instruction occurred at 08223f60 in /usr/sbin/asterisk[asterisk:12068] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
May 1 23:47:17 ipfire kernel: grsec: From 192.168.10.100: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/sbin/asterisk[asterisk:12068] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

I increased the CORE limit to 4096, but after doing that it just wanted the core value at like 2 million, obviously something more serious is wrong.

Veti
Posts: 342
Joined: November 22nd, 2009, 9:26 am

Re: asterisk crashes after update to 120

Post by Veti » May 3rd, 2018, 5:12 am

its a segfault check the asterisk logs

hphalle
Posts: 3
Joined: May 2nd, 2018, 8:06 am

Re: asterisk crashes after update to 120

Post by hphalle » May 3rd, 2018, 7:35 am

Yes, it is a segfault. Yesterday I picked not exactly the two log lines I had in my mind. Here are the two lines showing the error from a start today:

May 3 09:25:11 ipfire kernel: grsec: From 192.168.7.43: Illegal instruction occurred at 08223f60 in /usr/sbin/asterisk[asterisk:17406] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
May 3 09:25:11 ipfire kernel: grsec: From 192.168.7.43: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/sbin/asterisk[asterisk:17406] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

These lines from /var/log/messages are the only indication of the asterisk start attempt. There is no message from the start attempt in the asterisk log /var/log/asterisk/messages.

callifo
Posts: 9
Joined: September 30th, 2013, 4:14 pm

Re: asterisk crashes after update to 120

Post by callifo » May 3rd, 2018, 9:31 am

Same behavior here, those messages are present in /var/log/messages, but the /var/log/asterisk/messages log shows nothing recent (only the Core 118 build I've been reverting to).

p.equals.np
Posts: 2
Joined: June 23rd, 2018, 4:16 pm

Re: asterisk crashes after update to 120

Post by p.equals.np » June 23rd, 2018, 4:19 pm

Is there an update to this? It's still happening, and was an unwelcome surprise after upgrading from core117 to core120.

I can rebuild asterisk on my own, if required, but I would like to use the method that generated the ipfire package. If someone posts that method, that'd be appreciated.

Thank you.

callifo
Posts: 9
Joined: September 30th, 2013, 4:14 pm

Re: asterisk crashes after update to 120

Post by callifo » June 23rd, 2018, 10:59 pm

For the moment I am still running the old build which can be installed from the command line. I can place the installer somewhere if you need it.

p.equals.np
Posts: 2
Joined: June 23rd, 2018, 4:16 pm

Re: asterisk crashes after update to 120

Post by p.equals.np » June 24th, 2018, 6:52 pm

That's a great idea, but I would prefer to use an official package.

So, here's what I did:
  1. Uninstall the broken asterisk package
  2. Download an older version of asterisk from the pakfire repository (https://mirror1.ipfire.org/pakfire2/2.17.1-x86_64/paks/
  3. Copy this (asterisk-11.20.0-18.ipfire) into /opt/pakfire/tmp
  4. Unencrypt the package: gpg -o asterisk-11.20.0-18.ipfire.out -d asterisk-11.20.0-18.ipfire
  5. mv asterisk-11.20.0-18.ipfire.out asterisk-11.20.0-18.ipfire
  6. tar xf asterisk-11.20.0-18.ipfire
  7. ./install.sh
'pakfire' does not show this package as installed, but I'm willing to live with that.

callifo
Posts: 9
Joined: September 30th, 2013, 4:14 pm

Re: asterisk crashes after update to 120

Post by callifo » July 5th, 2018, 9:50 am

I've noticed the bug tracker issue was closed, anyone else still having the issue as its not resolved for me. Still getting the illegal instruction messages in the current version. Have had to stay on 11.23.1-20

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7733
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: asterisk crashes after update to 120

Post by Arne.F » July 5th, 2018, 1:23 pm

The Bug 11673 that i have closed stated that asterisk cannot installed because dependencies are missing. (and the missing jansen package is fixed.)

Your problem is an other bug and i think it is only valid vor one architecture (illegal instructions is a cpu fault)
Please open a new bug and report details about your hardware. (x86_64 i586 arm ???)
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

callifo
Posts: 9
Joined: September 30th, 2013, 4:14 pm

Re: asterisk crashes after update to 120

Post by callifo » July 6th, 2018, 12:25 pm


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest