Skip to content

ext/standard/tests/streams/bug46024.phpt ASAN leak #11077

Closed
@mvorisek

Description

@mvorisek

Description

see f4ede23 -> https://cirrus-ci.com/task/4892184093130752

========DIFF========
     resource(%d) of type (process)
     bool(true)
     bool(true)
004+ 
005+ =================================================================
006+ ==213738==ERROR: LeakSanitizer: detected memory leaks
007+ 
008+ Direct leak of 2560 byte(s) in 1 object(s) allocated from:
009+     #0 0x681d7d in malloc (/tmp/cirrus-ci-build/sapi/cli/php+0x681d7d)
010+     #1 0x45345b4 in __zend_malloc /tmp/cirrus-ci-build/Zend/zend_alloc.c:3116:14
011+     #2 0x48adf3f in zend_hash_real_init_mixed_ex /tmp/cirrus-ci-build/Zend/zend_hash.c:175:10
012+     #3 0x48adb7a in zend_hash_real_init_mixed /tmp/cirrus-ci-build/Zend/zend_hash.c:342:2
013+     #4 0x48d03e0 in _zend_hash_add_or_update_i /tmp/cirrus-ci-build/Zend/zend_hash.c:769:4
014+     #5 0x48cfc95 in zend_hash_update /tmp/cirrus-ci-build/Zend/zend_hash.c:933:9
015+     #6 0x4900e8f in zend_hash_copy /tmp/cirrus-ci-build/Zend/zend_hash.c:2216:16
016+     #7 0x33bbce9 in php_print_info /tmp/cirrus-ci-build/ext/standard/info.c:962:3
017+     #8 0x5a4e542 in do_cli /tmp/cirrus-ci-build/sapi/cli/php_cli.c:630:5
018+     #9 0x5a4cc14 in main /tmp/cirrus-ci-build/sapi/cli/php_cli.c:1330:18
019+     #10 0x7ff637dbcd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09)
020+ 
021+ SUMMARY: AddressSanitizer: 2560 byte(s) leaked in 1 allocation(s).
========DONE========
FAIL Bug #46024 stream_select() doesn't return the correct number [ext/standard/tests/streams/bug46024.phpt] 

it seems the ASAN leak is not always present, but should be fixed

PHP Version

master, maybe other branches as well

Operating System

IDK

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