php.net |  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
 [2010-08-18 10:19 UTC] jerome at despatis dot com
Description:
------------
While executing the example on:
http://fr2.php.net/manual/fr/function.expect-expectl.php

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/libexpect.so.5.44.1.14

(gdb) bt
#0  0x00953685 in exp_printify () from /usr/lib/libexpect.so.5.44.1.14
#1  0x00952cfc in ?? () from /usr/lib/libexpect.so.5.44.1.14
#2  0x0095301c in exp_expectv () from /usr/lib/libexpect.so.5.44.1.14
#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 ()



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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