[Bug fortran/40005] segfault in gt_ggc_mx_lang_tree_node

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Mon May 4 07:49:00 GMT 2009



------- Comment #11 from jv244 at cam dot ac dot uk  2009-05-04 07:49 -------
I have a gdb session open, but I'm rather clueless. I have this:

(gdb) print (*x).generic.type
$5 = {common = {base = {code = RECORD_TYPE, side_effects_flag = 0,
constant_flag = 0, addressable_flag = 0, volatile_flag = 0,
      readonly_flag = 0, unsigned_flag = 0, asm_written_flag = 0,
nowarning_flag = 0, used_flag = 0, nothrow_flag = 0,
      static_flag = 0, public_flag = 0, private_flag = 0, protected_flag = 0,
deprecated_flag = 0, saturating_flag = 0,
      default_def_flag = 0, lang_flag_0 = 0, lang_flag_1 = 0, lang_flag_2 = 0,
lang_flag_3 = 0, lang_flag_4 = 0, lang_flag_5 = 0,
      lang_flag_6 = 0, visited = 0, spare = 0, ann = 0x0}, chain = 0x0, type =
0x0}, values = 0x7f94536c6780, size = 0x7f9453fada80,
  size_unit = 0x7f9453e43cc0, attributes = 0x0, uid = 769447, precision = 0,
mode = BLKmode, string_flag = 0, no_force_blk_flag = 0,
  needs_constructing_flag = 0, transparent_union_flag = 0, packed_flag = 0,
restrict_flag = 0, contains_placeholder_bits = 0,
  lang_flag_0 = 0, lang_flag_1 = 1, lang_flag_2 = 0, lang_flag_3 = 0,
lang_flag_4 = 0, lang_flag_5 = 0, lang_flag_6 = 0,
  user_align = 0, align = 64, alias_set = -1, pointer_to = 0x0, reference_to =
0x0, symtab = {address = 0, pointer = 0x0, die = 0x0},
  name = 0x7f9452151150, minval = 0x0, maxval = 0x0, next_variant =
0x7f941d7c60c0, main_variant = 0x7f9453d66e40, binfo = 0x0,
  context = 0x0, canonical = 0x7f9453d66e40, lang_specific = 0x7f941d7c7600}

but  the following fails:

(gdb) call debug_tree((*x).generic.type.next_variant)
Cannot access memory at address 0x7fff5d302f78


-- 


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



More information about the Gcc-bugs mailing list