[5342] in Athena Bugs

home help back first fref pref prev next nref lref last post

dbx on E40-008-9

daemon@ATHENA.MIT.EDU (kevles@ATHENA.MIT.EDU)
Thu Jun 28 16:22:47 1990

From: kevles@ATHENA.MIT.EDU
Date: Thu, 28 Jun 90 16:22:37 -0400
To: bugs@ATHENA.MIT.EDU


Well, I don't KNOW which version it's running!

Dbx gave a user the error "cannot run outfile; outfile is inactive.

("outfile" was the name of the executable.)

All files had been compiled with -g; the source code is fortran.

The problem, as it turns out, appears to have been that there was insufficient
memory to run the program.  Here's the details from the olc log:


I am trying to use the dbx debugger.  I compile my code with:
f77 -g -o outfile main.f sub1.f /mit/nag/vaxlib/libnag13.a
I have previously attached NAG.  when I try:
% dbx outfile
I get a message:
cannot run outfile; outfile is inactive.
What does this mean? the program compiled OK. it runs when I do not use the
dbx but it has a runtime error which I am having trouble locating.

Then he found the bug in his program and fixed it, and then .,..

The dbx will NOW run the program.  What good is a debugger if you have to debug
your program first in order to use it?
Seriously though, Is this common or expected? If I compiled with -g but didnot
use dbx but merely tried to run the program, I got the response:
a.out:insufficient memory.  Why?

%size a.out  responded with bss = 7690000
while /etc/pstat -s gave 31000k free


What should have happened:
	Dbx should have given an "insufficient memory" error instead of the
uniformative error that it DID give.

If you need further information, please contact the user "jaleon".  My mail
to him mentions that I have reported his problem to you folks, and that you
might want to contact him.

Thanks.
--Beth

home help back first fref pref prev next nref lref last post