ID:               23665
 Comment by:       s dot vanvelthem at ibelgique dot com
 Reported By:      dm at zamang dot co dot uk
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: SCO OpenServer 5.0.6
 PHP Version:      4.3.2RC3 / RC4
 New Comment:

Seems to be resolved.

I've just downloaded the latest php stable release today and upgraded
gcc-2.95 to gcc-2.95.2pl1. No segfault anymore.

I don't know if upgrading to gcc_pl1 solves the problem or if the
latest-stable release brough the correction.


Previous Comments:
------------------------------------------------------------------------

[2003-06-30 09:18:10] dm at zamang dot co dot uk

Just tried php4-STABLE-200306301330

bash-2.03£ gdb ./php ./core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-pc-sco3.2v5.0.5"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.2...done.
Loaded symbols for /usr/lib/libsocket.so.2
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libresolv.so.1...done.
Loaded symbols for /usr/lib/libresolv.so.1
£0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
(gdb) bt
£0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
£1  0x80073d00 in pathcanon () from /usr/lib/libsocket.so.2
£2  0x80073fe0 in realpath () from /usr/lib/libsocket.so.2
£3  0x80cc6e8 in php_execute_script (primary_file=0x8047cd8)
    at /src/php4-STABLE-200306301330/main/main.c:1652
£4  0x8118b7c in main (argc=1, argv=0x8047d20)
    at /src/php4-STABLE-200306301330/sapi/cgi/cgi_main.c:1542
£5  0x8059d2b in _start ()
(gdb)


GCC  version is 2.95.2
Make version is 3.78.1

------------------------------------------------------------------------

[2003-06-29 20:22:07] [EMAIL PROTECTED]

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



------------------------------------------------------------------------

[2003-05-25 05:44:28] dm at zamang dot co dot uk

Just downloaded RC4 and tried again.

./configure --prefix=/usr/local/php-4.3.2RC4 --disable-all
--enable-sysvsem --enable-sysvshm --enable-debug

Everything ran though as before but running php from RC4 gave a
segfault.

bash-2.03# gdb ./php ./core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-pc-sco3.2v5.0.5"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.2...done.
Loaded symbols for /usr/lib/libsocket.so.2
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libresolv.so.1...done.
Loaded symbols for /usr/lib/libresolv.so.1
#0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
(gdb) bt
#0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
#1  0x80073d00 in pathcanon () from /usr/lib/libsocket.so.2
#2  0x80073fe0 in realpath () from /usr/lib/libsocket.so.2
#3  0x80cc490 in php_execute_script (primary_file=0x8047cc4)
    at /src/php-4.3.2RC4/main/main.c:1638
#4  0x8118560 in main (argc=1, argv=0x8047d0c)
    at /src/php-4.3.2RC4/sapi/cgi/cgi_main.c:1504
#5  0x8059ceb in _start ()
(gdb)

------------------------------------------------------------------------

[2003-05-19 19:53:42] [EMAIL PROTECTED]

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



------------------------------------------------------------------------

[2003-05-16 16:17:19] dm at zamang dot co dot uk

Compilation attempted on SCO OpenServer 5.0.6 with the following
configure line:

./configure --prefix=/usr/local/php-4.3.1 --disable-all
--enable-sysvsem --enable-sysvshm --enable-debug

The compilation appears to successfully complete and 
Installation takes an age, this seems to be down to the php program in
/sapi/cli segfaulting.  Any attempt to use any of the compiled 'php'
programs also results in a segfault. Once installed the same problem
occurs. Following is a back trace using gdb.

    bash-2.03# ./php
    Segmentation Fault (core dumped)
    bash-2.03# pwd
    /usr/local/php-4.3.2RC3/bin
    bash-2.03# gdb ./php ./core
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License,
and you are
    welcome to change it and/or distribute copies of it under certain
conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for
details.
    This GDB was configured as "i386-pc-sco3.2v5.0.5"...
    Core was generated by `php'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib/libsocket.so.2...done.
    Loaded symbols for /usr/lib/libsocket.so.2
    Reading symbols from /usr/lib/libc.so.1...done.
    Loaded symbols for /usr/lib/libc.so.1
    Reading symbols from /usr/lib/libresolv.so.1...done.
    Loaded symbols for /usr/lib/libresolv.so.1
    #0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
    (gdb) bt
    #0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
    #1  0x80073d00 in pathcanon () from /usr/lib/libsocket.so.2
    #2  0x80073fe0 in realpath () from /usr/lib/libsocket.so.2
    #3  0x80cc490 in php_execute_script (primary_file=0x8047d10)
        at /src/php-4.3.2RC3/main/main.c:1651
    #4  0x8118560 in main (argc=1, argv=0x8047d58)
        at /src/php-4.3.2RC3/sapi/cgi/cgi_main.c:1498
    #5  0x8059d1b in _start ()
    (gdb)

This system has successfully compiled, and is running, 4.2.3 and I've
not experienced any problems compiling up previous versions (4.1.X).

I was planning on skipping 4.3.1, but after 4.3.2RC3 failed I tried it
and got a similar problem with it. I've attached the backtrace for it
just in case.

    bash-2.03# pwd
    /usr/local/php-4.3.1/bin
    bash-2.03# ./php
    Segmentation Fault (core dumped)
    bash-2.03# gdb ./php ./core
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License,
and you are
    welcome to change it and/or distribute copies of it under certain
conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for
details.
    This GDB was configured as "i386-pc-sco3.2v5.0.5"...
    Core was generated by `php'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib/libsocket.so.2...done.
    Loaded symbols for /usr/lib/libsocket.so.2
    Reading symbols from /usr/lib/libc.so.1...done.
    Loaded symbols for /usr/lib/libc.so.1
    Reading symbols from /usr/lib/libresolv.so.1...done.
    Loaded symbols for /usr/lib/libresolv.so.1
    #0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
    (gdb) bt
    #0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
    #1  0x80073d00 in pathcanon () from /usr/lib/libsocket.so.2
    #2  0x80073fe0 in realpath () from /usr/lib/libsocket.so.2
    #3  0x80ca83c in php_execute_script (primary_file=0x8047d1c)
        at /src/php-4.3.1/main/main.c:1539
    #4  0x8114c58 in main (argc=1, argv=0x8047d64)
        at /src/php-4.3.1/sapi/cgi/cgi_main.c:1424
    #5  0x8059b4b in _start ()
    (gdb)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23665&edit=1

Reply via email to