Making meaning of the Pfsense Crash Report
-
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.
-
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.
Does that help?
-
Look like this: https://redmine.pfsense.org/issues/15190
-
@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
-
@stephenw10 said in Making meaning of the Pfsense Crash Report:
Look like this: https://redmine.pfsense.org/issues/15190
yeah looks similar
-
@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
-
i see got it, thanks