🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7617

Re: Diagnosing IEEE exceptions in C programs

#7617
From: Bruce Allen
Date: Sun, 28 Apr 1991 19:20
18 lines
1594 bytes
I have been doing a profile/optimization cycle on some code.  About 10% of
the execution time is spend in _SVID_libm_err which I assume is the
system-5 math library error handler.  In the call graph profile produced
by gprof the source of these calls is listed as <spontaneous> (I do not
know what that means!) In an attempt to find our where these calls
originated from, I used ieee_handler to redirect calls to my own error
handler.  I then ran under dbxtool and set a breakpoint within my error
handler.  The idea was, when the breakpoint is reached to use the "up"
command to move up the stack frames and find the culprit. But it does not
work.  I can move up through various levels of the ieee trap code, and
then find myself at what dbxtool claims is the top level, in a routine
called etext (error-text?).

Could someone please tell me what is going on?  What happened to the stack
frames?  How can I figure out exactly what line/function is doing the
trap?

Bruce Allen
Technical Details
Message-ID: <2671@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: ballen@convex.csd.uwm.edu (Bruce Allen)
Newsgroups: comp.sys.sun
Subject: Re: Diagnosing IEEE exceptions in C programs
Keywords: Miscellaneous
Message-ID: <2671@brchh104.bnr.ca>
Date: 28 Apr 91 19:20:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 19
Approved: Sun-Spots@rice.edu
X-Original-Date: 25 Apr 91 16:22:49 GMT
X-Refs:  Original: v10n86
X-Sun-Spots-Digest: Volume 10, Issue 91, message 11
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu