Project

General

Profile

Actions

Regression #12111

closed

Crash report message displayed on dashboard. flock() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 166

Added by Andrew Waranowski 3 months ago. Updated 18 days ago.

Status:
Resolved
Priority:
Normal
Category:
PHP Interpreter
Target version:
Start date:
07/07/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
21.09
Release Notes:
Force Exclusion
Affected Version:
2.6.0
Affected Architecture:

Description

I'm not aware of any system crash. Perhaps it's a process crash.
I see this message (image attached to Issue).

We're seeing these messages on our vpn router pair which are both running Dev code. They're currently mismatched on purpose. We're not seeing this anywhere else.

vpn1 is

21.09-DEVELOPMENT (amd64)
built on Thu Jul 01 01:04:08 EDT 2021
FreeBSD 12.2-STABLE

vpn2 is

21.09-DEVELOPMENT (amd64)
built on Fri Jun 18 11:20:37 EDT 2021
FreeBSD 12.2-STABLE

Crash report begins.  Anonymous machine information:
Crash report begins.  Anonymous machine information:

amd64
12.2-STABLE
FreeBSD 12.2-STABLE plus-devel-12-n202562-08f096ce50e pfSense

Crash report details:

PHP Errors:
[02-Jul-2021 15:33:35 CST6CDT] PHP Warning:  flock() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 166
[02-Jul-2021 15:33:35 CST6CDT] PHP Warning:  fclose() expects parameter 1 to be resource, null given in /etc/inc/util.inc on line 167

No FreeBSD crash data found.


Files

screen.jpg (52.9 KB) screen.jpg Andrew Waranowski, 07/07/2021 08:47 AM
Actions #1

Updated by Christian McDonald 3 months ago

Newer versions of PHP now throw a warning if the file handler parameter for flock() and fclose() are null.

PR: https://github.com/pfsense/pfsense/pull/4531/

Actions #2

Updated by Jim Pingle 3 months ago

  • Category changed from Configuration Backend to PHP Interpreter
  • Status changed from New to Pull Request Review
  • Target version changed from Plus-Next to 2.6.0
  • Plus Target Version changed from Plus-Next to 21.09
Actions #3

Updated by Renato Botelho 3 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Christian McDonald

PR has been merged. Thanks!

Actions #4

Updated by Jim Pingle about 1 month ago

  • Tracker changed from Bug to Regression
  • Release Notes changed from Default to Force Exclusion
  • Affected Version set to 2.6.0

Not a problem in a previous release.

Actions #5

Updated by Jim Pingle 18 days ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF