ID: 14151
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: OCI8 related
Operating System: Linux Red Hat 7.2
PHP Version: 4.0.6
New Comment:

I followed backtrace report Instructions:
First:    I stop apache server by using following comand under root privilage
#/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl stop: httpd stopped

Second Under root privilage run httpd - X under gdb with:

#gdb /usr/local/apache/bin/httpd
GNU gdb Red Hat Linux (5.1-1)
Copyright 2001 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-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
[New Thread 1024 (LWP 1971)]




After that I use web browser and access server to force the crash. I am surprised that 
I can connect with oracle server well. The only thing is  
the speed for access web is very slow. There is no gdb prompt appear, and 
there is no any message indication that there is a crash.


Following is php script to authorize into oracle:

/************************* Global Vars ******************************/
$user  = "xxxx";
$pswd  = "xxx";
$dbase = "(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = hermes.campus.uidaho.edu)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oracle.campus.uidaho.edu)
    )
  )"; 


function dbConnect()
{
    global $user, $pswd, $dbase;
    $con = OCILogon($user, $pswd, $dbase);
    
    if( OCIError($con) )
        ErrorAndExit( "Could not create connection to the database." );
    else
        return $con;
}




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

[2001-12-21 14:05:20] [EMAIL PROTECTED]

Can you generate a backtrace? (http://bugs.php.net/bugs-generating-backtrace.php)

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

[2001-12-21 13:01:41] [EMAIL PROTECTED]

If you visit from following URL:
http://kellinux.cs.uidaho.edu/cs461/login.php 
you can find php can access my oracle9i EE database well. The php script on this 
machine(kellinux.cs.uidaho.edu)  is the same one from previous machine 
(hermes.campus.uidaho.edu). They both visit the Oracle9i database server on  
hermes.campus.uidaho.edu.



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

[2001-12-21 12:45:49] [EMAIL PROTECTED]

Yesterday I installed/Compiled Php4.1.0 with Oracle9i on Linux Red Hat 7.2 (kernel 
2.4.7-10). All the installation work perfect, however when I connect with oracle 
database from netscape brower. The brower still popups a error window:

Netscape: Error
The documentation contained on data.
Try again later, or contact the server's administrator.

Check apache error_log:


[Fri Dec 21 09:14:46 2001] [notice] child pid 4972 exit signal Segmentation fault (11)
[Fri Dec 21 09:14:46 2001] [notice] child pid 2728 exit signal Segmentation fault (11)
[Fri Dec 21 09:16:21 2001] [notice] child pid 2726 exit signal Segmentation fault (11)
[Fri Dec 21 09:16:45 2001] [notice] child pid 4975 exit signal Segmentation fault (11)
[Fri Dec 21 09:16:45 2001] [notice] child pid 4974 exit signal Segmentation fault (11)
[Fri Dec 21 09:16:59 2001] [notice] child pid 5600 exit signal Segmentation fault (11)
[Fri Dec 21 09:16:59 2001] [notice] child pid 2729 exit signal Segmentation fault (11)
[Fri Dec 21 09:17:29 2001] [notice] child pid 2725 exit signal Segmentation fault (11)
[Fri Dec 21 09:17:29 2001] [notice] child pid 2724 exit signal Segmentation fault (11)
[Fri Dec 21 09:17:44 2001] [notice] child pid 5607 exit signal Segmentation fault (11)
[Fri Dec 21 09:17:44 2001] [notice] child pid 2727 exit signal Segmentation fault (11)
[Fri Dec 21 09:18:40 2001] [notice] child pid 5611 exit signal Segmentation fault (11)
[Fri Dec 21 09:18:40 2001] [notice] child pid 5608 exit signal Segmentation fault (11)
[Fri Dec 21 09:19:13 2001] [notice] child pid 5612 exit signal Segmentation fault (11)

Apache 1.3.19 was installed with libpthread,
 check "ldd /usr/local/apache/bin/httpd":
 libpthread.so.0 => /lib/i686/libpthread.so.0 (0x4002f000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40044000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40067000)
        libdb.so.2 => /usr/lib/libdb.so.2 (0x40094000)
        libdl.so.2 => /lib/libdl.so.2 (0x400a2000)
        libc.so.6 => /lib/i686/libc.so.6 (0x400a6000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

check "httpd -l" of apache configuration:
Compiled-in modules:
  http_core.c
  mod_so.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec


You may find my php 4.1.0 information from following URL:
http://hermes.campus.uidaho.edu/project/liao.php

If you visit following URL:
http://hermes.campus.uidaho.edu/project/login.php
you can see what happens to php!

If I visited same php scripts  located on another machine with php4.0.4 (complied with 
oracle8). The same php scripts can access data from my current oracle9iEE database 
server. It means that my current oracle9i EE server is working well and can 
communicate with php4.0.4 without any problem.

 
Please give me some suggestion about the error.

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

[2001-12-13 06:29:33] [EMAIL PROTECTED]

No feedback. Closing.

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

[2001-11-21 12:50:57] [EMAIL PROTECTED]

Check this manual page:

http://www.php.net/manual/en/ref.oci8.php

And especially the part about linking Apache with libpthread.

--Jani


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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=14151


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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to