From: "Andy G." <adgospod@gmail•com>
To: linuxppc-embedded@ozlabs•org
Subject: SIGFPE on 8245
Date: Fri, 19 Aug 2005 15:40:42 -0400 [thread overview]
Message-ID: <bdfc5d6e05081912406b1a3840@mail.gmail.com> (raw)
I'm working with a rather large multi-threaded application that after
a several hour run will often produce a floating point exception
(specifically a divide by zero exception). I've manged to catch the
signal and use some home grown code to examine the current state of
the running thread as well as all of the others, but sadly this debug
information never provides any valuable information. It appears as
though the crash is happening in the pthread library when trying to
execute a floating point store instruction (0x8114 listed below).
00008108 <__pthread_timedsuspend_new>:
8108: 7d 80 00 26 mfcr r12
810c: 94 21 fc 90 stwu r1,-880(r1)
8110: 7c 08 02 a6 mflr r0 =
=20
8114: d9 c1 02 e0 stfd f14,736(r1) <--- SIGFPE happens here =
=20
After looking over the 32-bit PPC Programming Env Manual it seems to
me that the floating point operations that result in +/- infinity will
disable the FPU and write the FPECR with the cause. Next time a
floating point instruction is attempted we will get an exception since
the FPU is disabled and then we will throw the exception.
This information unfortunately tells me that I have to start digging
through the source code to find the programming error, but I'm hoping
I'm wrong about this. Any advice or tips?
Thanks in advance,
-andy
reply other threads:[~2005-08-19 19:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bdfc5d6e05081912406b1a3840@mail.gmail.com \
--to=adgospod@gmail$(echo .)com \
--cc=andy@greyhouse$(echo .)net \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox