php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22893 session_start() causes apache segfault/crash
Submitted: 2003-03-26 05:34 UTC Modified: 2003-04-23 04:32 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: juvenal dot jr at uol dot com dot br Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.1 OS: Red Hat 7.3
Private report: No CVE-ID: None
 [2003-03-26 05:34 UTC] juvenal dot jr at uol dot com dot br
I'm having a problem here with PHP 4.3.1 and RH 7.3 with the latest packages from RHN (apache-1.3.27-2, glibc-2.2.5-43), and a kernel with SGI XFS patches applied (kernel-2.4.18-4SGI_XFS_1.1). When compiled with --disable-debug, I got the Segmentation fault problem with session_start(), but when I use --enable-debug on compile, the SEGV simply vanishes. I'd like to ask if there is another way to get important info to fix it (I cannot use the --enable-debug version on the production server because I need Zend Optimizer and Zend Debugger, and they only work with the --disable-debug version of PHP).
I'm available to solve this with you, as this is my primary concern now.
I'm waiting your answer.

Cheers,

Juvenal A. Silva Jr.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-26 05:53 UTC] magnus@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And what compiler and version of it are you using ?
 [2003-03-26 06:40 UTC] juvenal dot jr at uol dot com dot br
I tried the standard one with RH 7.3 (gcc-2.96.110) and the updated RHN (gcc-2.96-113). Both gave me the same results.
 [2003-03-26 09:29 UTC] iliaa@php.net
Does the crash occur when you do not use Zend Optimizer and Zend Debugger?
 [2003-03-26 09:30 UTC] magnus@php.net
Try the snapshot.
 [2003-03-26 10:13 UTC] juvenal dot jr at uol dot com dot br
To iliaa@php.net:
It happen with and/or without Zend Optimizer and Debugger.

To magnus@php.net:
I'm compiling it right now. As soon as I test it, I'll put another comment.
 [2003-03-26 10:29 UTC] juvenal dot jr at uol dot com dot br
I just installed the CVS-STABLE snapshot, but the results remain the same. A Segmentation Fault on session_start() only when the file exists (the session was already created).
The problem occurs with and/or without Zend Optimizer/Debugger.
What else can I do try/do?
 [2003-03-27 03:43 UTC] magnus@php.net
What's your configure line ?
 [2003-03-27 06:52 UTC] sniper@php.net
See http://gcc.gnu.org/gcc-2.96.html and upgrade to an official version first..


 [2003-03-27 07:36 UTC] juvenal dot jr at uol dot com dot br
My configure line is:
configure
        --prefix=/usr \
        --with-config-file-path=/etc \
        --disable-debug \
        --enable-pic \
        --disable-rpath \
        --enable-safe-mode \
        --enable-inline-optimization \
        --enable-memory-limit \
        --enable-zend-multibyte \
        --enable-shared \
        --enable-libgcc \
        --enable-sigchild \
        --with-tsrm-pthreads \
        --with-layout=GNU \
        --enable-dbase \
        --enable-bcmath \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-safe-mode \
        --enable-sockets \
        --enable-sysvmsg \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-discard-path \
        --enable-track-vars \
        --enable-trans-sid \
        --enable-yp \
        --enable-wddx \
        --enable-bcmath \
        --enable-shmop \
        --enable-versioning \
        --enable-calendar \
        --enable-dbx \
        --enable-dio \
        --enable-mbstring \
        --enable-mbregex \
        --enable-thread-safety \
        --with-openssl \
        --with-qtdom \
        --with-readline \
        --with-zlib \
        --with-bz2 \
        --with-db3 \
        --with-flatfile \
        --with-curl \
        --with-dom=/usr \
        --with-exec-dir=/usr/bin \
        --with-freetype-dir=/usr \
        --with-png-dir=/usr \
        --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gdbm \
        --with-gettext \
        --with-ncurses \
        --with-gmp \
        --with-iconv \
        --with-jpeg-dir=/usr \
        --with-mm \
        --with-png \
        --with-pspell \
        --with-regex=system \
        --with-xml \
        --with-expat-dir=/usr \
        --with-imap=shared \
        --with-imap-ssl \
        --with-kerberos=/usr/kerberos \
        --with-ldap=shared \
        --with-snmp=shared \
        --enable-ucd-snmp-hack \
        --with-mysql=shared,/usr \
        --with-pgsql=shared \
        --with-unixODBC=shared \
        --with-informix=shared,/opt/informix \
        --enable-force-cgi-redirect \
        --with-apxs=/usr/sbin/apxs
 [2003-03-27 07:47 UTC] juvenal dot jr at uol dot com dot br
To sniper@php.net:

I'm not sure if I can change the compiler to 2.95 or 3.0, since all other packages, including the kernel and glibc main lib where compiled with the gcc 2.96.
It'll be a great effort to change everything, and I'll be out of the standard RH distribution (something that I'm avoiding). Is there another option?
 [2003-03-28 06:50 UTC] juvenal dot jr at uol dot com dot br
Any other options to try? Do you find any fix for this?

Cheers,

Juvenal A. Silva Jr.
 [2003-04-23 04:32 UTC] sniper@php.net
No other options, 2.96 is borked.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 14:01:27 2024 UTC