From stdcxx-dev-return-3688-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Mon Jun 11 22:20:55 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 38715 invoked from network); 11 Jun 2007 22:20:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 22:20:53 -0000 Received: (qmail 77159 invoked by uid 500); 11 Jun 2007 22:20:53 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 77112 invoked by uid 500); 11 Jun 2007 22:20:52 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 77059 invoked by uid 99); 11 Jun 2007 22:20:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 15:20:52 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 15:20:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB38F7141FE for ; Mon, 11 Jun 2007 15:20:26 -0700 (PDT) Message-ID: <16851390.1181600426764.JavaMail.jira@brutus> Date: Mon, 11 Jun 2007 15:20:26 -0700 (PDT) From: "Andrew Black (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-440) 23_allocator test case can consume all system memory In-Reply-To: <27660923.1181257645935.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503656 ] Andrew Black commented on STDCXX-440: ------------------------------------- A resolution for this issue has been committed in the referenced subversion change. However, I do not believe this will be the final solution. This solution uses the ulimt function of the exec utility to limit tests to allocating 1 GB of memory. In addition, I chose to limit examples to allocating 256 MB of memory. A similar limit should be applied for the locale tests, but I am uncertain as to what a suitable number would be. One concern I have is that users are unable to override this value, as the --ulimit switch operates on a last takes precedence mode of operation. The resolution to this concern would be to prepend the switch to the runflags variable. A second concern I have is that some previous successful tests may now segfault due to being unable to allocate the memory they require. Manual testing on my local box indicates that the 22_codecvt_iso2022 test (not yet in subversion) exhibits this behavior. --Andrew Black > 23_allocator test case can consume all system memory > ---------------------------------------------------- > > Key: STDCXX-440 > URL: https://issues.apache.org/jira/browse/STDCXX-440 > Project: C++ Standard Library > Issue Type: Bug > Components: Tests > Affects Versions: 4.2 > Environment: RHAP 5 (possibly others) > Reporter: Eric Lemings > Assignee: Andrew Black > Priority: Critical > Fix For: 4.2 > > Attachments: sample-top.txt > > > The 22_allocator test case has been observed to consume all primary and virtual memory bringing the unfortunate system to its knees. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.