home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!irfu.se!jhd
- From: jhd@irfu.se (Jan D.)
- Subject: how make xdb understand shared libraries.
- Message-ID: <1992Aug13.145018.17585@irfu.se>
- Date: Thu, 13 Aug 1992 14:50:18 GMT
- Organization: Swedish Institute of Space Physics, Uppsala, Sweden
- Lines: 57
-
- I frequently encounter this senario (it just happend again :-(
-
- 1. Program hangs. Type Ctrl-\ to get a core dump.
-
- 2. Start xdb:
- Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
- <<<< XDB Version A.08.07 HP-UX >>>>
- Child died due to: quit
- It appears that there's no debugging information in a.out (UE445)
- WARNING: /usr/lib/end.o was not linked with this program (UE836)
- Shared-library information cannot be made available (UE837)
- (file unknown): _doprnt +0x00000244: (line unknown)
- >t
- 0 _doprnt + 0x00000244 (0x5350554e, 0x59204445, 0x5045524c, 0x2050524f)
- 1 $RECOVER_END + 0x201b76b8 (Address not found (UE302)
-
- 3. Recompile with -g. Run and ctrl-\ again.
-
- 4, Start xdb:
- Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
- <<<< XDB Version A.08.07 HP-UX >>>>
- Child died due to: quit
- Program died in unknown location (shared library), pc = 0x80095bb7
- Ignoring core file "core".
-
- 5. Hmpf ^$%!@#* AARGH!!
-
- 6. Link with static libraries. Run and ctrl-\ once more.
-
- 7. Start xdb:
-
- Copyright Hewlett-Packard Co. 1985,1987-1991. All Rights Reserved.
- <<<< XDB Version A.08.07 HP-UX >>>>
- Child died due to: quit
- Procedures: 135
- Files: 25
- (file unknown): _XFlush +0x000000a4: (line unknown)
- >t
- 0 _XFlush + 0x000000a4 (0x40082a48, 0x68faf66c, 0x1000, 0x40068a68)
- 1 read__5RTapeFPUci + 0x00000008 (hp-ux export stub)
- 2 Viking::next_block (buf = 0x68faf66c) [Viking.C: 141]
- 3 next_block__6VikingFPUc + 0x00000008 (hp-ux export stub)
-
- [ stuff deleted ]
-
- 8. Start debugging.
-
-
- Is this a general problem with shared libraries or is it just xdb?
- Sun:s dbx has a similar behaviour but it will at least find the function
- in my source where it crashed.
- Is there any hope of getting the same info out of xdb?
-
- Or is static libraries the only way?
-
- Jan D.
-
-