This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: ICE seg fault


On Monday 30 July 2007 21:42:06 Florian Ladstaedter wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x08064563 in check_specification_function (e=<value optimized out>) at
> ../../gcc/gcc/fortran/expr.c:696
> 696       sym = e->symtree->n.sym;
> (gdb) p e->symtree
> Cannot access memory at address 0x28
> (gdb) p e->where
> Cannot access memory at address 0x30
> (gdb) p e->where->lb->file->filename
> Cannot access memory at address 0x34
> (gdb) p e->where->lb->file->line
> Cannot access memory at address 0x34

Although I can't help yet with the actual problem, I can at least contribute 
that this function was introduced by me in my recent init-expr patch. 

Florian, you need to look for initialization expressions, anything like 

  integer :: a = somefunction(anyarg)

I'd guess that the passed expression is somehow damaged (for a suitable 
definition of damaged).

Hope this helps?!

	Daniel


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