'core' & stack traces - (nf)

notes at pur-ee.UUCP notes at pur-ee.UUCP
Fri Nov 25 13:32:10 AEST 1983


#N:ecn-ee:13000001:000:783
ecn-ee!davy    Nov 24 22:17:00 1983


Two things:

	1) Has anybody got a program which prints a stack trace of
	   a program given a.out and core?  I KNOW "sdb" will do it,
	   but sdb doesn't work on 4.2 BSD.

	   I'm looking for something that prints output like:

		program died on line XXX of YYY.c:
			<program source code line>

		stack trace of program:

			foo(123, 456, 789) [YYY.c:XXX]
			bar(10) [YYY.c:ZZZ]
			goo() [YYY.c:AAA]
			main(1234567, 98765433, 3242) [YYY.c:BBB]
	
	2) Can anybody explain to me EXACTLY what a "core" file looks
	   like?  I know it's got a user structure, the user area, and
	   the data + stack segments, but that's all I've been able to
	   find in the documentation.  How do you interpret all the
	   crap that's in there?  

--Dave Curry
decvax!pur-ee!davy
eevax.davy at purdue



More information about the Comp.unix.wizards mailing list