This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7400: segfault with -shared option
- From: Michael Matz <matz at suse dot de>
- To: <bangerth at dealii dot org>, <gcc-bugs at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>, <nobody at gcc dot gnu dot org>, <t6 at pobox dot com>,<gcc-gnats at gcc dot gnu dot org>
- Date: Thu, 31 Oct 2002 00:17:18 +0100 (CET)
- Subject: Re: c++/7400: segfault with -shared option
Hi,
On 30 Oct 2002 bangerth@dealii.org wrote:
> I see the same behavior, although it has nothing to do with
> dynamic_cast as suggested in the previous name of the
> report: this also happens with this code:
> ------------------------------
> int main () {};
> ------------------------------
>
> Here's what I get:
> tmp/g> c++ x.cc
> tmp/g> ./a.out
> tmp/g>
> tmp/g> c++ -shared x.cc
> tmp/g> ./a.out
> Speicherzugriffsfehler
> (which means "Segmentation Fault", I just have not found
> out how to change the stupid german defaults on my system.)
Huh? With -shared you create a shared library. You can't run a shared
lib. So getting a SEGV isn't wrong.
Ciao,
Michael.