[PHP] PHP FPM and OCI8 crashes

2011-09-13 Thread linuxsupport
Hi,

Recently, I decided to use PHP FPM, installation went well, I configured it
with Nginx.

I can run php script without any issue.

But when I used a script to connect to Oracle database using oci module, I
got a blank page.

Below is the code I am using in script.

Connection is OK';
}
?>

If I run this script from command line it works well.

---
/usr/local/php/bin/php db_test.php

Connection is ok
--

But when I run it from Web it does not return any thing, I got following
error in FPM log, nothing else.

WARNING: [pool www] child 15712 exited on signal 11 (SIGSEGV) after
3986.160925 seconds from start

It is getting segfault.

Anyone can suggest what could be possible reason.

PHP veriosn 5.3.8


[PHP] PHP FPM and OCI crashes

2011-09-13 Thread linuxsupport
Hi,

Recently, I decided to use PHP FPM, installation went well, I configured it
with Nginx.

I can run php script without any issue.

But when I used a script to connect to Oracle database using oci module, I
got a blank page.

Below is the code I am using in script.

Connection is OK';
}
?>

If I run this script from command line it works well.

---
/usr/local/php/bin/php db_test.php

Connection is ok
--

But when I run it from Web it does not return any thing, I got following
error in FPM log, nothing else.

WARNING: [pool www] child 15712 exited on signal 11 (SIGSEGV) after
3986.160925 seconds from start

It is getting segfault.

Anyone can suggest what could be possible reason.

PHP veriosn 5.3.8


Re: [PHP] PHP FPM and OCI crashes

2011-09-13 Thread linuxsupport
Yes, it is enabled, I checked through phpinfo()

On Tue, Sep 13, 2011 at 2:54 PM, Negin Nickparsa wrote:

> is your oci module enabled in php.ini?
> I mean something like this?
> extension=oci8.so
>


Re: [PHP] PHP FPM and OCI crashes

2011-09-13 Thread linuxsupport
Could you please tell me how to use GDB here?

On Tue, Sep 13, 2011 at 4:07 PM, Negin Nickparsa wrote:

> use gdb
>


Re: [PHP] PHP FPM and OCI crashes

2011-09-13 Thread linuxsupport
I enabled debug in log and found this in the log file

[13-Sep-2011 17:03:19.966801] DEBUG: pid 16974, fpm_got_signal(), line 76:
received SIGCHLD
[13-Sep-2011 17:03:19.966832] WARNING: pid 16974, fpm_children_bury(), line
252: [pool www] child 16992 exited on signal 11 (SIGSEGV) after 58.213448
seconds from start
[13-Sep-2011 17:03:19.967678] NOTICE: pid 16974, fpm_children_make(), line
404: [pool www] child 16996 started


Anyone can suggest me to fix this.

On Tue, Sep 13, 2011 at 5:41 PM, linuxsupport  wrote:

> Could you please tell me how to use GDB here?
>
> On Tue, Sep 13, 2011 at 4:07 PM, Negin Nickparsa wrote:
>
>> use gdb
>>
>
>