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 optimization/11505] Runtime segfault: C++ heap-allocated object loses/changes 'this' address at -O3 when calling virtual inline const function


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

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



------- Additional Comments From dan at bti dot net  2003-07-12 11:23 -------
Subject: Re:  Runtime segfault: C++ heap-allocated
	object loses/changes 'this' address at -O3 when calling virtual inline
	const function

Wolfgang,

My apologies.  The version info was in Bugzilla and I thought it would be
echoed in the report.  I'm running the latest production gcc:

--------------------
gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr/local
--enable-languages=c,c++,java --enable-threads --enable-__cxa_atexit
Thread model: posix
gcc version 3.3
--------------------

The reports you cited were with older versions, the latest being 3.1.

I've spent a couple of hours this morning attempting to create a test case
but I haven't been able to duplicate the problem.  This leads me to believe
that there is probably another workaround (refactoring the original class
somehow), but I still think that the optimization is still goofy.

I'll keep working on it and post my findings and/or a demonstration test
case.

DSC

In our previous episode, on 7/11/2003 5:49 PM, bangerth at dealii dot org
(gcc-bugzilla@gcc.gnu.org) related the following words of wisdom:

> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11505
> 
> 
> 
> ------- Additional Comments From bangerth at dealii dot org  2003-07-11 22:49
> -------
> This could be related to reports 568, 3608 and 5554, all of which are
> fixed. Unfortunately, you didn't tell us which version of gcc you are
> working with, and you didn't give us a testcase either, so we can't
> check.
> 
> Regards
> Wolfgang
> 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>


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