php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71668 segfault ... error 6 in libresolv-2.13.so
Submitted: 2016-02-26 06:19 UTC Modified: 2021-10-03 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: glalex at kodigy dot com Assigned: cmb (profile)
Status: No Feedback Package: Network related
PHP Version: 5.6.18 OS: Debian/Wheezy
Private report: No CVE-ID: None
 [2016-02-26 06:19 UTC] glalex at kodigy dot com
Description:
------------
php 5.6.18 and 5.5.32 was recompiled after update glibc-2.13 on debian 7.9 ( Feb 12 2016 ) and run as php-fpm daemon with nginx

after that update, php child processes of both php versions segfaults on dns queries

kernel: [676749.914909] php-fpm[58403]: segfault at 200e70324 ip 00007fe3c28e20ca sp 00007ffdd1701790 error 6 in libresolv-2.13.so[7fe3c28d8000+13000]

all other software(nginx, MySQL, git) work fine
old php 5.5.31 fpm daemon(was not recompiled) - faults the same way.

Please help me to andestand how to fix that problem and let me know if this version of glibc is not supported now.



Test script:
---------------
<?php
$ch = curl_init('http://ru.wordpress.org');
// $ch = curl_init('http://66.155.40.249');
curl_setopt  ($ch, CURLOPT_HEADER, true);
                $timeout = 1000;
                curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout );
                curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout );
echo "$timeout==";
curl_exec($ch); // 
curl_close($ch);
?>



Expected result:
----------------
1000==HTTP/1.1 302 Moved Temporarily Server: nginx Date: Fri, 26 Feb 2016 06:16:59 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Location: https://wordpress.org/ X-Frame-Options: SAMEORIGIN X-nc: HIT lax 249 

Actual result:
--------------
php-fpm[58403]: segfault at 200e70324 ip 00007fe3c28e20ca sp 00007ffdd1701790 error 6 in libresolv-2.13.so[7fe3c28d8000+13000]


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-01 01:56 UTC] andyssq at gmail dot com
I had the same problem.
You could try to update libnss_dns-2.12.so file and its soft link.
Hope it helps.
 [2021-09-22 14:28 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-22 14:28 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-10-03 04:22 UTC] php-bugs 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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC