Skip to content

seg fault in stream_filter_prepend #19864

Closed as duplicate
Closed as duplicate

Description

@chongwick

Description

The following code:

<?php
$v_52886 = '\n';
$v_52851 = 100;
$v_52852 = str_repeat($v_52886,$v_52851,);
$v_52853 = 'data://text/plain,';
$v_52854 = $v_52853 . $v_52852;
$v_52855 = 'r';
$v_52856 = fopen($v_52854,$v_52855,);
$v_52857 = 'zlib.deflate';
$v_52880 = 2;
$v_52859 = 6;
$v_52860 = stream_filter_prepend($v_52856,$v_52857,$v_52880,$v_52859,);

Resulted in this output:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==2286852==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x7ffd37aa4890 sp 0x7ffd37aa4518 T0)
==2286852==Hint: pc points to the zero page.
==2286852==The signal is caused by a READ memory access.
==2286852==Hint: address points to the zero page.
    #0 0x0  (<unknown module>)
    #1 0x14cbd940151f  (/lib/x86_64-linux-gnu/libc.so.6+0x4251f)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (<unknown module>)
==2286852==ABORTING

PHP Version

nightly

Operating System

22.04

Activity

  1. chongwick commented on Sep 17, 2025

    @chongwick
    Author

    #19705? Could someone double check, please?

  2. devnexen commented on Sep 17, 2025

    @devnexen
    Member

    yes it s a duplicate.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions