This is the mail archive of the gcc-bugs@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


> >     ------------------------------
> >     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]