This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7400: segfault with -shared option


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.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]