php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19321 malloc() error with Curl
Submitted: 2002-09-09 14:55 UTC Modified: 2002-10-03 18:36 UTC
From: dams@php.net Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4CVS-2002-09-09 OS: MacOSX 10.1.5
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: dams@php.net
New email:
PHP Version: OS:

 

 [2002-09-09 14:55 UTC] dams@php.net
Here is the script that will produce the bug.

Here is an exemple of final message
It doesn't happen always on the same number,
but it always happened to me before the end of this array 
of URL.

***********************************
33 : www.52w.net curl_exec http://www.52w.net
curl_error
Connect failed
34 : www.52www.net curl_exec http://www.52www.net
*** malloc[13148]: error: Can't allocate region
mach_port_type() failed (ipc/mig) wrong reply message ID
task_get_bootstrap_port() failed (ipc/mig) wrong reply 
message ID
Abort
[localhost:~/Sites] imac%
***********************************

I'm still on Macosx 10.1.5
curl 7.10-pre2 (powerpc-apple-darwin5.5) libcurl/7.10-pre2 
zlib/1.1.3

#!/usr/bin/php -q
<?php
error_reporting(E_ALL);

$i = 0;
$r = 
array('germany.gs','gifts.gs','girl.gs','gisler.gs','gs-
www.gs','www.bank.cn.gs','banks.gs','www.4-w.net','www.411n
ow.net','www.44w.
net','www.4989now.net','www.4all2know.net','www.4anewvw.net
','www.4ashow.net'
,'www.4bizlaw.net','www.4dw.net','www.4epw.net','www.4fw.ne
t','www.4gw.net'
,'www.4healthnow.net','www.4hesajollygoodfellow.net','www.4
law.net','www.4moneynow.
net','www.4payperview.net','www.4pornnow.net','www.4review.
net','www.4shaw.
net','www.4sw.net','www.4u2know.net','www.4ww.net','www.4ww
w.net','www.501c3law.
net','www.50thglasgow.net','www.52w.net','www.52www.net','w
ww.55w.net','www.
56w.net','www.5i5w.net','www.5law.net','www.5starview.net',
'www.62w.net','www.
650-blew.net','www.650blew.net','www.66w.net','www.77w.net'
,'www.7law.net'
,'www.7now.net','www.800-baby-
law.net','www.800-babylaw.net','www.800-call-now.net');



foreach($r as $site){
  print "$i : $site ";
  curl('http://'.$site);
  print " \n";
  $i++;
}

function curl($site){
  $ch = curl_init ($site);

  curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
  curl_setopt ($ch, CURLOPT_HEADER, 1);
  curl_setopt ($ch, CURLOPT_NOBODY, 1);
  curl_setopt ($ch, CURLOPT_TIMEOUT, 10);


print "curl_exec $site\n";
 $retour = curl_exec ($ch);
print "curl_error\n";
print curl_error($ch);
curl_close ($ch);


return $retour;
}


?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-03 18:36 UTC] sterling@php.net
At most this is a cURL error, however, a better guess is that MacOS X is FUBAR.  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC