re: crash
| From: | Bill Rausch | Date: | Mon, 19 Jun 2000 18:18:53 +0000 |
| Subject: | re: crash | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2226@lists.php.net to get a copy of this message | ||
Miguel Cruz <miguel@firmseek.com> said:
>Subject: More on segfaulting sessions
>
>Here's some code that seems to generate a segfault every time (well,
>beginning with the second time it's run, once the sess_ file has been
>created):
>
><?
>
>function crash()
>{
> global $x, $HTTP_SESSION_VARS;
> session_start();
> session_register('x');
> $x++;
>}
>
>crash();
>print "value is $x";
>
>?>
>
>I distilled it down from a 1000-line PHP file by removing parts until I had
>the shortest program that still killed httpd.
FWIW, my installation on HPUX-10.20 crashes also, so it's not just RedHat
5.1 or Intel cpus.
---
Bill Rausch, Software Development, Unix, Mac, Windows
Numerical Applications, Inc. 509-943-0861 bill@numerical.com