php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71643 php7ts.dll crashing when running script that uses pthreads
Submitted: 2016-02-22 10:55 UTC Modified: 2019-04-14 04:22 UTC
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:3 (42.9%)
Same OS:3 (42.9%)
From: intronet1337 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: pthreads (PECL)
PHP Version: 7.0.3 OS: windows 2008
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: intronet1337 at gmail dot com
New email:
PHP Version: OS:

 

 [2016-02-22 10:55 UTC] intronet1337 at gmail dot com
Description:
------------
php - 7.0.3/7.0.2
pthreads - 3.1.4

php.ini:
memory_limit = 3000M
extension=php_pthreads.dll
extension=php_curl.dll
extension=php_openssl.dll
extension=php_mysqli.dll


Test script:
---------------
Test script http://pastebin.com/UA0FgpUK ,not actually working, because I've cutted some parts from working project. Script works from time to time and crashes very often.

Actual result:
--------------
Can't initialize heap: [0x000001e7] Attempt to access invalid address.

Faulting application name: php.exe, version: 7.0.2.0, time stamp: 0x568d8186
Faulting module name: php7ts.dll, version: 7.0.2.0, time stamp: 0x568d8ca4
Exception code: 0xc0000005
Fault offset: 0x0000000000016f2b
Faulting process id: 0x1098
Faulting application start time: 0x01d16b4f0904a1f0
Faulting application path: C:\php7\php.exe
Faulting module path: C:\php7\php7ts.dll
Report Id: f28545f0-d742-11e5-9e7b-fe884bd313a5

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-06 14:57 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-05-06 14:57 UTC] cmb@php.net
Note that the pthreads documentation[1] warns:

| pthreads (v3) can only be used with PHP 7.2+: This is due to ZTS
| mode being unsafe in 7.0 and 7.1.

So please try with a current PHP 7.2.

[1] <http://www.php.net/manual/en/intro.pthreads.php>
 [2018-06-24 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2019-04-05 04:47 UTC] tobias at tromm dot no-ip dot org
I am having the same issue here.

I am using Windows Server 2016, with all updates.

c:\php\php -v
PHP 7.2.12 (cli) (built: Nov  8 2018 05:47:36) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Any updates on that?
 [2019-04-05 06:46 UTC] cmb@php.net
-Status: No Feedback +Status: Feedback
 [2019-04-05 06:46 UTC] cmb@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2019-04-14 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 00:01:25 2019 UTC