Skip to content

SIGSEGV: segmentation violation. Invalid memory address or nil pointer dereference #1269

Description

@SpartakusMd

What happened?

The container started to crash after recent deploy and I'm receiveng SIGSEGV: segmentation violation today. I believe it may be related to the fact that I wanted to increase memory_limit to 3.5G or 3584M. It may also be linked to the fact that there is an env variable which is very long 7700 chars. Or maybe it's related to the new PHP version? Locally it works ok but fails when deployed to Azure Container Apps.

Build Type

Docker (Debian Bookworm)

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

memory_limit=3.5G

or

memory_limit=3584M

Relevant log output

*Note: may not be in corect order

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1558081]
goroutine 17 [running, locked to thread]:
github.com/dunglas/frankenphp.(*phpThread).pinString(...)
/go/src/app/phpthread.go:77
github.com/dunglas/frankenphp.go_getfullenv(0x0?)
/go/src/app/env.go:33 +0xe1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions