Navigation

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

    Php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0

    2.3.3 Development Snapshots
    5
    10
    2823
    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.
    • P
      Paint last edited by

      I am getting pfSense crashes with the latest version: 2.3.3-DEVELOPMENT (amd64) built on Thu Oct 06 11:18:54 CDT 2016 FreeBSD 10.3-RELEASE-p9

      Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      

      I have run pkg upgrade -f php-suhosin but the error still occurs.

      Please advise.

      Thank you for your help!

      Below is the crash log:

      Crash report begins.  Anonymous machine information:
      
      amd64
      10.3-RELEASE-p9
      FreeBSD 10.3-RELEASE-p9 #294 7a802f5(RELENG_2_3): Thu Oct  6 12:08:30 CDT 2016     root@ce23-amd64-builder:/builder/pfsense/tmp/obj/builder/pfsense/tmp/FreeBSD-src/sys/pfSense
      
      Crash report details:
      
      PHP Errors:
      [06-Oct-2016 14:01:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:01:33 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:01:33 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:25 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:25 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:29 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:29 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:34 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:02:35 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:03:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:04:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:05:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      [06-Oct-2016 14:05:00 America/New_York] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
      
      

      pfSense i5-4590
      940/880 mbit Fiber Internet from FiOS
      BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
      Netgear R8000 AP (DD-WRT)

      1 Reply Last reply Reply Quote 0
      • P
        Paint last edited by

        Any idea on this one? It looks like a problem with the actual php-suhosin 0.9.38_3 package, not my /usr/local/etc/php/extensions.ini or /usr/local/etc/php/ext-30-suhosin.ini file

        pfSense i5-4590
        940/880 mbit Fiber Internet from FiOS
        BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
        Netgear R8000 AP (DD-WRT)

        1 Reply Last reply Reply Quote 0
        • N
          NOYB last edited by

          Yup.  Me too.

          Update from this:
          2.3.3-DEVELOPMENT (i386)
          built on Tue Oct 04 17:33:48 CDT 2016
          FreeBSD 10.3-RELEASE

          to this:
          2.3.3-DEVELOPMENT (i386)
          built on Thu Oct 06 11:18:?? CDT 2016
          FreeBSD 10.3-RELEASE

          and get this:

          
          Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
          *** Welcome to pfSense 2.3.3-DEVELOPMENT (i386 full-install) on pfSense ***
          
           WAN (wan)       -> em0        -> v4/DHCP4: 192.168.2.42/24
           LAN (lan)       -> em1        -> v4: 192.168.249.1/24
           ACTIONTEC (opt1) -> em2        -> v4/DHCP4: 192.168.149.2/24
          
           0) Logout (SSH only)                  9) pfTop
           1) Assign Interfaces                 10) Filter Logs
           2) Set interface(s) IP address       11) Restart webConfigurator
           3) Reset webConfigurator password    12) PHP shell +
          Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/suhosin.so' - /usr/local/lib/php/20131226/suhosin.so: Undefined symbol "ps_globals" in Unknown on line 0
          pfSense tools
           4) Reset to factory defaults         13) Update from console
           5) Reboot system                     14) Disable Secure Shell (sshd)
           6) Halt system                       15) Restore recent configuration
           7) Ping host                         16) Restart PHP-FPM
           8) Shell
          
          Enter an option:
          
          
          1 Reply Last reply Reply Quote 0
          • L
            LucaTo last edited by

            Same issue here [2.3.3-DEVELOPMENT (amd64) - built on Thu Oct 06 21:12:52 CDT 2016]

            1 Reply Last reply Reply Quote 0
            • J
              JorgeOliveira last edited by

              Suhosin depends on Session to correctly load.
              Session must always be loaded first, and Suhosin will load after.

              My guess is that session.so entry:```
              extension=session.so

              
              Other alternative would be renaming extensions.ini to ext-10-extensions.ini to force those extensions to load first.

              My views have absolutely no warranty express or implied. Always do your own research.

              1 Reply Last reply Reply Quote 0
              • L
                LucaTo last edited by

                @JorgeOliveira:

                Suhosin depends on Session to correctly load.
                Session must always be loaded first, and Suhosin will load after.

                My guess is that session.so entry:```
                extension=session.so

                
                Other alternative would be renaming extensions.ini to ext-10-extensions.ini to force those extensions to load first.
                

                In this case it seems not related to "extension=session.so" load order,
                in fact the issue persist even if placed first:

                extension=session.so
                extension=bcmath.so
                extension=bz2.so
                extension=ctype.so
                extension=dom.so
                extension=filter.so
                extension=hash.so
                extension=json.so
                extension=ldap.so
                extension=mbstring.so
                extension=mcrypt.so
                extension=openssl.so
                extension=pcntl.so
                extension=pdo.so
                extension=pfSense.so
                extension=posix.so
                extension=readline.so
                extension=shmop.so
                extension=simplexml.so
                extension=sockets.so
                extension=sysvmsg.so
                extension=sysvsem.so
                extension=sysvshm.so
                extension=tokenizer.so
                extension=xml.so
                extension=xmlreader.so
                extension=xmlwriter.so
                extension=zlib.so
                zend_extension=/usr/local/lib/php/20131226/opcache.so
                
                1 Reply Last reply Reply Quote 0
                • J
                  JorgeOliveira last edited by

                  Because extensions.ini always loads in the end! ext-30-suhosin.ini takes priority.
                  PR'ed on GitHub: https://github.com/pfsense/pfsense/pull/3178

                  Edit: I've removed my previous post as it is no longer relevant.

                  My views have absolutely no warranty express or implied. Always do your own research.

                  1 Reply Last reply Reply Quote 0
                  • rbgarga
                    rbgarga Developer Netgate Administrator last edited by

                    New PHP packages, 5.6.26_1 are being built right now. They will fix all these issues with extensions

                    Renato Botelho

                    1 Reply Last reply Reply Quote 0
                    • L
                      LucaTo last edited by

                      @Renato:

                      New PHP packages, 5.6.26_1 are being built right now. They will fix all these issues with extensions

                      Yes!

                      pkg upgrade -f php-suhosin
                      

                      from console and error goes away!  ;D

                      1 Reply Last reply Reply Quote 0
                      • P
                        Paint last edited by

                        @Renato:

                        New PHP packages, 5.6.26_1 are being built right now. They will fix all these issues with extensions

                        Thank you so much!

                        Running the following commands resolves the problem:

                        pkg update
                        pkg upgrade -f php-suhosin
                        pkg upgrade
                        

                        The patch essentially removes the extensions.ini file and replaces it with individual module files so that pfSense can explicitly control the php load order:

                        [2.3.3-DEVELOPMENT][root@pfSense.pf.lan]/~/: ls -l /usr/local/etc/php
                        total 156
                        -rw-r--r--  1 root  wheel  26 Oct  7 07:35 ext-10-opcache.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-18-session.ini
                        -rw-r--r--  1 root  wheel  20 Oct  7 07:35 ext-20-bcmath.ini
                        -rw-r--r--  1 root  wheel  17 Oct  7 07:35 ext-20-bz2.ini
                        -rw-r--r--  1 root  wheel  19 Oct  7 07:35 ext-20-ctype.ini
                        -rw-r--r--  1 root  wheel  18 Oct  7 07:35 ext-20-curl.ini
                        -rw-r--r--  1 root  wheel  17 Oct  7 07:35 ext-20-dom.ini
                        -rw-r--r--  1 root  wheel  20 Oct  7 07:35 ext-20-filter.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-gettext.ini
                        -rw-r--r--  1 root  wheel  18 Oct  7 07:35 ext-20-hash.ini
                        -rw-r--r--  1 root  wheel  18 Oct  7 07:35 ext-20-json.ini
                        -rw-r--r--  1 root  wheel  18 Oct  7 07:35 ext-20-ldap.ini
                        -rw-r--r--  1 root  wheel  22 Oct  7 07:35 ext-20-mbstring.ini
                        -rw-r--r--  1 root  wheel  20 Oct  7 07:35 ext-20-mcrypt.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-openssl.ini
                        -rw-r--r--  1 root  wheel  19 Oct  7 07:35 ext-20-pcntl.ini
                        -rw-r--r--  1 root  wheel  17 Oct  7 07:35 ext-20-pdo.ini
                        -rw-r--r--  1 root  wheel  21 Oct  6 09:27 ext-20-pfSense.ini
                        -rw-r--r--  1 root  wheel  19 Oct  7 07:35 ext-20-posix.ini
                        -rw-r--r--  1 root  wheel  20 Oct  6 09:21 ext-20-radius.ini
                        -rw-r--r--  1 root  wheel  22 Oct  7 07:35 ext-20-readline.ini
                        -rw-r--r--  1 root  wheel  17 Oct  6 09:28 ext-20-rrd.ini
                        -rw-r--r--  1 root  wheel  19 Oct  7 07:35 ext-20-shmop.ini
                        -rw-r--r--  1 root  wheel  23 Oct  7 07:35 ext-20-simplexml.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-sockets.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-sqlite3.ini
                        -rw-r--r--  1 root  wheel  18 Oct  6 09:21 ext-20-ssh2.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-sysvmsg.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-sysvsem.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-20-sysvshm.ini
                        -rw-r--r--  1 root  wheel  23 Oct  7 07:35 ext-20-tokenizer.ini
                        -rw-r--r--  1 root  wheel  25 Oct  6 09:20 ext-20-xdebug.ini
                        -rw-r--r--  1 root  wheel  17 Oct  7 07:35 ext-20-xml.ini
                        -rw-r--r--  1 root  wheel  23 Oct  7 07:35 ext-20-xmlwriter.ini
                        -rw-r--r--  1 root  wheel  18 Oct  7 07:35 ext-20-zlib.ini
                        -rw-r--r--  1 root  wheel  17 Oct  6 09:26 ext-20-zmq.ini
                        -rw-r--r--  1 root  wheel  24 Oct  7 07:35 ext-30-pdo_sqlite.ini
                        -rw-r--r--  1 root  wheel  21 Oct  7 07:35 ext-30-suhosin.ini
                        -rw-r--r--  1 root  wheel  23 Oct  7 07:35 ext-30-xmlreader.ini
                        
                        

                        pfSense i5-4590
                        940/880 mbit Fiber Internet from FiOS
                        BROCADE ICX6450 48Port L3-Managed Switch w/4x 10GB ports
                        Netgear R8000 AP (DD-WRT)

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post