Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77848 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52865 invoked from network); 10 Oct 2014 12:08:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2014 12:08:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.197 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.197 relay5-d.mail.gandi.net Linux 2.6 Received: from [217.70.183.197] ([217.70.183.197:39402] helo=relay5-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/44-29144-E4CC7345 for ; Fri, 10 Oct 2014 08:08:47 -0400 Received: from mfilter38-d.gandi.net (mfilter38-d.gandi.net [217.70.178.169]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id B7BB641C084 for ; Fri, 10 Oct 2014 14:08:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter38-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter38-d.gandi.net (mfilter38-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PtSNY9C8zPob for ; Fri, 10 Oct 2014 14:08:42 +0200 (CEST) X-Originating-IP: 82.241.130.121 Received: from schrodingerscat.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: contact@ll-experts.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2D87441C06B for ; Fri, 10 Oct 2014 14:08:41 +0200 (CEST) Message-ID: <5437CC48.6060806@fedoraproject.org> Date: Fri, 10 Oct 2014 14:08:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: PHP Internals References: <54379B40.6020403@fedoraproject.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] GMP memory allocator, various issues From: remi@fedoraproject.org (Remi Collet) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 10/10/2014 12:57, Andrea Faulds a =C3=A9crit : >=20 >> On 10 Oct 2014, at 09:39, Remi Collet >> wrote: >>=20 >> Short, changing gmp memory allocator can cause segfaults in >> various case where gnutls is used and initialized "before" gmp. >>=20 >> - - php + gmp + curl =3D> segfaults - - apache + mod_php + >> mod_gnutls + gmp =3D> segfaults - - php + gmp + odbc + freetds =3D> >> se'gfaults >>=20 >>=20 >> The simple proposal will be to drop the mp_set_memory_functions >> call. >>=20 >> Any other (better) idea ? >=20 > Can't we just make gnutls use its own (statically-linked?) gmp > instance? Not an option. As gnutls change will imply downtream change, and downstream doesn't allowed bundled library. > I'd rather not make gmp just use malloc. Would cause memory leaks. Can you please elaborate a little ? Doesn't such leak have to be fixed in ext/gmp ? Remi. > -- Andrea Faulds http://ajf.me/ >=20 >=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlQ3zEgACgkQYUppBSnxahhLOwCfaZ2OlRuYaDAyfyERnUceXO5z gWIAoM9XmaZFMtKdKe56aQ2aPOOOq9/G =3DXbLF -----END PGP SIGNATURE-----