This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 30 Oct 2002 23:26:01 -0000
- Subject: Re: c++/7400: segfault with -shared option
- Reply-to: Michael Matz <matz at suse dot de>
The following reply was made to PR c++/7400; it has been noted by GNATS.
From: Michael Matz <matz@suse.de>
To: <bangerth@dealii.org>, <gcc-bugs@gcc.gnu.org>,
<gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <t6@pobox.com>,
<gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: c++/7400: segfault with -shared option
Date: Thu, 31 Oct 2002 00:17:18 +0100 (CET)
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.