gdb and dbx question

From: P L (jsyzghan_at_yahoo.com)
Date: 11/17/03


Date: 17 Nov 2003 13:52:17 -0800

I have an app on Solaris 2.8 that cored. The app was compiled with -g
on Solaris 2.6. Both dbx and gdb seems to report incorrect stack
traces. In dbx report, one function takes NULL as arg, which according
to the source code, should return immediately; yet dbx shows quite a
few stack frames on top of that function. In gdb report, some
functions take arguments that are never passed to the functions
according to the source code. On the other hand, dbx and gdb report
similar but different stack pointers, and similar but different
function arguments. They both reports the same functions in the stack
trace. Can someone shed some light?

BTW, I googled the Internet but didn't find a faq on dbx or gdb. Does
any one knows anything about it? Thanks. -PL



Relevant Pages

  • Re: Crash in except.__DoThrow
    ... Previous stack was from gdb, dbx shows much wired stuff... ... unnamed block $b3564, line 227 in "vrtsat_api.cpp" ...
    (comp.unix.aix)
  • Re: gdb for Solaris 10
    ... gdb - GNU source level debugger ... You are using g++ as the compiler, this is probably dbx doesn't ... |$ cat -n keramida.h ...
    (comp.unix.solaris)
  • Re: ftrace - graph tracer for Microblaze
    ... irqsoff tracing for free. ... your post which is at http://lkml.org/lkml/2009/8/21/319 but you don't have any zero size stack size. ... contents of the report from save_stack_trace. ...
    (Linux-Kernel)
  • Re: What cause " stack overflow " ?
    ... The code below does not seem to cause a stack ... This does not mean that it is CTrackPanel that caused the fault. ... sometimes it report " not enough memory", ... log creations of CTrackPanel and log the stack value along with it ...
    (microsoft.public.vc.language)
  • Re: wdb 3.1.5 cores on printf??????
    ... > chris wrote: ... > You need to report in more detail what problem you are encountering. ... /home/me/ppvprov-util> gdb show version ... showing the hourglass waiting icon. ...
    (comp.sys.hp.hpux)