stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov" <Ant...@moscow.vdiweb.com>
Subject RE: svn commit: r386035 - /incubator/stdcxx/trunk/tests/strings/21.string.erase.cpp
Date Thu, 16 Mar 2006 16:58:51 GMT
Is the adding of this missing '#' fix the problem? I.e. will this line
...
                    "|-no-erase-range#",
...
be correct? It works for our case but... I have vague idea that we have
had another problem with this place in tests and there was some another
problem when the pound sign have been set... But I am not sure - I need
to look for this in the mail archive.


Thanks,
Anton Pevtsov


-----Original Message-----
From: Martin Sebor [mailto:sebor@roguewave.com] 
Sent: Wednesday, March 15, 2006 22:45
To: stdcxx-dev@incubator.apache.org
Subject: Re: svn commit: r386035 -
/incubator/stdcxx/trunk/tests/strings/21.string.erase.cpp


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

Mime
View raw message