Skip to content

Commit f415ba6

Browse files
committed
Disable asan instrumentation for phpdbg_watchpoint_userfaultfd_thread
On gcc. It reports a false positive stack-overflow. Closes GH-10818
1 parent 9030a0c commit f415ba6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sapi/phpdbg/phpdbg_watch.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ int phpdbg_watchpoint_segfault_handler(siginfo_t *info, void *context) {
306306
}
307307

308308
#ifdef HAVE_USERFAULTFD_WRITEFAULT
309+
# if defined(__GNUC__) && !defined(__clang__)
310+
__attribute__((no_sanitize_address))
311+
# endif
309312
void *phpdbg_watchpoint_userfaultfd_thread(void *phpdbg_globals) {
310313
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
311314
zend_phpdbg_globals *globals = (zend_phpdbg_globals *) phpdbg_globals;

0 commit comments

Comments
 (0)