home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / sysv386 / 13872 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  5.4 KB

  1. Path: sparky!uunet!wupost!usc!news!horizon!sceard!peregrine!ccicpg!phoenix!johnr
  2. From: johnr@phoenix.irv.icl.com (John Redden)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: gdb/EsixV.4.0.3/TDK
  5. Message-ID: <1992Aug27.211924.7277@phoenix.irv.icl.com>
  6. Date: 27 Aug 92 21:19:24 GMT
  7. Organization: ICL North America, Irvine, CA 92718
  8. Lines: 136
  9.  
  10.  
  11. I have been working on a couple of ports of gdb, one with lots of
  12. hacking to a SysV4 sparc box and one to Esix V.4.0.3, running on a TDK
  13. i486.  Now the port for Esix is "supposed" to be almost be a compile
  14. and go.  When I run gdb after a program completes or the first break
  15. point is hit, gdb core dumps.  It was configured with your standard
  16. i386sv4 config file.  
  17.  
  18. Here is the back trace:
  19.  
  20. ---------------------------------
  21.  
  22. Script started on Mon Aug 24 17:37:28 1992
  23. $ gdb /usr/local/bin/NEWgdb core
  24. GDB is free software and you are welcome to distribute copies of it
  25.  under certain conditions; type "show copying" to see the conditions.
  26. There is absolutely no warranty for GDB; type "show warranty" for details.
  27. GDB 4.3, Copyright 1991 Free Software Foundation, Inc...
  28. Core was generated by `NEWgdb /home/redden/src/tti/net/dice/roll'.
  29. Program terminated with signal 11, Segmentation fault.
  30. #0  0xfff in ?? ()
  31. (gdb) bt
  32. #0  0xfff in ?? ()
  33. #1  0xffffffff in ?? ()
  34. #2  0x808f17f in terminal_ours_1 (output_only=0) at inflow.c:233
  35. #3  0x808f109 in terminal_ours () at inflow.c:205
  36. #4  0x8065d14 in wait_for_inferior () at infrun.c:818
  37. #5  0x8065b0b in child_create_inferior (
  38.     exec_file=0x811e2c8 "/home/redden/src/tti/net/dice/roll", 
  39.     allargs=0x8119008 "3", env=0x8123288) at infrun.c:681
  40. #6  0x806439e in run_command (args=0x811a00c "3", from_tty=1) at infcmd.c:246
  41. #7  0x804ad93 in execute_command (p=0x811a00c "3", from_tty=1) at main.c:882
  42. #8  0x804af0e in command_loop () at main.c:943
  43. #9  0x804ac44 in main (argc=2, argv=0x8047e3c) at main.c:820
  44. #10 0x804a07f in _start ()
  45. (gdb) quit
  46. $ exit
  47.  
  48. ---------------------------------------
  49.  
  50. It is crashing when setting the process group:
  51.  
  52. <code segment from inflow.c>  
  53.  
  54.  
  55. #ifdef TIOCGPGRP
  56.       osigttou = (void (*) ()) signal (SIGTTOU, SIG_IGN);
  57.  
  58.       result = ioctl (0, TIOCGPGRP, &pgrp_inferior);
  59.       result = ioctl (0, TIOCSPGRP, &pgrp_ours); /*<- METHINKS IT FAILS HERE*/
  60.  
  61.       signal (SIGTTOU, osigttou);
  62. #else
  63.       signal (SIGINT, sigint_ours);
  64.       signal (SIGQUIT, sigquit_ours);
  65. #endif /* TIOCGPGRP */
  66.  
  67. --------------------------------------
  68.  
  69. <RUNNING TRUSS ON NEWgdb RENDERS:>
  70.  
  71.  
  72. script done on Mon Aug 24 17:44:17 1992
  73. Script started on Mon Aug 24 18:14:42 1992
  74. $ truss NEWgdb /home/redden/src/tti/net/dice/roll
  75. execve("/usr/local/bin/NEWgdb", 0x08047E40, 0x08047E4C)  argc = 2
  76. open("/dev/zero", O_RDONLY, 020000537744)       = 3
  77. mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x8002E000
  78. getuid()                                        = 102  [ 102 ]
  79. getuid()                                        = 102  [ 102 ]
  80. getgid()                                        = 1  [ 1 ]
  81. getgid()                                        = 1  [ 1 ]
  82. open("/usr/lib/libsocket.so", O_RDONLY, 020000537744) = 4
  83. read(4, "7F E L F010101\0\0\0\0\0".., 308)      = 308
  84.  
  85. mmap(0x00000000, 59224, PROT_READ, MAP_PRIVATE, 3, 0) = 0x80030000
  86. mmap(0x80030000, 45996, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x80030000
  87. mmap(0x8003C000, 3620, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 45056) = 0x8003C000
  88. mprotect(0x8003D000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
  89. close(4)                                        = 0
  90. open("/usr/lib/libnsl.so", O_RDONLY, 020000537744) = 4
  91. read(4, "7F E L F010101\0\0\0\0\0".., 308)      = 308
  92. mmap(0x00000000, 217736, PROT_READ, MAP_PRIVATE, 3, 0) = 0x80040000
  93. mmap(0x80040000, 180084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x80040000
  94. mmap(0x8006C000, 19248, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 176128) = 0x8006C000
  95. mprotect(0x80071000, 20480, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
  96. close(4)                                        = 0
  97. close(3)                                        = 0
  98. sysi86(SI86FPHW, 0x8002C4C0, 0x8002BFE4, 0x8000B185) = 0x00000000
  99. brk(0x081155C0)                                 = 0
  100. getcontext(0x08114980)
  101.  
  102.    ...
  103.  
  104. <A BUNCH OF STUFF DELETED>
  105.  
  106.    ...
  107.  
  108. read(5, "\0\0\080 tE00280B8A50280".., 20)       = 20
  109. ioctl(5, PIOCRUN, 0x08102830)                   = 0
  110. ioctl(5, PIOCSTATUS, 0x08102888)                = 0
  111. d3 = ioctl(5, PIOCWSTOP, 0x08102888)    (sleeping...)
  112.     Received signal #18, SIGCLD, in ioctl() [default]
  113.       siginfo: SIGCLD CLD_EXITED pid=8042 uid=2 status=0x0000
  114. ioctl(5, PIOCWSTOP, 0x08102888)                 Err#2  ENOENT
  115. wait()                                          = 8042  [ 0x0000 ]
  116. sigaction(SIGTTOU, 0x00000000, 0x08047B74)      = 0
  117. sigaction(SIGTTOU, 0x08047B74, 0x08047B54)      = 0
  118. ioctl(0, TIOCGPGRP, 0x0810F7E4)                 = 0
  119.     Received signal #27, SIGTTOU, in ioctl() [caught]
  120. ioctl(0, TIOCSPGRP, 0x0810F7F0)                 Err#4  EINTR
  121.     Received signal #25, SIGCONT [default]
  122.       siginfo: SIGCONT pid=8032 uid=102
  123.     Incurred fault #6, FLTBOUNDS  %pc = 0x00000FFF
  124.       siginfo: SIGSEGV SEGV_MAPERR addr=0x00001000
  125.     Received signal #11, SIGSEGV [default]
  126.       siginfo: SIGSEGV SEGV_MAPERR addr=0x00001000
  127.         *** process killed ***
  128. $ quit
  129. /bin/ksh: quit:  not found
  130. $ exit
  131.  
  132. script done on Mon Aug 24 18:19:23 1992
  133.  
  134.  
  135.  
  136. ----------------------------------
  137.  
  138. Has anyone ran into this one?
  139.  
  140. Help or information would be greatly appreciated.
  141.  
  142. John Redden
  143.  
  144. johnr@al.irv.icl.com (work)
  145.