Segmentation fault on EventHttpRequest->free() with body

Issue #4 duplicate
First Last created an issue

issue #3 closed, but I've notice related bug.

Segmentation fault appears after $req->free(), if request contains body. I've imitated it in attached script

Comments (4)

  1. Ruslan Osmanov repo owner

    Hmm, can't reproduce:

    $ php -n -dextension=event.so http.php
    0 -> 524288
    1 -> 524288
    2 -> 524288
    3 -> 524288
    ...
    
    2054 -> 524288
    2055 -> 524288
    2056 -> 524288
    

    Did you run this with the latest git version? Here is an output on my x86_64 Gentoo:

    $ php -n -dextension=event.so --ri event
    
    event
    
    Event support => enabled
    Sockets support => enabled
    Debug support => enabled
    Extra functionality support including HTTP, DNS, and RPC => enabled
    OpenSSL support => enabled
    Thread safety support => disabled
    Extension version => 1.9.2
    libevent2 headers version => 2.0.21-stable
    
    $ php --version
    PHP 5.4.26-pl0-gentoo (cli) (built: Apr  9 2014 10:14:49) (DEBUG)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
        with XCache v3.0.1, Copyright (c) 2005-2013, by mOo
        with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
        with XCache Optimizer v3.0.1, Copyright (c) 2005-2013, by mOo
        with XCache Cacher v3.0.1, Copyright (c) 2005-2013, by mOo
        with XCache Coverager v3.0.1, Copyright (c) 2005-2013, by mOo
    
  2. Log in to comment