|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59373 expect_expectl segfault
Submitted: 2010-08-18 10:19 UTC Modified: 2010-08-18 10:21 UTC
From: jerome at despatis dot com Assigned:
Status: Duplicate Package: expect (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jerome at despatis dot com
New email:
PHP Version: OS:


 [2010-08-18 10:19 UTC] jerome at despatis dot com
While executing the example on:

The script segfaults

Even if I change the fopen line with:
$stream = expect_popen("scp user@remotehost:/var/log/messages /home/user/messages.txt");

Backtrace is:

Program received signal SIGSEGV, Segmentation fault.
0x00953685 in exp_printify () from /usr/lib/

(gdb) bt
#0  0x00953685 in exp_printify () from /usr/lib/
#1  0x00952cfc in ?? () from /usr/lib/
#2  0x0095301c in exp_expectv () from /usr/lib/
#3  0x0092c617 in zif_expect_expectl (ht=2, return_value=0x892a614, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
    at /tmp/pear/download/expect-0.2.6/expect.c:290
#4  0x0835d26a in ?? ()
#5  0x08333d8e in execute ()
#6  0x08309fa6 in zend_execute_scripts ()
#7  0x082ae754 in php_execute_script ()
#8  0x083a0c28 in ?? ()
#9  0x00649bd6 in __libc_start_main (main=0x839f2a0, argc=2, ubp_av=0xbffff3b4, init=0x83a1cd0 <__libc_csu_init>, 
    fini=0x83a1cc0 <__libc_csu_fini>, rtld_fini=0x11e0c0 <_dl_fini>, stack_end=0xbffff3ac) at libc-start.c:226
#10 0x0806b171 in _start ()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-18 10:21 UTC] spektom at gmail dot com
Duplicate with #17902
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 18 23:01:25 2021 UTC