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: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 30 Oct 2002 23:46:01 -0000
- Subject: Re: c++/7400: segfault with -shared option
- Reply-to: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
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