title: PHP segmentation fault caused by php while loop
body: <p>I discovered a way to make php segfault, and I'm a bit curious about what's happening. Maybe someone can explain this for me?</p>
  
  <pre><code>joern@xps:..com/trunk5/tools/nestedset&gt; cat &gt; while.php
  &lt;?php
  while(1){
          die('dd');
  }
  ?&gt;
  ^C
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php   
  ddzsh: segmentation fault  php -f while.php
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  dd%                                                                                                                                                                                 
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  dd%                                                                                                                                                                                 
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  ddzsh: segmentation fault  php -f while.php
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  ddzsh: segmentation fault  php -f while.php
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  dd%                                                                                                                                                                                 
  0 joern@xps:..com/trunk5/tools/nestedset&gt; php -f while.php
  dd%    
  </code></pre>
  
  <p>As you can see, it doesn't happen every time. Php caching?</p>
  
  <pre><code>php5 5.2.10.dfsg.1-2ubuntu6.1
  </code></pre>