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]

[Bug c++/11462] Segmentation Fault during Code Loading


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11462



------- Additional Comments From j dot w dot jones at swansea dot ac dot uk  2003-07-10 21:34 -------
Subject: Re:  Segmentation Fault during Code Loading

  All of the code is compiled with -g (and I think -gstabs).

As I said before, the strange thing is, the code will work until I add 
another shared library to the link line even though I don't call any of 
its functions and there are no static constructors in that library.

The reason I am trying with gcc 2.95.3 is that a number of our clients 
have distributions like Redhat 7.3 installed and, as far as I know, gcc 
3 produces code that will not link with the runtime libraries of the 
older distributions. Please correct me if I am wrong.

My other problem with providing an example is that this problem only 
happens when the code is large. I can provide the executable and the 
shared libraries if that would be helpful but the source code is part of 
our development tree and runs to 100,000+ lines of code..

Regards,

Jason

bangerth at dealii dot org wrote:

>PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11462
>
>
>
>------- Additional Comments From bangerth at dealii dot org  2003-07-08 13:41 -------
>Besides Andrew's comments: when you load shared libraries, startup
>code such as static variable constructors are run. Your program
>might crash in one of these. In any case, I would advise to compile
>the program and all shared library with debug information so that
>you get a decent stack backtrace instead of just ???
>
>W.
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
>  
>

-- 
Dr. Jason Jones
Technical Manager - Digital Technium

Tel:   01792 295869
Fax:   01792 295676
E-mail:    j.w.jones@swansea.ac.uk

School of Engineering
University of Wales Swansea
Singleton Park
Swansea
SA2 8PP UK


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