Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    2.5.2 to 2.6.0 upgrade fails with [pkg] Child process pid=N terminated abnormally: Segmentation fault

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    18 Posts 6 Posters 4.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      swix
      last edited by

      All good! Upgrade fine as usual, so noted for next time: make sure outdated packages are removed + reboot with fsck.

      *** Welcome to pfSense 2.6.0-RELEASE (amd64) on gw ***
      

      Thanks again @jimp and @mdomnis & best regards.

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @swix
        last edited by

        @swix said in 2.5.2 to 2.6.0 upgrade fails with [pkg] Child process pid=N terminated abnormally: Segmentation fault:

        this kind of deprecated package will/may prevent an upgrade and generate a quite cryptical Segmentation Fault

        Just FYI per https://forum.netgate.com/topic/169845/segmentation-fault-when-attempting-to-upgrade-2-5-2-2-6-0/11, "The expected behaviour is that the package would simply be removed at upgrade. But that is not the case currently."

        Also worth noting, per https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide-prepare.html#packages "The safest practice is to remove all packages before upgrading to a new release. The upgrade process will handle packages automatically, but packages are frequently a source of problems. To ensure a smooth upgrade, note the installed packages, remove them, perform the upgrade, and then reinstall when the upgrade is complete." Uninstalling first would also let the admin see the package has been replaced/deprecated, from the installed packages page.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        S 1 Reply Last reply Reply Quote 1
        • S
          swix @SteveITS
          last edited by

          @steveits yes sure, you're 100% right. It's just the first time I see such an issue (in ~10 years), so I was still a bit surprised.

          Maybe there could be a few simple steps during the upgrade process that would make sure this kind of error (Segmentation fault) does not happen, or that it's a least trapped and replaced by a more readable message like "something went wrong with pkg, RTFM/remove packages".

          My next step would have been to remove the packages one by one, but @mdomnis suggested it even before I could think about it :)

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            For reference: https://redmine.pfsense.org/issues/12796

            That should not happen. The patch linked there could resolve it shortly.

            Steve

            1 Reply Last reply Reply Quote 1
            • I
              iJay-XTM5
              last edited by

              Hello, I am also experiencing a segmentation fault with a similar message but do not have the zabbix package installed. This is a Watchguard M400 box with an upgraded i5-4590T CPU. Previous upgrades went through without a hitch so I'm a bit perplexed with the current failure.
              The GUI just reports Update failed but the consoles, both ssh and local indicate the following:
              Child process pid=***** terminated abnormally: Segmentation fault

              I've tried following directions from this post: [https://forum.netgate.com/topic/128618/broken-updates-upgrades-packages-segmentation-faults-etc]
              and get the following errors (output from each package indented for clarity):
              pkg-static update -f
              (...)
              Newer FreeBSD version for package pfSense-pkg-node_exporter:
              To ignore this error set IGNORE_OSVERSION=yes

              • package: 1203500
              • running kernel: 1202504
                Ignore the mismatch and continue? [y/N]: y
                Processing entries: 100%
                pfSense repository update completed. 511 packages processed.
                All repositories are up to date.

              pkg-static upgrade -f
              Updating pfSense-core repository catalogue...
              pfSense-core repository is up to date.
              Updating pfSense repository catalogue...
              pfSense repository is up to date.
              All repositories are up to date.
              Checking for upgrades (236 candidates): 14%
              (null) has no direct installation candidates, change it to python38? [Y/n]: Y
              Child process pid=65740 terminated abnormally: Segmentation fault

              It appears the packages are corruputed, and I'm not how to proceed at this time. Could somebody with more experience with troubleshooting please provide me with some directions and guidance?
              Many Thanks for your help in advance!

              1 Reply Last reply Reply Quote 0
              • I
                iJay-XTM5
                last edited by

                The following packages are installed on the machine:
                ntopng v0.8.13_10
                pfBlockerNG-devel v3.1.0_1
                snort v4.1.5
                System_Patches v1.2_7

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  As is always the case the safest way to upgrade is to remove all the packages, upgrade and then reinstall the packages. So I would try that first.

                  1 Reply Last reply Reply Quote 0
                  • I
                    iJay-XTM5
                    last edited by iJay-XTM5

                    Thanks for the suggestion Stephen, I uninstalled all packages but still have the segmentation error:

                    Child process pid=42102 terminated abnormally: Segmentation fault

                    Any other suggestions?
                    Thanks for your help!

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Hmm, try running pkg-static -d update to get debug output.

                      1 Reply Last reply Reply Quote 0
                      • I
                        iJay-XTM5
                        last edited by

                        I was able to successfully update and upgrade pkg-static from the command line as well as upgrade to pfsense 2.6.0. Unfortunately, I forgot to capture the output from the pkg-static -d update but it completed successfully. I subsequently also tried pkg-static -d upgrade which resulted in a large number of upgrades. The -d update and -d upgrade commands appear to have done the trick.
                        Many thanks for your help!

                        1 Reply Last reply Reply Quote 1
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          The -d switch there only enables debugging output. It shouldn't make any difference in itself. But I'm glad you were able to get past that anyway. ๐Ÿ˜‰

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • H heper referenced this topic on
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.