Skip to content

NULL value for web/secure/base_url generates a SEGSERV error #32599

Open
@hd-jeroen

Description

@hd-jeroen

Preconditions (*)

  1. Magento 2.4.2
  2. PHP 7.3 or PHP 7.4 through FPM
  3. MySQL 8.0

Steps to reproduce (*)

  1. Set the value for web/secure/base_url in core_config_data table to NULL
  2. Flush all Magento caches
  3. Refresh the website

Expected result (*)

  1. An exception being thrown telling the store URL is invalid

Actual result (*)

  1. PHP-FPM runs into an error and throws a SEGSERV exception
[25-Mar-2021 13:46:59] NOTICE: [pool www] child 2842 started
[25-Mar-2021 13:47:07] WARNING: [pool www] child 2839 exited on signal 11 (SIGSEGV) after 13.986447 seconds from start

Additional info

In our case, due to a human error the database field for web/secure/base_url got set to NULL. I agree that this shouldn't usually happen, but it did.

I spent ages looking into the issue, since Magento CLI as well as the webpage, started throwing SIGSERV errors, meaning that PHP was trying to access an invalid memory pointer. This has been traced back to the erroneous configuration setting.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: UrlIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions