php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61947 curl Segmentation fault
Submitted: 2012-05-05 04:52 UTC Modified: 2012-05-07 16:08 UTC
From: lynch@php.net Assigned:
Status: Closed Package: cURL related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lynch@php.net
New email:
PHP Version: OS:

 

 [2012-05-05 04:52 UTC] lynch@php.net
Description:
------------
libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

It's PHP 5.1.3, so you may not care, but that's what was handed to me on the GoDaddy server by my client, and I hesitate to upgrade until we take the issue up with GoDaddy first.

In the meantime, since I have a stacktrace with at least some debugging symbols in it, and it specifically mentions Curl_cookie_cleanup, I thought it might be something useful, even if it's an older PHP version.

curl with CURLOPT_COOKIEJAR and CURLOPT_COOKIE file.

I'm using curl_multi functions, so I guess it could be a factor.

I'm hitting the same URL with different cookie files and log files, create with tempnam.

I would assume that using two curl handles with the same cookie file and/or log file would be a Bad Idea.

I have tail all the /tmp/curllog* files.  Some are just empty.  Others have nothing interesting at the end.

I suppose the empty one could be the ones that correspond to the segfaults, but don't quite see how that info would be useful... Unless it narrows down a portion of the code.


Test script:
---------------
Could be this one:
                curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE) or ($errors[] = 'RETURNTRANSFER');
                curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE) or ($errors[] = 'FOLLOWLOCATION');
                curl_setopt($curl, CURLOPT_HEADER, FALSE) or ($errors[] = 'HEADER');
                curl_setopt($curl, CURLOPT_HTTPGET, TRUE) or ($errors[] = 'HTTPGET');
                curl_setopt($curl, CURLOPT_TIMEOUT, 60) or ($errors[] = 'TIMEOUT');
                curl_setopt($curl, CURLOPT_COOKIEFILE, $depart_cookies) or ($errors[] = 'COOKIEFILE');
                curl_setopt($curl, CURLOPT_COOKIEJAR, dirname(__FILE__) . "/$direction.txt") or ($errors[] = 'COOKIEJAR');
                curl_setopt($curl, CURLOPT_VERBOSE, TRUE) or ($errors[] = 'VERBOSE');
                $log = fopen($curllog, 'a+') or ($errors[] = "FOPEN $curllog");
                curl_setopt($curl, CURLOPT_STDERR, $log) or ($errors[] = 'STDERR');

Or it could be that one above with the following changes to the $curl handle:
                curl_setopt($curl, CURLOPT_POST, TRUE);
                curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);

I will try to error_log something in between to narrow it down.


Expected result:
----------------
PHP to not crash.

Actual result:
--------------
*** glibc detected *** /usr/sbin/httpd: free(): corrupted unsorted chunks: 0xb87a8508 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7bbd5a5]
/lib/libc.so.6(cfree+0x59)[0xb7bbd9e9]
/usr/lib/libcurl.so.3[0xb72e37ae]
/usr/lib/libcurl.so.3(Curl_cookie_cleanup+0x3a)[0xb72e391a]
/usr/lib/libcurl.so.3(Curl_close+0x127)[0xb72f44e7]
/usr/lib/libcurl.so.3(curl_easy_cleanup+0x21)[0xb72ff421]
/usr/lib/httpd/modules/libphp5.so[0xb7478e77]
/usr/lib/httpd/modules/libphp5.so(list_entry_destructor+0xa3)[0xb75dd2c3]
/usr/lib/httpd/modules/libphp5.so(zend_hash_del_key_or_index+0x221)[0xb75dc751]
/usr/lib/httpd/modules/libphp5.so(_zend_list_delete+0x8a)[0xb75dd55a]
/usr/lib/httpd/modules/libphp5.so(_zval_dtor_func+0x9a)[0xb75cfefa]
/usr/lib/httpd/modules/libphp5.so(_zval_ptr_dtor+0x78)[0xb75c4598]
/usr/lib/httpd/modules/libphp5.so(zend_hash_destroy+0x47)[0xb75da697]
/usr/lib/httpd/modules/libphp5.so(_zval_dtor_func+0x50)[0xb75cfeb0]
/usr/lib/httpd/modules/libphp5.so(_zval_ptr_dtor+0x78)[0xb75c4598]
/usr/lib/httpd/modules/libphp5.so(zend_hash_destroy+0x47)[0xb75da697]
/usr/lib/httpd/modules/libphp5.so(_zval_dtor_func+0x50)[0xb75cfeb0]
/usr/lib/httpd/modules/libphp5.so(_zval_ptr_dtor+0x78)[0xb75c4598]
/usr/lib/httpd/modules/libphp5.so[0xb75da339]
/usr/lib/httpd/modules/libphp5.so(zend_hash_graceful_reverse_destroy+0x27)[0xb75da5b7]
/usr/lib/httpd/modules/libphp5.so(shutdown_executor+0x485)[0xb75c4d35]
/usr/lib/httpd/modules/libphp5.so(zend_deactivate+0xb3)[0xb75d07b3]
/usr/lib/httpd/modules/libphp5.so(php_request_shutdown+0x243)[0xb758d1e3]
/usr/lib/httpd/modules/libphp5.so[0xb76532dc]
/usr/sbin/httpd(ap_run_handler+0x6d)[0xb7f47a4d]
/usr/sbin/httpd(ap_invoke_handler+0x73)[0xb7f4b413]
/usr/sbin/httpd(ap_process_request+0x1ae)[0xb7f5752e]
/usr/sbin/httpd[0xb7f542cf]
/usr/sbin/httpd(ap_run_process_connection+0x6d)[0xb7f4f94d]
/usr/sbin/httpd(ap_process_connection+0x4c)[0xb7f4fa4c]
/usr/sbin/httpd[0xb7f5be14]
/usr/sbin/httpd[0xb7f5c121]
/usr/sbin/httpd(ap_mpm_run+0x913)[0xb7f5cb23]
/usr/sbin/httpd(main+0x8c7)[0xb7f33157]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7b69e9c]
/usr/sbin/httpd[0xb7f32221]
======= Memory map: ========
b3f78000-b3ff6000 rw-s 00000000 00:86 1055943031                         
b3ff6000-b4037000 rw-p b3ff6000 00:00 0 
b4038000-b40ba000 rw-p b4038000 00:00 0 
b40bb000-b413d000 rw-p b40bb000 00:00 0 
b413e000-b41c0000 rw-p b413e000 00:00 0 
b41c1000-b4243000 rw-p b41c1000 00:00 0 
b4244000-b42c6000 rw-p b4244000 00:00 0 
b42c7000-b4349000 rw-p b42c7000 00:00 0 
b434a000-b43cc000 rw-p b434a000 00:00 0 
b43cc000-b43d3000 rw-s 00000000 00:86 983813129                          
b4404000-b4408000 r-xp 00000000 00:1a 8458390                            /lib/libnss_dns-2.5.so
b4408000-b4409000 r--p 00003000 00:1a 8458390                            /lib/libnss_dns-2.5.so
b4409000-b440a000 rw-p 00004000 00:1a 8458390                            /lib/libnss_dns-2.5.so
b4410000-b44d3000 rw-p b4410000 00:00 0 
b44d3000-b44d6000 r-xp 00000000 00:1a 8440185                            /usr/lib/libgpg-error.so.0.3.0
b44d6000-b44d7000 rw-p 00002000 00:1a 8440185                            /usr/lib/libgpg-error.so.0.3.0
b44d7000-b4555000 r-xp 00000000 00:1a 8440197                            /usr/lib/libgcrypt.so.11.5.2
b4555000-b4558000 rw-p 0007d000 00:1a 8440197                            /usr/lib/libgcrypt.so.11.5.2
b4558000-b458c000 r-xp 00000000 00:1a 8440466                            /usr/lib/libxslt.so.1.1.17
b458c000-b458d000 rw-p 00033000 00:1a 8440466                            /usr/lib/libxslt.so.1.1.17
b458d000-b459e000 r-xp 00000000 00:1a 8440464                            /usr/lib/libexslt.so.0.8.13
b459e000-b459f000 rw-p 00010000 00:1a 8440464                            /usr/lib/libexslt.so.0.8.13
b45a0000-b45a4000 rw-p b45a0000 00:00 0 
b45a4000-b45a5000 rw-s 00000000 00:1a 8457231                            /var/log/httpd/jk-runtime-status.21523
b45a5000-b45ab000 r-xp 00000000 00:1a 8457334                            /usr/lib/php/modules/xsl.so
b45ab000-b45ac000 rw-p 00005000 00:1a 8457334                            /usr/lib/php/modules/xsl.so
b45ac000-b45b3000 r-xp 00000000 00:1a 8457333                            /usr/lib/php/modules/xmlwriter.so
b45b3000-b45b4000 rw-p 00007000 00:1a 8457333                            /usr/lib/php/modules/xmlwriter.so
b45b4000-b4611000 r-xp 00000000 00:1a 8439056                            /usr/lib/libsqlite3.so.0.8.6
b4611000-b4613000 rw-p 0005d000 00:1a 8439056                            /usr/lib/libsqlite3.so.0.8.6
b4613000-b4618000 r-xp 00000000 00:1a 8457330                            /usr/lib/php/modules/xmlreader.so
b4618000-b4619000 rw-p 00005000 00:1a 8457330                            /usr/lib/php/modules/xmlreader.so
b4619000-b461e000 r-xp 00000000 00:1a 8457321                            /usr/lib/php/modules/pdo_sqlite.so
b461e000-b461f000 rw-p 00004000 00:1a 8457321                            /usr/lib/php/modules/pdo_sqlite.so
b461f000-b4625000 r-xp 00000000 00:1a 8457332                            /usr/lib/php/modules/pdo_mysql.so
b4625000-b4626000 rw-p 00005000 00:1a 8457332                            /usr/lib/php/modules/pdo_mysql.so
b4626000-b4639000 r-xp 00000000 00:1a 8457314                            /usr/lib/php/modules/pdo.so
b4639000-b463b000 rw-p 00012000 00:1a 8457314                            /usr/lib/php/modules/pdo.so
b463b000-b46a5000 r-xp 00000000 00:1a 8440427                            /usr/lib/libodbc.so.1.0.0
b46a5000-b46a9000 rw-p 00069000 00:1a 8440427                            /usr/lib/libodbc.so.1.0.0
b46a9000-b46aa000 rw-p b46a9000 00:00 0 
b46aa000-b46b9000 r-xp 00000000 00:1a 8457317                            /usr/lib/php/modules/odbc.so
b46b9000-b46ba000 rw-p 0000f000 00:1a 8457317                            /usr/lib/php/modules/odbc.so
b46ba000-b46fa000 r-xp 00000000 00:1a 8440260                            /usr/lib/libncurses.so.5.5
b46fa000-b4702000 rw-p 00040000 00:1a 8440260                            /usr/lib/libncurses.so.5.5
b4702000-b4703000 rw-p b4702000 00:00 0 
b4703000-b4706000 r-xp 00000000 00:1a 8440150                            /usr/lib/libpanel.so.5.5
b4706000-b4707000 rw-p 00002000 00:1a 8440150                            /usr/lib/libpanel.so.5.5
b4707000-b4718000 r-xp 00000000 00:1a 8457336                            /usr/lib/php/modules/ncurses.so
b4718000-b471a000 rw-p 00011000 00:1a 8457336                            /usr/lib/php/modules/ncurses.so
b471a000-b4732000 r-xp 00000000 00:1a 8457331                            /usr/lib/php/modules/mysqli.so
b4732000-b4734000 rw-p 00018000 00:1a 8457331                            /usr/lib/php/modules/mysqli.so
b4734000-b4855000 r-xp 00000000 00:1a 12376580                           /usr/lib/mysql/libmysqlclient.so.15.0.0
b4855000-b4897000 rw-p 00120000 00:1a 12376580                           /usr/lib/mysql/libmysqlclient.so.15.0.0
b4897000-b4898000 rw-p b4897000 00:00 0 
b4898000-b48a3000 r-xp 00000000 00:1a 8457327                            /usr/lib/php/modules/mysql.so
b48a3000-b48a4000 rw-p 0000b000 00:1a 8457327                            /usr/lib/php/modules/mysql.so
b48a4000-b48cf000 r-xp 00000000 00:1a 2127448                            /usr/lib/libmcrypt.so.4.4.8
b48cf000-b48d2000 rw-p 0002b000 00:1a 2127448                            /usr/lib/libmcrypt.so.4.4.8
b48d2000-b48d7000 rw-p b48d2000 00:00 0 
b48d7000-b48df000 r-xp 00000000 00:1a 8457340                            /usr/lib/php/modules/mcrypt.so
b48df000-b48e0000 rw-p 00007000 00:1a 8457340                            /usr/lib/php/modules/mcrypt.so
b48e0000-b4a71000 r-xp 00000000 00:1a 8457342                            /usr/lib/php/modules/mbstring.so
b4a71000-b4a84000 rw-p 00191000 00:1a 8457342                            /usr/lib/php/modules/mbstring.so
b4a84000-b4aa5000 r-xp 00000000 00:1a 8457329                            /usr/lib/php/modules/dom.so
b4aa5000-b4aa7000 rw-p 00021000 00:1a 8457329                            /usr/lib/php/modules/dom.so
b4aa7000-b4aae000 r-xp 00000000 00:1a 8457310                            /usr/lib/php/modules/dbase.so
b4aae000-b4aaf000 rw-p 00006000 00:1a 8457310                            /usr/lib/php/modules/dbase.so
b4aaf000-b4abb000 r-xp 00000000 00:1a 8457338                            /usr/lib/php/modules/dba.so
b4abb000-b4abc000 rw-p 0000b000 00:1a 8457338                            /usr/lib/php/modules/dba.so
b4abc000-b4ac2000 r-xp 00000000 00:1a 13704355                           /usr/lib/php/modules/json.so
b4ac2000-b4ac3000 rw-p 00005000 00:1a 13704355                           /usr/lib/php/modules/json.so
b4ac3000-b4ac4000 r-xp 00000000 00:1a 8439966                            /usr/lib/libaio.so.1.0.1
b4ac4000-b4ac5000 rw-p 00000000 00:1a 8439966                            /usr/lib/libaio.so.1.0.1
b4ac5000-b4ce4000 r-xp 00000000 00:1a 8468108                            /usr/lib/oracle/11.2/client/lib/libnnz11.so
b4ce4000-b4d12000 rw-p 0021e000 00:1a 8468108                            /usr/lib/oracle/11.2/client/lib/libnnz11.so
b4d12000-b4d14000 rw-p b4d12000 00:00 0 
b4d14000-b6bc2000 r-xp 00000000 00:1a 8468107                            /usr/lib/oracle/11.2/client/lib/libclntsh.so.11.1
b6bc2000-b6cb0000 rw-p 01ead000 00:1a 8468107                            /usr/lib/oracle/11.2/client/lib/libclntsh.so.11.1
b6cb0000-b6cca000 rw-p b6cb0000 00:00 0 
b6cca000-b6cf2000 r-xp 00000000 00:1a 13407864                           /usr/lib/php/modules/oci8.so
b6cf2000-b6cf6000 rw-p 00028000 00:1a 13407864                           /usr/lib/php/modules/oci8.so
b6cf6000-b6d0f000 rw-s 00000000 00:86 1055942931                         
b6d0f000-b6d19000 r-xp 00000000 00:1a 8458372                            /lib/libnss_files-2.5.so
b6d19000-b6d1a000 r--p 00009000 00:1a 8458372                            /lib/libnss_files-2.5.so
b6d1a000-b6d1b000 rw-p 0000a000 00:1a 8458372                            /lib/libnss_files-2.5.so
b6d1b000-b6d23000 r-xp 00000000 00:1a 8441434                            /usr/lib/libnal.so.1.0.1
b6d23000-b6d24000 rw-p 00007000 00:1a 8441434                            /usr/lib/libnal.so.1.0.1
b6d24000-b6d28000 r-xp 00000000 00:1a 8441430                            /usr/lib/libdistcache.so.1.0.1
b6d28000-b6d29000 rw-p 00003000 00:1a 8441430                            /usr/lib/libdistcache.so.1.0.1
b6d29000-b6d51000 r-xp 00000000 00:1a 5150566                            /usr/lib/httpd/modules/mod_ssl.so
b6d51000-b6d53000 rw-p 00028000 00:1a 5150566                            /usr/lib/httpd/modules/mod_ssl.so
b6d53000-b6d55000 rw-p b6d53000 00:00 0 
b6d55000-b6e49000 r-xp 00000000 00:1a 8440213                            /usr/lib/libpython2.4.so.1.0
b6e49000-b6e6b000 rw-p 000f4000 00:1a 8440213                            /usr/lib/libpython2.4.so.1.0
b6e6b000-b6e6e000 rw-p b6e6b000 00:00 0 
b6e6e000-b6e83000 r-xp 00000000 00:1a 8441428                            /usr/lib/httpd/modules/mod_python.so
b6e83000-b6e86000 rw-p 00014000 00:1a 8441428                            /usr/lib/httpd/modules/mod_python.so
b6e86000-b6e8e000 r-xp 00000000 00:1a 5150552                            /usr/lib/httpd/modules/mod_proxy_ajp.so
b6e8e000-b6e90000 rw-p 00007000 00:1a 5150552                            /usr/lib/httpd/modules/mod_proxy_ajp.so
b6e90000-b6e92000 r-xp 00000000 00:1a 8458333                            /lib/libutil-2.5.so
b6e92000-b6e93000 r--p 00001000 00:1a 8458333                            /lib/libutil-2.5.so
b6e93000-b6e94000 rw-p 00002000 00:1a 8458333                            /lib/libutil-2.5.so
b6e94000-b6fbf000 r-xp 00000000 00:1a 8442644                            /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
b6fbf000-b6fc4000 rw-p 0012a000 00:1a 8442644                            /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
b6fc4000-b6fc6000 rw-p b6fc4000 00:00 0 
b6fc6000-b6ff9000 r-xp 00000000 00:1a 8441445                            /usr/lib/httpd/modules/mod_perl.so
b6ff9000-b6ffb000 rw-p 00033000 00:1a 8441445                            /usr/lib/httpd/modules/mod_perl.so
b6ffb000-b7054000 r-xp 00000000 00:1a 8440549                            /usr/lib/httpd/modules/mod_jk.so
b7054000-b7056000 rw-p 00058000 00:1a 8440549                            /usr/lib/httpd/modules/mod_jk.so
b7056000-b7061000 r-xp 00000000 00:1a 8458368                            /lib/libgcc_s-4.1.2-20080825.so.1
b7061000-b7062000 rw-p 0000a000 00:1a 8458368                            /lib/libgcc_s-4.1.2-20080825.so.1
b7062000-b7140000 r-xp 00000000 00:1a 8440244                            /usr/lib/libstdc++.so.6.0.8
b7140000-b7143000 r--p 000dd000 00:1a 8440244                            /usr/lib/libstdc++.so.6.0.8
b7143000-b7145000 rw-p 000e0000 00:1a 8440244                            /usr/lib/libstdc++.so.6.0.8
b7145000-b714b000 rw-p b7145000 00:00 0 
b714b000-b717b000 r-xp 00000000 00:1a 8440240                            /usr/lib/libidn.so.11.5.19
b717b000-b717c000 rw-p 0002f000 00:1a 8440240                            /usr/lib/libidn.so.11.5.19
b717c000-b72a8000 r-xp 00000000 00:1a 8440252                            /usr/lib/libxml2.so.2.6.26
b72a8000-b72ad000 rw-p 0012c000 00:1a 8440252                            /usr/lib/libxml2.so.2.6.26
b72ad000-b72ae000 rw-p b72ad000 00:00 0 
b72ae000-b72c3000 r-xp 00000000 00:1a 8458326                            /lib/libnsl-2.5.so
b72c3000-b72c4000 r--p 00014000 00:1a 8458326                            /lib/libnsl-2.5.so
b72c4000-b72c5000 rw-p 00015000 00:1a 8458326                            /lib/libnsl-2.5.so
b72c5000-b72c7000 rw-p b72c5000 00:00 0 
b72c7000-b72d7000 r-xp 00000000 00:1a 8440228                            /usr/lib/libbz2.so.1.0.3
b72d7000-b72d8000 rw-p 00010000 00:1a 8440228                            /usr/lib/libbz2.so.1.0.3
b72d8000-b7313000 r-xp 00000000 00:1a 8440280                            /usr/lib/libcurl.so.3.0.0
b7313000-b7314000 rw-p 0003b000 00:1a 8440280                            /usr/lib/libcurl.so.3.0.0
b7314000-b7347000 r-xp 00000000 00:1a 8440342                            /usr/lib/sse2/libgmp.so.3.3.3
b7347000-b7348000 rw-p 00032000 00:1a 8440342                            /usr/lib/sse2/libgmp.so.3.3.3
b7348000-b73ff000 r-xp 00000000 00:1a 8440281                            /usr/lib/libaspell.so.15.1.3
b73ff000-b7403000 rw-p 000b6000 00:1a 8440281                            /usr/lib/libaspell.so.15.1.3
b7403000-b7407000 rw-p b7403000 00:00 0 
b7407000-b740c000 r-xp 00000000 00:1a 8457318                            /usr/lib/php/modules/pdo_odbc.so
b740c000-b740d000 rw-p 00004000 00:1a 8457318                            /usr/lib/php/modules/pdo_odbc.so
b740d000-b76d0000 r-xp 00000000 00:1a 8440386                            /usr/lib/httpd/modules/libphp5.so
b76d0000-b76f0000 rw-p 002c2000 00:1a 8440386                            /usr/lib/httpd/modules/libphp5.so
b76f0000-b76f7000 rw-p b76f0000 00:00 0 
b76f7000-b76f8000 r-xp 00000000 00:1a 5150564                            /usr/lib/httpd/modules/mod_version.so
b76f8000-b76fa000 rw-p 00000000 00:1a 5150564                            /usr/lib/httpd/modules/mod_version.so
b76fa000-b76ff000 r-xp 00000000 00:1a 8440370                            /usr/lib/httpd/modules/mod_cgi.so
b76ff000-b7701000 rw-p 00004000 00:1a 8440370                            /usr/lib/httpd/modules/mod_cgi.so
b7701000-b7706000 r-xp 00000000 00:1a 5150547                            /usr/lib/httpd/modules/mod_mem_cache.so
b7706000-b7708000 rw-p 00004000 00:1a 5150547                            /usr/lib/httpd/modules/mod_mem_cache.so
b7708000-b770a000 r-xp 00000000 00:1a 5148967                            /usr/lib/httpd/modules/mod_file_cache.so
b770a000-b770c000 rw-p 00001000 00:1a 5148967                            /usr/lib/httpd/modules/mod_file_cache.so
b770c000-b7710000 r-xp 00000000 00:1a 5148422                            /usr/lib/httpd/modules/mod_disk_cache.so
b7710000-b7711000 ---p 00004000 00:1a 5148422                            /usr/lib/httpd/modules/mod_disk_cache.so
b7711000-b7713000 rw-p 00004000 00:1a 5148422                            /usr/lib/httpd/modules/mod_disk_cache.so
b7713000-b7714000 r-xp 00000000 00:1a 8440403                            /usr/lib/httpd/modules/mod_suexec.so
b7714000-b7716000 rw-p 00000000 00:1a 8440403                            /usr/lib/httpd/modules/mod_suexec.so
b7716000-b771d000 r-xp 00000000 00:1a 5138943                            /usr/lib/httpd/modules/mod_cache.so
b771d000-b771f000 rw-p 00006000 00:1a 5138943                            /usr/lib/httpd/modules/mod_cache.so
b771f000-b7721000 r-xp 00000000 00:1a 5150554                            /usr/lib/httpd/modules/mod_proxy_connect.so
b7721000-b7723000 rw-p 00001000 00:1a 5150554                            /usr/lib/httpd/modules/mod_proxy_connect.so
b7723000-b772a000 r-xp 00000000 00:1a 5150556                            /usr/lib/httpd/modules/mod_proxy_http.so
b772a000-b772c000 rw-p 00006000 00:1a 5150556                            /usr/lib/httpd/modules/mod_proxy_http.so
b772c000-b7733000 r-xp 00000000 00:1a 5150555                            /usr/lib/httpd/modules/mod_proxy_ftp.so
b7733000-b7735000 rw-p 00007000 00:1a 5150555                            /usr/lib/httpd/modules/mod_proxy_ftp.so
b7735000-b773a000 r-xp 00000000 00:1a 5150553                            /usr/lib/httpd/modules/mod_proxy_balancer.so
b773a000-b773c000 rw-p 00004000 00:1a 5150553                            /usr/lib/httpd/modules/mod_proxy_balancer.so
b773c000-b774d000 r-xp 00000000 00:1a 5150551                            /usr/lib/httpd/modules/mod_proxy.so
b774d000-b774e000 ---p 00011000 00:1a 5150551                            /usr/lib/httpd/modules/mod_proxy.so
b774e000-b7750000 rw-p 00011000 00:1a 5150551                            /usr/lib/httpd/modules/mod_proxy.so
b7750000-b775e000 r-xp 00000000 00:1a 5150557                            /usr/lib/httpd/modules/mod_rewrite.so
b775e000-b7760000 rw-p 0000d000 00:1a 5150557                            /usr/lib/httpd/modules/mod_rewrite.so
b7760000-b7762000 r-xp 00000000 00:1a 5138204                            /usr/lib/httpd/modules/mod_alias.so
b7762000-b7763000 ---p 00002000 00:1a 5138204                            /usr/lib/httpd/modules/mod_alias.so
b7763000-b7765000 rw-p 00002000 00:1a 5138204                            /usr/lib/httpd/modules/mod_alias.so
b7765000-b7767000 r-xp 00000000 00:1a 8440361                            /usr/lib/httpd/modules/mod_userdir.so
b7767000-b7769000 rw-p 00001000 00:1a 8440361                            /usr/lib/httpd/modules/mod_userdir.so
b7769000-b776b000 r-xp 00000000 00:1a 5150559                            /usr/lib/httpd/modules/mod_speling.so
b776b000-b776d000 rw-p 00001000 00:1a 5150559                            /usr/lib/httpd/modules/mod_speling.so
b776d000-b776e000 r-xp 00000000 00:1a 5138202                            /usr/lib/httpd/modules/mod_actions.so
b776e000-b7770000 rw-p 00001000 00:1a 5138202                            /usr/lib/httpd/modules/mod_actions.so
b7770000-b7771000 r-xp 00000000 00:1a 5148420                            /usr/lib/httpd/modules/mod_dir.so
b7771000-b7772000 ---p 00001000 00:1a 5148420                            /usr/lib/httpd/modules/mod_dir.so
b7772000-b7774000 rw-p 00001000 00:1a 5148420                            /usr/lib/httpd/modules/mod_dir.so
b7774000-b777b000 r-xp 00000000 00:1a 5150550                            /usr/lib/httpd/modules/mod_negotiation.so
b777b000-b777d000 rw-p 00006000 00:1a 5150550                            /usr/lib/httpd/modules/mod_negotiation.so
b777d000-b777f000 r-xp 00000000 00:1a 5150565                            /usr/lib/httpd/modules/mod_vhost_alias.so
b777f000-b7781000 rw-p 00001000 00:1a 5150565                            /usr/lib/httpd/modules/mod_vhost_alias.so
b7781000-b778c000 r-xp 00000000 00:1a 5138946                            /usr/lib/httpd/modules/mod_dav_fs.so
b778c000-b778e000 rw-p 0000a000 00:1a 5138946                            /usr/lib/httpd/modules/mod_dav_fs.so
b778e000-b7792000 r-xp 00000000 00:1a 5150542                            /usr/lib/httpd/modules/mod_info.so
b7792000-b7794000 rw-p 00003000 00:1a 5150542                            /usr/lib/httpd/modules/mod_info.so
b7794000-b779b000 r-xp 00000000 00:1a 5138942                            /usr/lib/httpd/modules/mod_autoindex.so
b779b000-b779c000 ---p 00007000 00:1a 5138942                            /usr/lib/httpd/modules/mod_autoindex.so
b779c000-b779e000 rw-p 00007000 00:1a 5138942                            /usr/lib/httpd/modules/mod_autoindex.so
b779e000-b77a2000 r-xp 00000000 00:1a 5150560                            /usr/lib/httpd/modules/mod_status.so
b77a2000-b77a4000 rw-p 00003000 00:1a 5150560                            /usr/lib/httpd/modules/mod_status.so
b77a4000-b77b9000 r-xp 00000000 00:1a 8440396                            /usr/lib/httpd/modules/mod_dav.so
b77b9000-b77bb000 rw-p 00014000 00:1a 8440396                            /usr/lib/httpd/modules/mod_dav.so
b77bb000-b77be000 r-xp 00000000 00:1a 5150548                            /usr/lib/httpd/modules/mod_mime.so
b77be000-b77c0000 rw-p 00003000 00:1a 5150548                            /usr/lib/httpd/modules/mod_mime.so
b77c0000-b77c2000 r-xp 00000000 00:1a 5150558                            /usr/lib/httpd/modules/mod_setenvif.so
b77c2000-b77c4000 rw-p 00001000 00:1a 5150558                            /usr/lib/httpd/modules/mod_setenvif.so
b77c4000-b77c6000 r-xp 00000000 00:1a 5150563                            /usr/lib/httpd/modules/mod_usertrack.so
b77c6000-b77c8000 rw-p 00001000 00:1a 5150563                            /usr/lib/httpd/modules/mod_usertrack.so
b77c8000-b77cb000 r-xp 00000000 00:1a 8440367                            /usr/lib/httpd/modules/mod_headers.so
b77cb000-b77cd000 rw-p 00002000 00:1a 8440367                            /usr/lib/httpd/modules/mod_headers.so
b77cd000-b77d1000 r-xp 00000000 00:1a 8440369                            /usr/lib/httpd/modules/mod_deflate.so
b77d1000-b77d3000 rw-p 00003000 00:1a 8440369                            /usr/lib/httpd/modules/mod_deflate.so
b77d3000-b77d5000 r-xp 00000000 00:1a 5148965                            /usr/lib/httpd/modules/mod_expires.so
b77d5000-b77d7000 rw-p 00001000 00:1a 5148965                            /usr/lib/httpd/modules/mod_expires.so
b77d7000-b77dc000 r-xp 00000000 00:1a 5150549                            /usr/lib/httpd/modules/mod_mime_magic.so
b77dc000-b77de000 rw-p 00004000 00:1a 5150549                            /usr/lib/httpd/modules/mod_mime_magic.so
b77de000-b77e2000 r-xp 00000000 00:1a 5148966                            /usr/lib/httpd/modules/mod_ext_filter.so
b77e2000-b77e4000 rw-p 00003000 00:1a 5148966                            /usr/lib/httpd/modules/mod_ext_filter.so
b77e4000-b77e5000 r-xp 00000000 00:1a 8440395                            /usr/lib/httpd/modules/mod_env.so
b77e5000-b77e7000 rw-p 00000000 00:1a 8440395                            /usr/lib/httpd/modules/mod_env.so
b77e7000-b77e8000 r-xp 00000000 00:1a 8440375                            /usr/lib/httpd/modules/mod_logio.so
b77e8000-b77ea000 rw-p 00000000 00:1a 8440375                            /usr/lib/httpd/modules/mod_logio.so
b77ea000-b77ef000 r-xp 00000000 00:1a 5150545                            /usr/lib/httpd/modules/mod_log_config.so
b77ef000-b77f1000 rw-p 00004000 00:1a 5150545                            /usr/lib/httpd/modules/mod_log_config.so
b77f1000-b77fa000 r-xp 00000000 00:1a 8440382                            /usr/lib/httpd/modules/mod_include.so
b77fa000-b77fc000 rw-p 00009000 00:1a 8440382                            /usr/lib/httpd/modules/mod_include.so
b77fc000-b7803000 r-xp 00000000 00:1a 5138935                            /usr/lib/httpd/modules/mod_authnz_ldap.so
b7803000-b7805000 rw-p 00006000 00:1a 5138935                            /usr/lib/httpd/modules/mod_authnz_ldap.so
b7805000-b7810000 r-xp 00000000 00:1a 5150543                            /usr/lib/httpd/modules/mod_ldap.so
b7810000-b7812000 rw-p 0000a000 00:1a 5150543                            /usr/lib/httpd/modules/mod_ldap.so
b7812000-b7813000 r-xp 00000000 00:1a 5138937                            /usr/lib/httpd/modules/mod_authz_default.so
b7813000-b7815000 rw-p 00000000 00:1a 5138937                            /usr/lib/httpd/modules/mod_authz_default.so
b7815000-b7817000 r-xp 00000000 00:1a 5138936                            /usr/lib/httpd/modules/mod_authz_dbm.so
b7817000-b7819000 rw-p 00001000 00:1a 5138936                            /usr/lib/httpd/modules/mod_authz_dbm.so
b7819000-b781b000 r-xp 00000000 00:1a 5138938                            /usr/lib/httpd/modules/mod_authz_groupfile.so
b781b000-b781d000 rw-p 00001000 00:1a 5138938                            /usr/lib/httpd/modules/mod_authz_groupfile.so
b781d000-b781e000 r-xp 00000000 00:1a 5138940                            /usr/lib/httpd/modules/mod_authz_owner.so
b781e000-b7820000 rw-p 00001000 00:1a 5138940                            /usr/lib/httpd/modules/mod_authz_owner.so
b7820000-b7821000 r-xp 00000000 00:1a 5138941                            /usr/lib/httpd/modules/mod_authz_user.so
b7821000-b7823000 rw-p 00000000 00:1a 5138941                            /usr/lib/httpd/modules/mod_authz_user.so
b7823000-b7825000 r-xp 00000000 00:1a 5138939                            /usr/lib/httpd/modules/mod_authz_host.so
b7825000-b7827000 rw-p 00001000 00:1a 5138939                            /usr/lib/httpd/modules/mod_authz_host.so
b7827000-b7828000 r-xp 00000000 00:1a 5138933                            /usr/lib/httpd/modules/mod_authn_default.so
b7828000-b782a000 rw-p 00000000 00:1a 5138933                            /usr/lib/httpd/modules/mod_authn_default.so
b782a000-b782b000 r-xp 00000000 00:1a 8440401                            /usr/lib/httpd/modules/mod_authn_dbm.so
b782b000-b782d000 rw-p 00000000 00:1a 8440401                            /usr/lib/httpd/modules/mod_authn_dbm.so
b782d000-b782e000 r-xp 00000000 00:1a 5138931                            /usr/lib/httpd/modules/mod_authn_anon.so
b782e000-b7830000 rw-p 00000000 00:1a 5138931                            /usr/lib/httpd/modules/mod_authn_anon.so
b7830000-b7831000 r-xp 00000000 00:1a 5138208                            /usr/lib/httpd/modules/mod_authn_alias.so
b7831000-b7833000 rw-p 00001000 00:1a 5138208                            /usr/lib/httpd/modules/mod_authn_alias.so
b7833000-b7834000 r-xp 00000000 00:1a 5138934                            /usr/lib/httpd/modules/mod_authn_file.so
b7834000-b7836000 rw-p 00000000 00:1a 5138934                            /usr/lib/httpd/modules/mod_authn_file.so
b7836000-b783c000 r-xp 00000000 00:1a 5138206                            /usr/lib/httpd/modules/mod_auth_digest.so
b783c000-b783e000 rw-p 00006000 00:1a 5138206                            /usr/lib/httpd/modules/mod_auth_digest.so
b783e000-b7840000 rw-p b783e000 00:00 0 
b7840000-b7842000 r-xp 00000000 00:1a 8458418                            /lib/libkeyutils-1.2.so
b7842000-b7843000 rw-p 00001000 00:1a 8458418                            /lib/libkeyutils-1.2.so
b7843000-b784b000 r-xp 00000000 00:1a 8440327                            /usr/lib/libkrb5support.so.0.1
b784b000-b784c000 rw-p 00007000 00:1a 8440327                            /usr/lib/libkrb5support.so.0.1
b784c000-b785e000 r-xp 00000000 00:1a 8440233                            /usr/lib/libz.so.1.2.3
b785e000-b785f000 rw-p 00011000 00:1a 8440233                            /usr/lib/libz.so.1.2.3
b785f000-b7860000 rw-p b785f000 00:00 0 
b7860000-b7886000 r-xp 00000000 00:1a 8440219                            /usr/lib/libk5crypto.so.3.1
b7886000-b7887000 rw-p 00025000 00:1a 8440219                            /usr/lib/libk5crypto.so.3.1
b7887000-b7889000 r-xp 00000000 00:1a 8458394                            /lib/libcom_err.so.2.1
b7889000-b788a000 rw-p 00001000 00:1a 8458394                            /lib/libcom_err.so.2.1
b788a000-b791d000 r-xp 00000000 00:1a 8440166                            /usr/lib/libkrb5.so.3.3
b791d000-b7920000 rw-p 00092000 00:1a 8440166                            /usr/lib/libkrb5.so.3.3
b7920000-b794c000 r-xp 00000000 00:1a 8440263                            /usr/lib/libgssapi_krb5.so.2.2
b794c000-b794d000 rw-p 0002c000 00:1a 8440263                            /usr/lib/libgssapi_krb5.so.2.2
b794d000-b7a7c000 r-xp 00000000 00:1a 8458398                            /lib/libcrypto.so.0.9.8e
b7a7c000-b7a8f000 rw-p 0012e000 00:1a 8458398                            /lib/libcrypto.so.0.9.8e
b7a8f000-b7a94000 rw-p b7a8f000 00:00 0 
b7a94000-b7ad8000 r-xp 00000000 00:1a 8458322                            /lib/libssl.so.0.9.8e
b7ad8000-b7adc000 rw-p 00043000 00:1a 8458322                            /lib/libssl.so.0.9.8e
b7adc000-b7af4000 r-xp 00000000 00:1a 8440163                            /usr/lib/libsasl2.so.2.0.22
b7af4000-b7af5000 rw-p 00017000 00:1a 8440163                            /usr/lib/libsasl2.so.2.0.22
b7af5000-b7b05000 r-xp 00000000 00:1a 8458417                            /lib/libresolv-2.5.so
b7b05000-b7b06000 r--p 0000f000 00:1a 8458417                            /lib/libresolv-2.5.so
b7b06000-b7b07000 rw-p 00010000 00:1a 8458417                            /lib/libresolv-2.5.so
b7b07000-b7b09000 rw-p b7b07000 00:00 0 
b7b09000-b7b0c000 r-xp 00000000 00:1a 8458423                            /lib/libuuid.so.1.2
b7b0c000-b7b0d000 rw-p 00003000 00:1a 8458423                            /lib/libuuid.so.1.2
b7b0d000-b7b48000 r-xp 00000000 00:1a 8458412                            /lib/libsepol.so.1
b7b48000-b7b49000 rw-p 0003b000 00:1a 8458412                            /lib/libsepol.so.1
b7b49000-b7b54000 rw-p b7b49000 00:00 0 
b7b54000-b7ca7000 r-xp 00000000 00:1a 8458404                            /lib/libc-2.5.so
b7ca7000-b7ca9000 r--p 00152000 00:1a 8458404                            /lib/libc-2.5.so
b7ca9000-b7caa000 rw-p 00154000 00:1a 8458404                            /lib/libc-2.5.so
b7caa000-b7cad000 rw-p b7caa000 00:00 0 
b7cad000-b7cb0000 r-xp 00000000 00:1a 8458414                            /lib/libdl-2.5.so
b7cb0000-b7cb1000 r--p 00002000 00:1a 8458414                            /lib/libdl-2.5.so
b7cb1000-b7cb2000 rw-p 00003000 00:1a 8458414                            /lib/libdl-2.5.so
b7cb2000-b7cc7000 r-xp 00000000 00:1a 8458358                            /lib/libpthread-2.5.so
b7cc7000-b7cc8000 r--p 00015000 00:1a 8458358                            /lib/libpthread-2.5.so
b7cc8000-b7cc9000 rw-p 00016000 00:1a 8458358                            /lib/libpthread-2.5.so
b7cc9000-b7ccb000 rw-p b7cc9000 00:00 0 
b7ccb000-b7cf2000 r-xp 00000000 00:1a 8440207                            /usr/lib/libapr-1.so.0.2.7
b7cf2000-b7cf3000 rw-p 00027000 00:1a 8440207                            /usr/lib/libapr-1.so.0.2.7
b7cf3000-b7d12000 r-xp 00000000 00:1a 8458378                            /lib/libexpat.so.0.5.0
b7d12000-b7d14000 rw-p 0001e000 00:1a 8458378                            /lib/libexpat.so.0.5.0
b7d14000-b7e09000 r-xp 00000000 00:1a 8459131                            /lib/libdb-4.3.so
b7e09000-b7e0c000 rw-p 000f4000 00:1a 8459131                            /lib/libdb-4.3.so
b7e0c000-b7e19000 r-xp 00000000 00:1a 8440311                            /usr/lib/liblber-2.3.so.0.2.31
b7e19000-b7e1a000 rw-p 0000c000 00:1a 8440311                            /usr/lib/liblber-2.3.so.0.2.31
b7e1a000-b7e1b000 rw-p b7e1a000 00:00 0 
b7e1b000-b7e54000 r-xp 00000000 00:1a 8440246                            /usr/lib/libldap-2.3.so.0.2.31
b7e54000-b7e55000 rw-p 00039000 00:1a 8440246                            /usr/lib/libldap-2.3.so.0.2.31
b7e55000-b7e5e000 r-xp 00000000 00:1a 8458332                            /lib/libcrypt-2.5.so
b7e5e000-b7e5f000 r--p 00008000 00:1a 8458332                            /lib/libcrypt-2.5.so
b7e5f000-b7e60000 rw-p 00009000 00:1a 8458332                            /lib/libcrypt-2.5.so
b7e60000-b7e87000 rw-p b7e60000 00:00 0 
b7e87000-b7ea0000 r-xp 00000000 00:1a 8440276                            /usr/lib/libaprutil-1.so.0.2.7
b7ea0000-b7ea1000 rw-p 00019000 00:1a 8440276                            /usr/lib/libaprutil-1.so.0.2.7
b7ea1000-b7eb7000 r-xp 00000000 00:1a 8458334                            /lib/libselinux.so.1
b7eb7000-b7eb9000 rw-p 00015000 00:1a 8458334                            /lib/libselinux.so.1
b7eb9000-b7ed5000 r-xp 00000000 00:1a 8458298                            /lib/libpcre.so.0.0.1
b7ed5000-b7ed6000 rw-p 0001c000 00:1a 8458298                            /lib/libpcre.so.0.0.1
b7ed6000-b7ed7000 rw-p b7ed6000 00:00 0 
b7ed7000-b7efe000 r-xp 00000000 00:1a 8458318                            /lib/libm-2.5.so
b7efe000-b7eff000 r--p 00026000 00:1a 8458318                            /lib/libm-2.5.so
b7eff000-b7f00000 rw-p 00027000 00:1a 8458318                            /lib/libm-2.5.so
b7f00000-b7f01000 r-xp 00000000 00:1a 8440309                            /usr/lib/libpspell.so.15.1.3
b7f01000-b7f02000 rw-p 00000000 00:1a 8440309                            /usr/lib/libpspell.so.15.1.3
b7f02000-b7f04000 r-xp 00000000 00:1a 8440368                            /usr/lib/httpd/modules/mod_auth_basic.so
b7f04000-b7f06000 rw-p 00001000 00:1a 8440368                            /usr/lib/httpd/modules/mod_auth_basic.so
b7f06000-b7f21000 r-xp 00000000 00:1a 8458911                            /lib/ld-2.5.so
b7f21000-b7f22000 r--p 0001a000 00:1a 8458911                            /lib/ld-2.5.so
b7f22000-b7f23000 rw-p 0001b000 00:1a 8458911                            /lib/ld-2.5.so
b7f23000-b7f6e000 r-xp 00000000 00:1a 8440073                            /usr/sbin/httpd
b7f6e000-b7f70000 rw-p 0004b000 00:1a 8440073                            /usr/sbin/httpd
b7f70000-b7f73000 rw-p b7f70000 00:00 0 
b8194000-b88a7000 rw-p b8194000 00:00 0                                  [heap]
bf890000-bf8a5000 rwxp 7ffffffe9000 00:00 0                              [stack]
[Fri May 04 21:27:52 2012] [notice] child pid 28556 exit signal Aborted (6)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-05 05:00 UTC] ceo at l-i-e dot com
I've got 9 more of these backtraces if you want them.

And about 8 of these with no backtrace or anything at all:
[Fri May 04 10:59:37 2012] [notice] child pid 24011 exit signal Segmentation fault (11)
[Fri May 04 11:10:00 2012] [notice] child pid 24050 exit signal Segmentation fault (11)
[Fri May 04 11:10:03 2012] [notice] child pid 24044 exit signal Segmentation fault (11)
[Fri May 04 18:23:31 2012] [notice] child pid 27659 exit signal Segmentation fault (11)
[Fri May 04 19:15:25 2012] [notice] child pid 27830 exit signal Segmentation fault (11)
[Fri May 04 19:15:34 2012] [notice] child pid 27832 exit signal Segmentation fault (11)
[Fri May 04 19:17:53 2012] [notice] child pid 26396 exit signal Segmentation fault (11)
[Fri May 04 20:17:11 2012] [notice] child pid 28059 exit signal Segmentation fault (11)

Those look more like apache crashes, I presume... PHP may have been the root cause, however, if something is scrambling RAM.
 [2012-05-05 05:39 UTC] lynch@php.net
It is definitely the second one, with the POST that is crashing.

Repeatable.
 [2012-05-05 11:12 UTC] lynch@php.net
If it helps, I now have a script that crashes every time, with a similar backtrace.

Not a short script, mind you, but the libcurl bits aren't all that long either.

If I hear back from somebody that wants to look at it, I'll strip out the non-curl parts, see if it crashes, and put here.

Might just do that anyway, since I'm kind of stalled right now...
 [2012-05-05 11:16 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2012-05-05 11:16 UTC] pajoye@php.net
Please do it already, the shorter script we get, the easier it will be to work on 
a fix.
 [2012-05-05 15:28 UTC] rasmus@php.net
There were known libcurl+curl_multi crashes in curl 7.15-7.19. See bug #47773
 [2012-05-07 16:03 UTC] lynch@php.net
I have reproduced this on an RHEL5.7 box with PHP 5.3.3

Still not supported, but getting closer...
 [2012-05-07 16:05 UTC] rasmus@php.net
The PHP version is less important than the libcurl version on this one.
 [2012-05-07 16:06 UTC] lynch@php.net
Short test script, for what its' worth:

http://www.6112northwolcott.com/curl_bug/test.phps

libcurl is 7.15.5 on both boxes.

I'll close this out.

SORRY!

I did search, but missed the other bug somehow.
 [2012-05-07 16:08 UTC] lynch@php.net
libcurl 7.15.5 known non-php issue

https://bugs.php.net/bug.php?id=47773
 [2012-05-07 16:08 UTC] lynch@php.net
-Status: Feedback +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 04:01:28 2024 UTC