php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64044 Segmentation fault
Submitted: 2013-01-22 12:53 UTC Modified: 2014-12-30 10:41 UTC
Votes:7
Avg. Score:4.3 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:2 (28.6%)
From: fjbejarano at gmail dot com Assigned:
Status: No Feedback Package: expect (PECL)
PHP Version: 5.3.21 OS: GNU\Linux CentOS 6.3 64bits
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-01-22 12:53 UTC] fjbejarano at gmail dot com
Description:
------------
Hi

I have installed expect extension (0.3.1, 0.3.0, 0.2.9) with php 5.3.21 and expect 5.44.1.15 for CentOS 6.3 64 bits.

I do it with pecl and with manual compilation but in all cases I obtain a segmentation fault.

kernel: php[30886]: segfault at 191 ip 00007fbd6ce51556 sp 00007fff7349c060 error 4 in expect.so[7fbd6ce4f000+3000]

With gdb 

(gdb) run -i
Starting program: /usr/local/php/bin/php -i
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffed551700 (LWP 919)]
[Thread 0x7fffed551700 (LWP 919) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffedcb3556 in OnSetExpectLogFile (entry=0x13d1c60, new_value=0x7fffedcb3843 "", new_value_length=0, mh_arg1=0x0, mh_arg2=0x0, mh_arg3=0x0, stage=1, tsrm_ls=0x107b0e0)
    at /tmp/pear/temp/expect/expect.c:130
130     /tmp/pear/temp/expect/expect.c: No existe el fichero o el directorio.
        in /tmp/pear/temp/expect/expect.c


Regards



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-11 18:14 UTC] acool dot development at 10-network dot net
CentOS release 6.2 (Final) 64
PHP Version 5.3.16 & 5.3.22
httpd log:
[Mon Mar 11 10:36:21.034469 2013] [mpm_event:notice] [pid 16213:tid 140307566720768] AH00491: caught SIGTERM, shutting down

I tried Expect 0.3.1 and 0.3.0 ; httpd and php starts working if I remove extension=expect.so in php.ini

[root@developing sources]# /webserver/programs/bin/php -m
Segmentation fault (core dumped)
 [2014-04-26 02:28 UTC] jason dot rohm at srctechnologies dot com
I have two very similar machines. One is experiencing the issue and the other is not. Hopefully the differences can narrow the cause:

Functioning system:

uname -a
Linux <removed> 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

php -version
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

expect -version
expect version 5.44.1.15


Failing system:

uname -a
Linux <removed> 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

php -version
PHP 5.3.28 (cli) (built: Apr 25 2014 19:18:18)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

expect -version
expect version 5.43.0
 [2014-04-27 12:37 UTC] michael@php.net
-Status: Open +Status: Feedback
 [2014-04-27 12:37 UTC] michael@php.net
Hi!

Can you provide all the php.ini settings related to the PHP expect extension? Is expect.logfile defined?

Thanks,
Michael
 [2014-07-17 09:48 UTC] git at duncanc dot co dot uk
I have no expect settings in php.ini, but I set the following at runtime

ini_set("expect.timeout",-1);
ini_set("expect.loguser","Off");
 [2014-07-20 16:33 UTC] michael@php.net
Hi,

Can you post your PHP.ini file here?

Thanks,
Michael
 [2014-08-07 12:12 UTC] git at duncanc dot co dot uk
Sure...

http://pastebin.com/N60X7TES
 [2014-12-30 10:41 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 09:01:31 2019 UTC