php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16538 session data not consistently stored during startup (10-50% failure rate)
Submitted: 2002-04-10 16:57 UTC Modified: 2002-09-19 12:42 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jerry dot zhao at vanderbilt dot edu Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.2 OS: Solaris 7
Private report: No CVE-ID: None
 [2002-04-10 16:57 UTC] jerry dot zhao at vanderbilt dot edu
We use mysql db as the store for session data. In the past one month or so, I have noticed that Apache generated some "Segmentation fault" or "Bus error" messages. I was finally able to single out the cause of these errors: a couple of php pages using session. When a new session is initiated, the session data is not stored in the mysql db at least 1 out of 5 times, which appears to be related to the segfault/bus errors.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-11 06:22 UTC] sander@php.net
To properly diagnose this bug, 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

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".


 [2002-05-02 10:03 UTC] jerry dot zhao at vanderbilt dot edu
I fixed the session problem by replacing all boolean values with "1" or "0" in the user defined session functions. 

There were still some "bus error" errors and other httpd process related issues, which went away after we upgraded to the latest Apache 1.3.24.
 [2002-05-02 10:21 UTC] yohgaki@php.net
As in Manual, you are supposed to return string type always from read function. Did you do that?
 [2002-05-04 10:27 UTC] jerry dot zhao at vanderbilt dot edu
You are right! I was returning a boolean false instead of "". Now everything works as it should be. Thanks!
 [2002-09-19 12:42 UTC] kalowsky@php.net
as per user statement
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jan 13 09:00:01 2026 UTC