Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45401 invoked from network); 23 Jun 2009 15:27:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2009 15:27:20 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.222.197 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.222.197 mail-pz0-f197.google.com Received: from [209.85.222.197] ([209.85.222.197:43317] helo=mail-pz0-f197.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/2A-36467-654F04A4 for ; Tue, 23 Jun 2009 11:27:19 -0400 Received: by pzk35 with SMTP id 35so107931pzk.29 for ; Tue, 23 Jun 2009 08:27:16 -0700 (PDT) Received: by 10.142.142.16 with SMTP id p16mr54786wfd.321.1245770835911; Tue, 23 Jun 2009 08:27:15 -0700 (PDT) Received: from ?192.168.200.148? (c-69-181-146-36.hsd1.ca.comcast.net [69.181.146.36]) by mx.google.com with ESMTPS id 30sm384331wff.9.2009.06.23.08.27.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Jun 2009 08:27:15 -0700 (PDT) Message-ID: <4A40F451.7000003@lerdorf.com> Date: Tue, 23 Jun 2009 08:27:13 -0700 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: jvlad CC: internals@lists.php.net References: <688E0CB7-742C-4861-B636-0C89DC4D8B9A@pooteeweet.org> <06.D1.20019.45C1F3A4@pb1.pair.com> <7f3ed2c30906220017j6fcea76do2190af3f3ff2d763@mail.gmail.com> <4A4076BB.7080307@lerdorf.com> <35.59.36467.A82F04A4@pb1.pair.com> In-Reply-To: <35.59.36467.A82F04A4@pb1.pair.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: 5.3.0 stable release From: rasmus@lerdorf.com (Rasmus Lerdorf) jvlad wrote: >>> Further investigation shown that compiler takes about 1GB(!) of memory >>> when >>> it compiles php5.3-200906221030/ext/fileinfo/libmagic/apprentice.c >>> On some systems this amount of memory is not available and may lead to >>> errors such as hangs or crashes. >>> >>> Is it a known problem? >>> Is this requirement specified somewhere? >>> Can it be fixed or improved? >> Try compiling with -O0 > > unfortunately, it did not help (tried with fresh sources): There really isn't much we can do about this. Restructuring perfectly valid code because certain old versions of gcc use a lot of memory compiling it isn't something I am very keen on. Compile on a box with more memory or move to gcc4. -Rasmus