Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-7627

Asterisk crashing on start with "Illegal instruction"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not an issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FreePBX Distro
    • Labels:
    • Environment:
    • ToDo:

      Description

      A few of us have encountered the dreaded "Illegal instruction" error where Asterisk doesn't start and core dumps.

      The problem is that the precompiled Asterisk packages are not the right ones for some of the CPUs, especially for AMD processors.

      The most elegant solution would be for the Distro to properly recognize the CPU and pull down packages compiled with the right CPU, but it might become a logistics / management problem.

      A compromise is to build Asterisk packages with the BUILD_NATIVE option disabled.

      Please consider that: although compiling without that flag doesn't optimize the code, the Distro usually is not used for heavy duty applications, and non-optimized Asterisk code doesn't affect much the performances of the overall machine.

      Or expand the asterisk-version-switch batch file to download a package with the BUILD_NATIVE flag on or off.

      Or recognize during the install that Asterisk fails to start and automagically download the package with the non-optimised version.

      Many solutions to the same problem...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tonyclewis Tony Lewis
                Reporter:
                corradomella Corrado Mella
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.