History log of /PHP-8.4/Zend/zend_call_stack.c (Results 1 – 23 of 23)
Revision Date Author Comments
# 062e9f91 23-Aug-2024 Peter Kokot

Remove unused buffer variables (#15550)

These emit warning: unused variable 'buffer'.


# f952263b 22-Aug-2024 Peter Kokot

Fix Solaris 10 build: missing libproc.h (#15525)

The libproc.h header file was added on Solaris as of 11.4.

* Also add guard check to the entire function
* When libproc.h isn't

Fix Solaris 10 build: missing libproc.h (#15525)

The libproc.h header file was added on Solaris as of 11.4.

* Also add guard check to the entire function
* When libproc.h isn't available also sys/procfs.h is redundant
* Move the <sys/lwp.h> out of the guard
* Exclude more stuff from Solaris 10

show more ...


# 2269c060 05-Jul-2024 Arnaud Le Blanc

Fix stack limit under valgrind (#14818)

Valgrind creates a stack mapping that can grow up to RLIMIT_STACK, but the last
page is never useable


# 0bd26021 03-Jul-2024 Arnaud Le Blanc

Fix stack limit on ASAN/MSAN (#14771)

Increase the reserved stack size in ASAN builds, as instrumentation use more stack.
Increase the max allowed stack size in some tests, and enable th

Fix stack limit on ASAN/MSAN (#14771)

Increase the reserved stack size in ASAN builds, as instrumentation use more stack.
Increase the max allowed stack size in some tests, and enable these tests under ASAN.
Use __builtin_frame_address(0), instead of some stack variable, when we need a stack address, as ASAN may store local variables outside of the real stack.

show more ...


# 62bfb01e 10-Jun-2024 Levi Morrison

refactor: zend_call_stack_get_linux_pthread

GCC doesn't pessimize the error cases correctly:
https://godbolt.org/z/Pa6xsKMWc

This speeds up the happy case and in this case the c

refactor: zend_call_stack_get_linux_pthread

GCC doesn't pessimize the error cases correctly:
https://godbolt.org/z/Pa6xsKMWc

This speeds up the happy case and in this case the code size is also
smaller, so it's a double-win.

show more ...


# 159f14c4 08-Jun-2024 Florian Engelhardt

fix memleak due to missing `pthread_attr_destroy()`-call

Closes GH-14510


# 3c65375a 08-Jun-2024 Florian Engelhardt

fix memleak due to missing `pthread_attr_destroy()`-call

Closes GH-14510


# 19c8a10f 09-May-2024 David Carlier

ext/pcntl: add pcntl_getcpu support for solaris.

using getcpuid having similar signature too.

close GH-14188


# 5a043c26 30-Mar-2024 Fabrice Fontaine

Zend/zend_call_stack.c: fix build for Linux/uclibc-ng without pthread.

Fix the following build failure without pthread raised since version
8.3.0 and
https://github.com/php/php-src/c

Zend/zend_call_stack.c: fix build for Linux/uclibc-ng without pthread.

Fix the following build failure without pthread raised since version
8.3.0 and
https://github.com/php/php-src/commit/a11c8a30399e90c17c287b9656c0077bc5131c9c:

/home/buildroot/instance-0/output-1/build/php-8.3.4/Zend/zend_call_stack.c:39:11: fatal error: pthread.h: No such file or directory
39 | # include <pthread.h>
| ^~~~~~~~~~~

Fixes:
- http://autobuild.buildroot.org/results/a4ef648a9da50b26ed56d5d490e4cf5a1bfff970

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Close GH-13843

show more ...


# e3b6872b 04-Mar-2024 David CARLIER

zend call stack adjust case for freebsd to calculate the guard size. (#13586)

it was not wrong but there is a sysctl oid storing the number of guard
pages, which is 1 by default but is m

zend call stack adjust case for freebsd to calculate the guard size. (#13586)

it was not wrong but there is a sysctl oid storing the number of guard
pages, which is 1 by default but is modifiable at runtime.

show more ...


# eaaffae5 16-Feb-2024 David CARLIER

zend_call_stack sort of GH-13358 follow-up. (#13368)

for threaded context, it solely uses a new api only available on
illumos.
Here using a common older api to get the stack info for

zend_call_stack sort of GH-13358 follow-up. (#13368)

for threaded context, it solely uses a new api only available on
illumos.
Here using a common older api to get the stack info for the current
thread.
while at it, completing stack_limit_010 test for these platforms.

show more ...


# 968f048b 08-Feb-2024 Peter Kokot

Fix undefined symbol pthread_attr_get_np on Solaris (#13358)

Solaris doesn't have pthread_attr_get_np().

Checked on Oracle Solaris 11.4.


# b320aabc 03-Feb-2024 David Carlier

zend call stack fixing stack limit for macOs arm64.

8MB sounded a prudent size for older 10.9 macOs release, however
with newer mac with arm64, it triggers a stack overflow.

clo

zend call stack fixing stack limit for macOs arm64.

8MB sounded a prudent size for older 10.9 macOs release, however
with newer mac with arm64, it triggers a stack overflow.

close GH-13319

show more ...


# 09838f17 09-Dec-2023 David CARLIER

zend_call_stack support proposal for solaris/illumos. (#12862)


# 3944bb01 01-Oct-2023 David CARLIER

zend call stack for DragonFlyBSD. (#12325)

Shares the same codepaths as FreeBSD for the most part.


# 14b82704 29-Sep-2023 David CARLIER

zend call stack support for haiku w/o using posix pthread api but the (#12103)

underlying native BeOs one.


# aef52253 08-Jul-2023 David Carlier

zend_call_stack_get implementation for NetBSD.

Despite being OpenBSD's predecessor, the approach is in fact
a lot closer to Linux, at least in principle. We purposely
avoid reading /

zend_call_stack_get implementation for NetBSD.

Despite being OpenBSD's predecessor, the approach is in fact
a lot closer to Linux, at least in principle. We purposely
avoid reading /proc/N/maps to be more future-proof.

Close GH-11637

show more ...


# 6602ddea 23-Jul-2023 David CARLIER

zend call stack fix freebsd code path. (#11766)

The typo in HAVE_PTHREAD_ATTR_GET_STACK (might be due to pthread_attr_get_np being different from Linux's pthread_getattr_np) led to this code

zend call stack fix freebsd code path. (#11766)

The typo in HAVE_PTHREAD_ATTR_GET_STACK (might be due to pthread_attr_get_np being different from Linux's pthread_getattr_np) led to this code path never get called on FreeBSD.

show more ...


# 343b5997 07-Jul-2023 David Carlier

zend call stack, follow-up on 75e9980.

user stack usable implementation for openbsd.

Close GH-11626


# 75e99800 07-Jul-2023 David CARLIER

zend stack: prepare zend_call_stack_get implementation for OpenBSD. (#11578)


# bf1cfc07 16-Jan-2023 Christoph M. Becker

Revert GH-10300

Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.

This reverts commit 68ada76f9a659745f572539b72afa06fa75a866f.
his reverts commit 45384c6

Revert GH-10300

Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.

This reverts commit 68ada76f9a659745f572539b72afa06fa75a866f.
his reverts commit 45384c6e201eda9963e2fcc18946a9446230a2d6.
This reverts commit ef7fbfd71025f034b0bfcb413efd181ce798fc1b.
This reverts commit 9b9ea0d7c696f2990a159b2a2dafbc04547dc10f.
This reverts commit f15747c26be4a2330dc0cf3ea442f53f30f84cac.
This reverts commit e883ba93c40827fafd7868517eb48e04569f76ab.
This reverts commit 7e87551c3775d26e20b06a4032a00053db6452cc.
This reverts commit 921274d2b8966641a00c0a767ae40ba7187bdffc.
This reverts commit fc1f528e5e3ee45ab17ae8dcfad6a6422ff2002d.
This reverts commit 0961715cdafb5d39124667ff94f3b56453ce71f1.
This reverts commit a93f264526e1cdade71d887800c1c448c411bfdc.
This reverts commit 72dd94e1c6d29203b8f6473317f626e6d6d6fbdc.
This reverts commit 29b2dc89645e741f91cc920964432dccd2aaef14.
This reverts commit 05c7653bba7571852f5ce6fc0d220a1a829bc4c0.
This reverts commit 5190e5c260ee05e3f3c3d1168263a1a6637441d0.
This reverts commit 6b55bf228cb2da8705737d414f394950a92d8aae.
This reverts commit 184b4a12d3215d105720d005b31e365249e2eb21.
This reverts commit 4c31b7888a561e920fd3889ba8d99368f3c2d9e6.
This reverts commit d44e9680f080b4918cfed268b96f90ea35975617.
This reverts commit 4069a5c43f419d76e1254c8e49b4cad9968a408f.

show more ...


# 05c7653b 04-Jan-2023 Max Kellermann

Zend/zend_call_stack: include cleanup


# a11c8a30 16-Dec-2022 Arnaud Le Blanc

Limit stack size (#9104)