|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68527 iterator_to_array causing segfaults
Submitted: 2014-11-30 13:29 UTC Modified: 2014-12-30 10:43 UTC
From: sjaillet at gmail dot com Assigned:
Status: No Feedback Package: SPL related
PHP Version: Irrelevant OS: Ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-11-30 13:29 UTC] sjaillet at gmail dot com
During the past 12 months we experienced some weird segfaults issue. We worked on a project with a of tests and our CI proccess kept segfaulting randomly again and again. Adding an echo somewhere in the code make it suddenly pass for an unknown reason. This error occured on PHP 5.4 as well as PHP 5.5 and on many different platforms (essentially Ubuntu & Mac).

Since we experienced some segfault issues by using the SPL library in the past we decided to remove the couple of `iterator_to_array()` references in our code base.

And now 2 months later we didn't experienced any more segfaults during our CI proccess.

Due to the random aspect of the issue I wasn't able to produce a deterministic test script but wanted to share this experience in case of it can help other people.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-01 00:29 UTC]
-Status: Open +Status: Feedback
 [2014-12-01 00:29 UTC]
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 for *NIX and 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.

 [2014-12-30 10:43 UTC] php-bugs 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-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 05:05:46 2022 UTC