Regression with parameter_array_init_3.f90
Jerry DeLisle
jvdelisle@verizon.net
Fri Jan 11 14:24:00 GMT 2008
Steve Kargl wrote:
> On Wed, Jan 09, 2008 at 07:29:03AM +0100, Paul Thomas wrote:
>> Why it is segfaulting for you, I have no idea. :-(
>>
>> I'll try to figure it out from your backtrace.
>>
>
> Sigh. I spent too much time on this today :(
>
> The segfault is occurring in find_array_element() of expr.c.
> This function is called 3 times. The first 2 return because
> e->expr_type in line 1023 is not constant. The third trip into
> this function I get the segfault. AFAICT, something is
> messed up with the ar structure. Unfortunately, I can't
> use gdb to trace into this function (it appears to be inlined).
> If I try to set a break point on find_array_element, gdb tells
> me that symbol does not exist!
>
Steve, one trick I use is copy the function heading and paste it twice so that
you have a function prototype just above the function. Then delete the static
attribute on both. All of a sudden you have a debug-able function. Similarly
in reverse with variables that are "optimized away" I put a "static" in front of
them and I can then see them with gdb. Most of the time this does not cause a
problem, though you have to be aware of what you are doing. (debugging only
obviously)
Jerry
More information about the Fortran
mailing list