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

    Making meaning of the Pfsense Crash Report

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 283 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.
    • D
      denitrosubmena
      last edited by

      This is second time am getting this crash report on pfsense so decided to post it here to understand what is going on

      Evaluating Pfsense currently so trying to understand why and how this is happening

      Crash report begins.  Anonymous machine information:
      
      amd64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec  6 20:45:47 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F
      
      Crash report details:
      
      PHP Errors:
      [12-Sep-2024 04:04:16 America/Chicago] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
      Stack trace:
      #0 {main}
        thrown in /usr/local/www/rrd_fetch_json.php on line 149
      
      
      
      No FreeBSD crash data found.
      

      722b538f-f124-41bd-96ff-171c261a9b88-image.png

      J 1 Reply Last reply Reply Quote 0
      • J
        jrey @denitrosubmena
        last edited by jrey

        @denitrosubmena

        Would be helpful to know what you are doing when this happens.

        The error "Unsupported operand type: string - null"
        simply suggests that the line of code has tried to process a string that has nothing in it (null) and that is unsupported (the function can not deal with/ does not expect a null string). When the errors is not trapped gracefully, you get this report.

        the specific line 149 seems to be this

         $end -= $resolution;
        

        there is no such thing as a negative value for "null" - can't be done -- error
        The question then will be why is "resolution" a null (string) in the first place.

        Interesting enough - I can generate the same error by doing this.

        Monitoring selecting a "custom" time range for a graph and trying to submit the form with one (or more) of the fields empty (null)

        
        PHP {$errortype}s
        
            PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 149, Message: Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
            Stack trace:
            #0 {main}
            thrown @ 2024-09-14 06:48:32
            PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 149, Message: Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
            Stack trace:
            #0 {main}
            thrown @ 2024-09-14 06:48:49
            PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 149, Message: Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
            Stack trace:
            #0 {main}
            thrown @ 2024-09-14 06:48:50
            PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 149, Message: Uncaught TypeError: Unsupported operand types: string - null in /usr/local/www/rrd_fetch_json.php:149
            Stack trace:
            #0 {main}
            thrown @ 2024-09-14 06:49:29
        

        it does display an error on the screen and continues so you can enter a value, but it also throws the "crash report"

        If you have selected this and any of the fields are empty when you "Update Graph" you have a null value.
        Screen Shot 2024-09-14 at 7.09.15 AM.png

        Does that help?

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

          Look like this: https://redmine.pfsense.org/issues/15190

          D 1 Reply Last reply Reply Quote 2
          • D
            denitrosubmena @jrey
            last edited by

            @jrey said in Making meaning of the Pfsense Crash Report:

            Would be helpful to know what you are doing when this happens.

            I was not doing anything, i just checked the dashboard and i alert notification about the crash report

            could this be some exploit attack of some sort? i do have rules to restrict access but who knows what these attackers can do

            J 1 Reply Last reply Reply Quote 0
            • D
              denitrosubmena @stephenw10
              last edited by

              @stephenw10 said in Making meaning of the Pfsense Crash Report:

              Look like this: https://redmine.pfsense.org/issues/15190

              yeah looks similar

              1 Reply Last reply Reply Quote 0
              • J
                jrey @denitrosubmena
                last edited by

                @denitrosubmena said in Making meaning of the Pfsense Crash Report:

                could this be some exploit attack of some sort

                Nope no attack - just a little code bug, as described. The redmine link @stephenw10 shared has the fix, if you need it.

                I was just trying help you with this part of your original question -

                understand what is going on

                D 1 Reply Last reply Reply Quote 1
                • D
                  denitrosubmena @jrey
                  last edited by

                  @jrey

                  i see got it, thanks

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.