exp(anything_but_0) dumps core

Peter J. Holsberg pjh at mccc.edu
Tue Mar 19 07:18:39 AEST 1991


I have a program:

#include <stdio.h>
#include <math.h>
main()
{
	double y;
	y=exp(1.0);
}

that compiles OK but dumps core when run (the message is 'Floating
exception').  Running 'strings' on the binary yields:

@(#)/usr/ccs/lib/libm.a/exp.o.sl 1.1 5.0-3 11/05/89 65417 AT&T-SF 0.0

I'm using the AT&T Standard C (i.e., "ANSI C") Development Environment
(SCDE) 5.0/3 05/25/90 on a 6386 running AT&T UNIX System V/386 R3.2 2.2.

'sum /usr/ccs/lib/libm.a' yields
	17278 147 libm.a

The Hot Line says that they have an identical setup and that it works
perfectly on theirs.  I'm baffled.

Help!  Please....

Thanks,
Pete
-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh at mccc.edu	     Trenton Computer Festival -- 4/20-21/91



More information about the Comp.sys.att mailing list