• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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

Problems Installing or Upgrading pfSense Software
6
18
4.6k
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 Feb 14, 2022, 6:22 PM

    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 Feb 14, 2022, 8:36 PM

      @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 Feb 14, 2022, 11:17 PM Reply Quote 1
      • S
        swix @SteveITS
        last edited by Feb 14, 2022, 11:17 PM

        @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
        • S
          stephenw10 Netgate Administrator
          last edited by Feb 15, 2022, 1:54 AM

          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 Feb 19, 2022, 10:41 PM

            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 Feb 19, 2022, 11:54 PM

              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
              • S
                stephenw10 Netgate Administrator
                last edited by Feb 20, 2022, 1:21 AM

                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 Feb 20, 2022, 6:50 AM Feb 20, 2022, 6:50 AM

                  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
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Feb 20, 2022, 3:09 PM

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

                    1 Reply Last reply Reply Quote 0
                    • I
                      iJay-XTM5
                      last edited by Feb 20, 2022, 3:44 PM

                      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
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 20, 2022, 3:51 PM

                        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 Mar 16, 2023, 12:21 PM
                        17 out of 18
                        • First post
                          17/18
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.