Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42274 invoked from network); 10 Oct 2014 10:57:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2014 10:57:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:49485] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/22-29144-59BB7345 for ; Fri, 10 Oct 2014 06:57:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 67D792400E8; Fri, 10 Oct 2014 06:57:19 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AI8Z-ckKl3w7; Fri, 10 Oct 2014 06:57:16 -0400 (EDT) Received: from [137.50.175.157] (oa-edu-175-157.wireless.abdn.ac.uk [137.50.175.157]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 22A9D2400EE; Fri, 10 Oct 2014 06:57:11 -0400 (EDT) References: <54379B40.6020403@fedoraproject.org> Mime-Version: 1.0 (1.0) In-Reply-To: <54379B40.6020403@fedoraproject.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Cc: "internals@lists.php.net" X-Mailer: iPhone Mail (12A405) Date: Fri, 10 Oct 2014 11:57:01 +0100 To: Remi Collet Subject: Re: [PHP-DEV] GMP memory allocator, various issues From: ajf@ajf.me (Andrea Faulds) > On 10 Oct 2014, at 09:39, Remi Collet wrote: > > Short, changing gmp memory allocator can cause segfaults in various > case where gnutls is used and initialized "before" gmp. > > - - php + gmp + curl => segfaults > - - apache + mod_php + mod_gnutls + gmp => segfaults > - - php + gmp + odbc + freetds => se'gfaults > > > The simple proposal will be to drop the mp_set_memory_functions call. > > Any other (better) idea ? Can't we just make gnutls use its own (statically-linked?) gmp instance? I'd rather not make gmp just use malloc. Would cause memory leaks. -- Andrea Faulds http://ajf.me/