Asterisk constantly crashing


#21

ticket open #997542


#22

How about checking if the package was recently updated?
rpm -qa --last | less
looking for asterisk16-res_digium_phone (assuming using 16)


#23

asterisk18-res_digium_phone-3.6.5-1.sng7.x86_64 Tue 14 Sep 2021 05:54:41 PM UTC

but I just upgraded to 18 so that makes sense…


#24

Hmm, does the switch version command leave the old version around? If so, try it for the asterisk16 one.

Does ‘dmesg’ output show anything other than the digium module segfault?
Hmm, and does ‘yum list updates’ show anything needing updating?


(Itzik) #25

Try updating AND rebooting the PBX.

fwconsole ma upgradeall
fwconsole chown
fwconsole reload
yum update -y
reboot

#26

already been done but I’ll give it another try


#27

watch those fwconsole commands for any weird errors (perhaps append: | tee -a /tmp/fwconsole.log)


(Itzik) #28

https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-Backtraces(Segfaults/CoreDumps/AsteriskCrashing)


#29

only error was:

Reload Started

In Process.php line 239:

  The command "/sbin/asterisk -rx 'core show version'" failed.

  Exit Code: 1(General error)

  Working directory: /var/spool/asterisk

  Output:
  ================


  Error Output:
  ================
  Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)


reload [--json] [--dry-run] [--skip-registry-checks] [--dont-reload-asterisk]

but I suspect that’s because asterisk was crashed at that moment.


#30

rebooted… error still happening


(Itzik) #31

Then try first:

fwconsole stop
yum update -y
reboot

Start asterisk after boot (give it two three minutes to start on it’s own):

fwconsoel start

(Itzik) #32

They provide: https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-Backtraces(Segfaults/CoreDumps/AsteriskCrashing)


#33

installed the sangoma-devel and debug packages but not sure what to do after that… instructions are kinda all over the place on that pages…

sorry… a bit confused on how to upload the info


(TheJames) #34

I think @lgaetz is correct it may be best to open a ticket. I may even passively poke @mdavenport to see if he pokes his head in…

Ultimately one of your libraries is mismatched. You have jumped through the hoops so I will assume you are using distro builds of all of the asterisk packages. Perhaps you built a library or installed a 3rd party RPM for something like libssl or one of the other dependent libraries. Something is not “binary compatible” with the asterisk build.

Do you have any 3ed party repos?
Have you (or anyone) compiled any libraries?

ldd /usr/lib64/asterisk/modules/res_digium_phone.so

You can see the linked libraries with ^^^


#35

nothing 3rd party… this is a vanilla distro system


#36

Is it possible you have a hardware specific (often memory related) problem ? ( the coredump always seem to happen after accessing similar mapped address space)

https://linuxconfig.org/installation-of-memtest-ram-memory-test-tool-on-redhat-7-linux

boot into it and wait a few hours . . .


#37

unfortunately… ERROR: memtest86+ does not support EFI platforms.


#38

Coincidence ?

Digium Phone App Totally Broke


#39

I think not… asterisk crashes when the phones try to connect…


#40

Then obviously unrelated .