home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9242 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.2 KB  |  67 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!irfu.se!jhd
  3. From: jhd@irfu.se (Jan D.)
  4. Subject: how make xdb understand shared libraries.
  5. Message-ID: <1992Aug13.145018.17585@irfu.se>
  6. Date: Thu, 13 Aug 1992 14:50:18 GMT
  7. Organization: Swedish Institute of Space Physics, Uppsala, Sweden
  8. Lines: 57
  9.  
  10. I frequently encounter this senario (it just happend again :-(
  11.  
  12. 1. Program hangs. Type Ctrl-\ to get a core dump.
  13.  
  14. 2. Start xdb:
  15.     Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
  16.     <<<< XDB Version A.08.07 HP-UX >>>>
  17.     Child died due to: quit
  18.     It appears that there's no debugging information in a.out (UE445)
  19.     WARNING: /usr/lib/end.o was not linked with this program (UE836)
  20.          Shared-library information cannot be made available (UE837)
  21.     (file unknown): _doprnt +0x00000244: (line unknown)
  22.     >t
  23.      0 _doprnt + 0x00000244 (0x5350554e, 0x59204445, 0x5045524c, 0x2050524f)
  24.      1 $RECOVER_END + 0x201b76b8 (Address not found (UE302)
  25.  
  26. 3. Recompile with -g. Run and ctrl-\ again.
  27.  
  28. 4, Start xdb:
  29.     Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
  30.     <<<< XDB Version A.08.07 HP-UX >>>>
  31.     Child died due to: quit
  32.     Program died in unknown location (shared library), pc = 0x80095bb7
  33.     Ignoring core file "core".
  34.  
  35. 5. Hmpf ^$%!@#* AARGH!!
  36.  
  37. 6. Link with static libraries. Run and ctrl-\ once more.
  38.  
  39. 7. Start xdb:
  40.  
  41.     Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
  42.     <<<< XDB Version A.08.07 HP-UX >>>>
  43.     Child died due to: quit
  44.     Procedures:    135
  45.     Files: 25
  46.     (file unknown): _XFlush +0x000000a4: (line unknown)
  47.     >t
  48.      0 _XFlush + 0x000000a4 (0x40082a48, 0x68faf66c, 0x1000, 0x40068a68)
  49.      1 read__5RTapeFPUci + 0x00000008 (hp-ux export stub)
  50.      2 Viking::next_block (buf = 0x68faf66c)    [Viking.C: 141]
  51.      3 next_block__6VikingFPUc + 0x00000008 (hp-ux export stub)
  52.  
  53.     [ stuff deleted ]
  54.  
  55. 8. Start debugging.
  56.  
  57.  
  58. Is this a general problem with shared libraries or is it just xdb?
  59. Sun:s dbx has a similar behaviour but it will at least find the function
  60. in my source where it crashed.
  61. Is there any hope of getting the same info out of xdb?
  62.  
  63. Or is static libraries the only way?
  64.  
  65.     Jan D.
  66.  
  67.