home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / bug / 2804 < prev    next >
Encoding:
Text File  |  1992-11-20  |  3.5 KB  |  86 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!valeron.che.wisc.edu!epperly
  3. From: epperly@valeron.che.wisc.edu (Tom Epperly)
  4. Subject: gcc 2.3.1 looses compiling ghostscript 2.5.2 on a DECstation 3100
  5. Message-ID: <9211202212.AA01959@valeron.che.wisc.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 20 Nov 1992 10:12:20 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 73
  12.  
  13. I have gcc 2.3.1 compiled on a DECstation 3100, Ultrix 4.2.
  14. ghostscript 2.5.2 compiles with gcc without giving any warning
  15. messages, but when I try to run it.  I get the following message
  16.  
  17. > ./gs -DNODISPLAY
  18. Initializing... Unrecoverable error: Unrecoverable error: Unrecoverable error: Unrecoverable error: Unrecoverable error: Unrecoverable error: Unrecoverable error: Unreco
  19.  
  20. The "Unrecoverable error" keeps repeating as fast as possible.  Ultrix
  21. cc compiles gs 2.5.2 correctly.
  22.  
  23. I did some hunting with gdb, and the following may be useful.  I can't
  24. be sure because I don't know ghostscript well enough.
  25.  
  26. (gdb) cont
  27. Continuing.
  28.  
  29. Breakpoint 64, zstring (op=0x10010ed8) at zstring.c:45
  30. 45                      return e_rangecheck;
  31. (gdb) where
  32. #0  zstring (op=0x10010ed8) at zstring.c:45
  33. #1  0x4084e4 in interp (pref=0x7fffbb48, perror_object=0x7fffbb70)
  34.     at interp.c:606
  35. #2  0x406e34 in gs_interpret (pref=0x7fffbb48, user_errors=1, 
  36.     pexit_code=0x7fffbb6c, perror_object=0x7fffbb70) at interp.c:182
  37. #3  0x42980c in gs_run_file (file_name=0x1000427c "gs_init.ps", user_errors=1, 
  38.     pexit_code=0x7fffbb6c, perror_object=0x7fffbb70) at gsmain.c:170
  39. #4  0x429594 in gs_init2 () at gsmain.c:122
  40. #5  0x4004a4 in main (argc=2, argv=0x7fffbbe4) at gs.c:193
  41. (gdb) list
  42. 40      zstring(register os_ptr op)
  43. 41      {       byte *sbody;
  44. 42              uint size;
  45. 43              check_type(*op, t_integer);
  46. 44              if ( op->value.intval < 0 || (ulong)(op->value.intval) > max_uint )
  47. 45                      return e_rangecheck;
  48. 46              size = op->value.intval;
  49. 47              sbody = (byte *)alloc(size, 1, "string");
  50. 48              if ( sbody == 0 ) return e_VMerror;
  51. 49              make_tasv(op, t_string, a_all, size, bytes, sbody);
  52. (gdb) print *op
  53. $24 = {tas = {type_attrs = 896, rsize = 1}, value = {intval = 128, 
  54.     index = 128, realval = <invalid float value>, 
  55.     bytes = 0x80<Address 0x80 out of bounds>, 
  56.     const_bytes = 0x80<Address 0x80 out of bounds>, refs = 0x80, 
  57.     const_refs = 0x80, pname = 0x80, const_pname = 0x80, pdict = 0x80, 
  58.     const_pdict = 0x80, packed = 0x80, opproc = 0x80, pfile = 0x80, 
  59.     pfont = 0x80, pcond = 0x80, plock = 0x80, pdevice = 0x80, pgstate = 0x80, 
  60.     psave = 0x80}}
  61. (gdb) print max_unit
  62. No symbol "max_unit" in current context.
  63. // comment from std.h
  64. std.h:#define max_uint ((uint)0xffffffff + (uint)0)
  65. (gdb) print max_uint
  66. No symbol "max_uint" in current context.
  67. (gdb) print (unsigned long)(op->value.intval)
  68. $25 = 128
  69. (gdb) print op->value.intval
  70. $26 = 128
  71. (gdb) print (unsigned long)(op->value.intval) > ((unsigned int)0xffffffff + (un
  72. signed int)0)
  73. $27 = 0
  74. (gdb) where
  75. #0  zstring (op=0x10010ed8) at zstring.c:45
  76. #1  0x4084e4 in interp (pref=0x7fffbb48, perror_object=0x7fffbb70)
  77.     at interp.c:606
  78. #2  0x406e34 in gs_interpret (pref=0x7fffbb48, user_errors=1, 
  79.     pexit_code=0x7fffbb6c, perror_object=0x7fffbb70) at interp.c:182
  80. #3  0x42980c in gs_run_file (file_name=0x1000427c "gs_init.ps", user_errors=1, 
  81.     pexit_code=0x7fffbb6c, perror_object=0x7fffbb70) at gsmain.c:170
  82. #4  0x429594 in gs_init2 () at gsmain.c:122
  83. #5  0x4004a4 in main (argc=2, argv=0x7fffbbe4) at gs.c:193
  84. (gdb) step
  85.  
  86.