home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3068 < prev    next >
Encoding:
Text File  |  1992-12-29  |  7.2 KB  |  152 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lerami.lerctr.ORG!ler
  3. From: ler@lerami.lerctr.ORG (Larry Rosenman)
  4. Subject: SIGSEGV on cc1obj gcc 2.3.3 compiling object.m
  5. Message-ID: <m0n6JXw-00000CC@lerami.lerctr.org>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 28 Dec 1992 00:26:06 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 139
  12.  
  13. I have consistently (since the objc directory was added), gotten a seg violation
  14. compiling the objc runtime support on Amiga Unix (SVR4 C= version 2.1p2a).
  15.  
  16. this is from 2.3.3...
  17. here is the stack backtrace from the core file:
  18.  
  19.  
  20. Script started on Mon Dec 28 06:12:40 1992
  21. $ gdb
  22. GDB is free software and you are welcome to distribute copies of it
  23.  under certain conditions; type "show copying" to see the conditions.
  24. There is absolutely no warranty for GDB; type "show warranty" for details.
  25. GDB 4.7, Copyright 1992 Free Software Foundation, Inc.
  26. (gdb) core core
  27. Core was generated by `/home/ff/gcc/cc1obj /usr/tmp/cca005wZ.i -quiet -dumpbase object.m -g -O -lang-o'.
  28. Program terminated with signal 11, Segmentation fault.
  29. #0  0x80007a10 in ?? ()
  30. (gdb) sym /home/ff/gcc/cc1obj
  31. Reading symbols from /home/ff/gcc/cc1obj...done.
  32. (gdb) where
  33. #0  hash_lookup (hashlist=0x800fe9b4, sel_name=0x801062f8) at objc-actions.c:3035
  34. Cannot access memory at address 0x800079ec.
  35. (gdb) exec /home/ff/gcc/cc1obj
  36. (gdb) where
  37. #0  hash_lookup (hashlist=0x800fe9b4, sel_name=0x801062f8) at objc-actions.c:3035
  38. #1  0x80007d22 in add_instance_method (class=0x8011d318, method=0x8011d6d8)
  39.     at objc-actions.c:3234
  40. #2  0x80003bd0 in yyparse () at ./objc-parse.c:2168
  41. #3  0x8001fc02 in compile_file (name=0xc07ffab4 "/usr/tmp/cca005wZ.i") at toplev.c:1803
  42. #4  0x80021b18 in main (argc=10, argv=0xc07ff9a8, envp=0xc07ff9d4) at toplev.c:3285
  43. (gdb) where
  44. #0  hash_lookup (hashlist=0x800fe9b4, sel_name=0x801062f8) at objc-actions.c:3035
  45. #1  0x80007d22 in add_instance_method (class=0x8011d318, method=0x8011d6d8)
  46.     at objc-actions.c:3234
  47. #2  0x80003bd0 in yyparse () at ./objc-parse.c:2168
  48. #3  0x8001fc02 in compile_file (name=0xc07ffab4 "/usr/tmp/cca005wZ.i") at toplev.c:1803
  49. #4  0x80021b18 in main (argc=10, argv=0xc07ff9a8, envp=0xc07ff9d4) at toplev.c:3285
  50. (gdb) print sel_name
  51. $1 = (union tree_node *) 0x801062f8
  52. (gdb) print *sel_name
  53. $2 = {common = {chain = 0x0, type = 0x0, code = IDENTIFIER_NODE, 
  54.     side_effects_flag = 0, constant_flag = 0, permanent_flag = 1, 
  55.     addressable_flag = 1, volatile_flag = 0, readonly_flag = 0, unsigned_flag = 0, 
  56.     asm_written_flag = 0, used_flag = 1, raises_flag = 0, static_flag = 0, 
  57.     public_flag = 1, private_flag = 0, protected_flag = 0, lang_flag_0 = 0, 
  58.     lang_flag_1 = 0, lang_flag_2 = 0, lang_flag_3 = 0, lang_flag_4 = 0, 
  59.     lang_flag_5 = 0, lang_flag_6 = 0}, int_cst = {
  60.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, int_cst_low = 4, 
  61.     int_cst_high = -2146409688}, real_cst = {
  62.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, rtl = 0x4, 
  63.     real_cst = -2.2789385996650638e-308}, string = {
  64.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, rtl = 0x4, 
  65.     length = -2146409688, pointer = 0x0}, complex = {
  66.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, rtl = 0x4, 
  67.     real = 0x80106328, imag = 0x0}, identifier = {
  68.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, length = 4, 
  69.     pointer = 0x80106328 "free"}, decl = {
  70.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, 
  71.     filename = 0x4<Address 0x4 out of bounds>, linenum = -2146409688, size = 0x0, 
  72.     uid = 0, mode = VOIDmode, external_flag = 0, nonlocal_flag = 0, regdecl_flag = 0, 
  73.     inline_flag = 0, bit_field_flag = 0, virtual_flag = 0, ignored_flag = 0, 
  74.     abstract_flag = 0, in_system_header_flag = 0, lang_flag_0 = 0, lang_flag_1 = 0, 
  75.     lang_flag_2 = 0, lang_flag_3 = 0, lang_flag_4 = 0, lang_flag_5 = 0, 
  76.     lang_flag_6 = 0, lang_flag_7 = 0, name = 0x80106330, context = 0x0, 
  77.     arguments = 0x80106330, result = 0x0, initial = 0x66726565, abstract_origin = 0x0, 
  78.     print_name = 0x0, assembler_name = 0x800f2680, rtl = 0x1d309000, 
  79.     frame_size = -2146414400, saved_insns = {r = 0x42, i = 66}, vindex = 0x0, 
  80.     lang_specific = 0x77}, type = {
  81.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, values = 0x4, 
  82.     size = 0x80106328, uid = 0, mode = VOIDmode, precision = 0 '\000', 
  83.     no_force_blk_flag = 0, lang_flag_0 = 0, lang_flag_1 = 0, lang_flag_2 = 0, 
  84.     lang_flag_3 = 0, lang_flag_4 = 0, lang_flag_5 = 0, lang_flag_6 = 0, align = 0, 
  85.     pointer_to = 0x80106330, reference_to = 0x0, parse_info = -2146409680, 
  86.     symtab_address = 0, name = 0x66726565, minval = 0x0, maxval = 0x0, 
  87.     next_variant = 0x800f2680, main_variant = 0x1d309000, binfo = 0x801050c0, 
  88.     noncopied_parts = 0x42, context = 0x0, lang_specific = 0x77}, list = {
  89.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, purpose = 0x4, 
  90.     value = 0x80106328}, vec = {
  91.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, length = 4, a = {
  92.       0x80106328}}, exp = {common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, 
  93.     complexity = 4, operands = {0x80106328}}, block = {
  94.     common = {"\000\000\000\000\000\000\000\000\0010\220\000"}, 
  95.     handler_block_flag = 0, abstract_flag = 0, vars = 0x80106328, type_tags = 0x0, 
  96.     subblocks = 0x0, supercontext = 0x0, abstract_origin = 0x80106330, end_note = 0x0}}
  97. (gdb) info all-registers
  98. d0             0xffe023f5    -2087947
  99. d1             0xffffffc9    -55
  100. d2             0x801062f8    -2146409736
  101. d3             0x800f5258    -2146479528
  102. d4             0x21d    541
  103. d5             0x198    408
  104. d6             0xc07ff7b0    -1065355344
  105. d7             0xc07ff794    -1065355372
  106. a0             0x800fe9b4    -2146440780
  107. a1             0x1    1
  108. a2             0x0    0
  109. a3             0x8011d318    -2146315496
  110. a4             0x8011d6d8    -2146314536
  111. a5             0xc07ff794    -1065355372
  112. fp             0xc07ff3e8    0xc07ff3e8
  113. sp             0xc07ff3e4    0xc07ff3e4
  114. ps             0x0    0
  115. pc             0x80007a10    0x80007a10
  116. fp0            1    (raw 0xbfff00008000000000000000)
  117. fp1            -1    (raw 0x3fff00008000000000000000)
  118. fp2            -inf    (raw 0x7fff0000ffffffffffffffff)
  119. fp3            -inf    (raw 0x7fff0000ffffffffffffffff)
  120. fp4            -inf    (raw 0x7fff0000ffffffffffffffff)
  121. fp5            -inf    (raw 0x7fff0000ffffffffffffffff)
  122. fp6            -inf    (raw 0x7fff0000ffffffffffffffff)
  123. fp7            -inf    (raw 0x7fff0000ffffffffffffffff)
  124. fpcontrol      0x0    0
  125. fpstatus       0x8000000    134217728
  126. fpiaddr        0x0    0
  127. (gdb) dir ..
  128. Source directories searched: /home/ff/gcc/objc/..:$cdir:$cwd
  129. (gdb) l 3035
  130. 3030    
  131. 3031      target = hashlist[HASHFUNCTION (sel_name) % SIZEHASHTABLE];
  132. 3032    
  133. 3033      while (target)
  134. 3034        {
  135. 3035          if (sel_name == METHOD_SEL_NAME (target->key))
  136. 3036        return target;
  137. 3037    
  138. 3038          target = target->next;
  139. 3039        }
  140. (gdb) print target->key
  141. $3 = (union tree_node *) Cannot access memory at address 0x9.
  142. (gdb) print target
  143. $4 = (struct hashedEntry *) 0x1
  144. (gdb) quit
  145. script done on Mon Dec 28 06:18:53 1992
  146. -- 
  147. Larry Rosenman                            Internet: ler@lerami.lerctr.org
  148. ATT: +1 214-399-0210 (voice)  BIX: ler    UUCP: ..!utacfd.uta.edu!lerami!ler
  149. US Mail: 900 Lake Isle Circle, Irving, TX 75060-7726
  150.  
  151.  
  152.