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: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Michael Matz <matz@suse.de>
Cc: gcc-bugs@gcc.gnu.org, <gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>,
   <t6@pobox.com>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/7400: segfault with -shared option
Date: Wed, 30 Oct 2002 17:38:32 -0600 (CST)

 > >     ------------------------------
 > >     int main () {};
 > >     ------------------------------
 > >
 > >     Here's what I get:
 > >     tmp/g> c++ -shared x.cc
 > >     tmp/g> ./a.out
 > >     Speicherzugriffsfehler
 > 
 > Huh?  With -shared you create a shared library.  You can't run a shared
 > lib.  So getting a SEGV isn't wrong.
 
 Very fair criticism. I was just confused that I could execute the library, 
 and that I could also open it in gdb like a program.
 
 Thanks for lifting the bar from in front of my head :-) I'll close the 
 report in a second.
 
 Regards
   Wolfgang
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 


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