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: Re: CC and /usr/lib/dld.sl
- Message-ID: <1992Sep5.121444.13996@irfu.se>
- Date: Sat, 5 Sep 1992 12:14:44 GMT
- References: <1992Sep1.091000.14893@irfu.se> <7371285@hpfcso.FC.HP.COM>
- Organization: Swedish Institute of Space Physics, Uppsala, Sweden
- Lines: 39
-
- In article <7371285@hpfcso.FC.HP.COM> mjs@hpfcso.FC.HP.COM (Marc Sabatella) writes:
- >In comp.sys.hp, jhd@irfu.se (Jan D.) writes:
- >
- >> Thanks for your answer. But I still get this from xdb:
- >>
- >> <<<< XDB Version A.08.07 HP-UX >>>>
- >> Child died due to: segmentation violation
- >> Program died in unknown location (shared library), pc = 0x1000003
- >> Ignoring core file "core".
- >
- >Try running the program under xdb, rather than simply using it to analyze the
- >core file. Then it should at least be able to tell you which library it died
- >in. If it indeed died in libdld.sl, there would seem to be a problem with the
- >C++ and/or shared library implementation. But 0x1000003 is a suspiciously
- >bogus looking address; I suspect really the program just did something very bad
- >and confused xdb into thinking it had something to do with shared libraries.
- >
-
- Yes it indeed did something very bad (actually very, very bad :-).
- Found it at last. The error message from xdb got me looking in the wrong place.
-
- Steve Taylor wrote:
-
- "(shared library)" is simply an 'a priori' best guess as to
- the cause of the problem. All the debugger really knows is
- "unknown location" (i.e., not an address in the executable's
- text segment) and the value of the pc.
-
- OK, from now on I'll take it to mean
- 'you did something bad and the stack got messed up, please check your code'
-
- What happend was that I added a variable to a class, but not all users
- of the class was recompiled.
-
- Thanks for your answers,
-
- Jan D. (now heavy user of makedepend)
-
-
-