Skip to content

PHP extension crashes when "keep_descriptor_pool_after_request" option is enabled #9215

@hakimio

Description

@hakimio

What version of protobuf and what language are you using?
Version: v3.19.1
Language: PHP v7.4

What operating system and version?
Windows 10

What runtime / compiler are you using
NTS Visual C++ 2017 x64 (VC15)

What did you do?
Steps to reproduce the behavior:

  1. Enable keep_descriptor_pool_after_request option
  2. Call some route which uses protobuf
  3. Call the route a second time

What did you expect to see
No crash.

What did you see instead?
The PHP extension is crashing/segfaulting

Anything else we should know about your project / environment
PHP Extension Build: NTS, VC15
Http server: NGINX with php-cgi

@haberman @TeBoring

EDIT: attached compiled extension.
protobuf_x64_vc15_php7.4_nts.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions