Bug #71144 [Opn]: Sementation fault when using cURL with ZTS

From: Date: Thu, 17 Dec 2015 05:26:21 +0000
Subject: Bug #71144 [Opn]: Sementation fault when using cURL with ZTS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197954@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71144&edit=1 ID: 71144 Updated by: laruence@php.net Reported by: maroszek at gmx dot net Summary: Sementation fault when using cURL with ZTS Status: Open Type: Bug Package: cURL related Operating System: Any PHP Version: 7.0.0 Block user comment: N Private report: N New Comment: Hmm, but dns should be result in the same value . and it must store in a cache line sieze. so I don't think this could be a problem. do you have see any issue of this? Previous Comments: ------------------------------------------------------------------------ [2015-12-16 22:25:40] maroszek at gmx dot net Description: ------------ As stated here: http://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html and here: http://php.net/manual/en/function.curl-setopt.php CURLOPT_DNS_USE_GLOBAL_CACHE is not thread safe. This option should not get enabled by default when ZTS is enabled. And we should not allow the user to set this option, when ZTS is enabled. I attached a patch which fixes both things. Test script: --------------- Just make a lot of random requests in a lot of threads to different domains. After a while the crash will happen. Expected result: ---------------- No crash Actual result: -------------- Crash. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71144&edit=1

« previous php.bugs (#197954) next »