Bug #65687 [Com]: oci_connect() fails with "segmentation fault" signal

From: Date: Thu, 01 Oct 2020 16:35:35 +0000
Subject: Bug #65687 [Com]: oci_connect() fails with "segmentation fault" signal
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229321@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65687&edit=1

 ID:                 65687
 Comment by:         bruch at brause dot de
 Reported by:        grig-siren at rambler dot ru
 Summary:            oci_connect() fails with "segmentation fault" signal
 Status:             Duplicate
 Type:               Bug
 Package:            OCI8 related
 Operating System:   Linux
 PHP Version:        Irrelevant
 Assigned To:        sixd
 Block user comment: N
 Private report:     N

 New Comment:

Actually, I just had exactly this in cli php 7.2 with oci8.

PHPStorm got this right after connect:
[2020-10-01 14:50:08] [99999][28011] ORA-28011: Account läuft bald ab; ändern Sie Ihr Kennwort
jetzt

One needs to unset the time limit on the oracle account AND reset the password. Otherwise it will
still show the message and crash with segmentation fault(core dumped).


Previous Comments:
------------------------------------------------------------------------
[2013-09-27 04:10:16] sixd@php.net

Upgrade. I believe this will solve your issues.

------------------------------------------------------------------------
[2013-09-24 08:35:32] grig-siren at rambler dot ru

Bug report #58477 looks like something similar. But I use PHP 5.3.3.

The following is from my phpinfo() result:
OCI8 Support 	enabled
Version 	1.4.5
Revision 	$Revision: 305257 $
Oracle Instant Client Version 	10.2

------------------------------------------------------------------------
[2013-09-23 15:17:45] sixd@php.net

What would be most useful is version numbers of PHP OCI8, the Oracle client 
libraries and the Oracle database.

I thought this crash was fixed long ago. See bugs like 
https://bugs.php.net/bug.php?id=58477 and https://bugs.php.net/bug.php?id=59896

------------------------------------------------------------------------
[2013-09-18 06:21:43] grig-siren at rambler dot ru

Sorry, but I can't do so. To do so I need DBA access rights to Oracle to restore user's
password life time and make this password expired. But I don't have such rights.
But I'm sure the problem is located inside oci_connect() call and execution. To locate it I
have put debugging trigger_error() calls in my script in different places. And when I put
trigger_error() call just before call to oci_connect() and another just after it - then I have got
'before' print in '/var/log/httpd/error_log' and fauilure message just after it.

BTW, when I tried to connect to the same database with another tools (such as SQLDeveloper or
SQL*Plus), I have got message ORA-2800x (sorry, I don't remember the last digit). I think,
oci_connect() receives the same message, but don't expect it, and that's the reason of
failure.

------------------------------------------------------------------------
[2013-09-17 21:47:56] felipe@php.net

Thank you for this bug report. To properly diagnose the problem, 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
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



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


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

    https://bugs.php.net/bug.php?id=65687


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


Thread (7 messages)

« previous php.bugs (#229321) next »