From stdcxx-dev-return-1073-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Wed Mar 15 19:40:40 2006 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 6293 invoked from network); 15 Mar 2006 19:40:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Mar 2006 19:40:40 -0000 Received: (qmail 37292 invoked by uid 500); 15 Mar 2006 19:40:40 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 37264 invoked by uid 500); 15 Mar 2006 19:40:40 -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 37253 invoked by uid 99); 15 Mar 2006 19:40:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 11:40:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 11:40:39 -0800 Received: from bco-exchange.bco.roguewave.com (bco-exchange.bco.roguewave.com [172.19.31.48]) by moroha.quovadx.com (8.13.4/8.13.4) with ESMTP id k2FJdLUb029478 for ; Wed, 15 Mar 2006 19:39:22 GMT Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id F5YGRXR8; Wed, 15 Mar 2006 12:38:57 -0700 Message-ID: <44186EB2.9080404@roguewave.com> Date: Wed, 15 Mar 2006 12:44:50 -0700 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: svn commit: r386035 - /incubator/stdcxx/trunk/tests/strings/21.string.erase.cpp References: <20060315101854.23481.qmail@minotaur.apache.org> In-Reply-To: <20060315101854.23481.qmail@minotaur.apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N antonp@apache.org wrote: > Author: antonp > Date: Wed Mar 15 02:18:36 2006 > New Revision: 386035 [...] > @@ -512,9 +547,21 @@ > 0 /* no comment */, > run_test, > "|-no-char_traits# " > - "|-no-user_traits# ", > - "|-no-user_chars", > + "|-no-user_traits# " > + "|-no-user_chars# " > + "|-no-exceptions# " > + "|-no-erase# " > + "|-no-erase-pos# " > + "|-no-erase-count# " > + "|-no-erase-iterator# " > + "|-no-erase-range", This is missing the trailing pound sign so the option processor will assume the address is that of a callback function and try to call it when it sees the option on the command line. Here's what I get on Solaris/SPARC, for example: $ ./21_erase --no-erase-range Illegal Instruction (core dumped) We should extend __rw_memattr() to check function pointers to make sure they point to memory with executable permissions and detect and diagnose these kinds of mismatches. Martin