# Floating point exception

**URL:** <https://community.asterisk.org/t/floating-point-exception/28164>\
**Category:** Asterisk Support\
**Created:** [July 28, 2009, 2:02am UTC](https://community.asterisk.org/t/floating-point-exception/28164 "2009-07-28T02:02:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dozment](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dozment](https://community.asterisk.org/u/dozment)\
**Post date:** [July 28, 2009, 2:02am UTC](https://community.asterisk.org/t/floating-point-exception/28164/1 "2009-07-28T02:02:07Z")

</div>

I’m running 1.4.23 and trying to figure out why asterisk is crashing occasionally. It happened twice today. The events in the logs just prior to the crash are never the same. I don’t see anything there that suggests a problem (at least not to me). Today, when it disconnected I saw this on the console.

Disconnected from Asterisk server  
/usr/sbin/safe\_asterisk: line 111: 19523 Floating point exception(core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} \>&/dev/${TTY} \</dev/${TTY}  
Asterisk ended with exit status 136  
Asterisk exited on signal 8.  
Automatically restarting Asterisk.  
root@um-882 /var/log/asterisk\> mpg123: no process killed

I have no idea where to start debuging this. I assume the floating point exception is what is causing the problem. We’re running 1.4.23 with rx\_fax. Any ideas?

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [July 28, 2009, 11:14am UTC](https://community.asterisk.org/t/floating-point-exception/28164/2 "2009-07-28T11:14:43Z")

</div>

Read docs/backtrace.txt and then submit the results to [issues.asterisk.org](http://issues.asterisk.org).

First make sure that it was built for the correct processor type.

---

<div class="post-metadata">

**Author:** ![wowks](https://avatars.discourse-cdn.com/v4/letter/w/b9e5f3/32.png) [@wowks](https://community.asterisk.org/u/wowks)\
**Post date:** [July 28, 2009, 2:35pm UTC](https://community.asterisk.org/t/floating-point-exception/28164/3 "2009-07-28T14:35:00Z")

</div>

In this case, I wouldn’t start with core files.  
Could you _start_ with hardware change?

---

<div class="post-metadata">

**Author:** ![dozment](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dozment](https://community.asterisk.org/u/dozment)\
**Post date:** [July 28, 2009, 4:07pm UTC](https://community.asterisk.org/t/floating-point-exception/28164/4 "2009-07-28T16:07:04Z")

</div>

The change to the server was a memory upgrade from 1gb to 2gb about two weeks ago. I believe this was happening before then. Not sure how to check the processor type it was built for, but it was complied on this machine. The machine has twp Pentium 4’s, and it is running…

root@um-882 /tmp\> uname -a  
Linux [um-882.xxxxxxxx.com](http://um-882.xxxxxxxx.com) 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 14 16:12:46 EST 2009 i686 i686 i386 GNU/Linux

Does that help, or do I need to look further at the processor?

Backtrace says something about the core dump being not very useful if Asterisk is complied without the DONT\_OPTIMIZE flag, and it was complied without the flag. I do have a core dump from the last time this happened. Should I submit it to issues even though I didn’t have DONT\_OPTIMIZE?

I have recomplied with DON\_OPTIMIZE, but haven’t installed… After I do that I will have to wait for it to die again to get another dump. So, I wonder if I should go ahead and submit what I’ve got.

Thanks for the suggestions!

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [July 28, 2009, 4:10pm UTC](https://community.asterisk.org/t/floating-point-exception/28164/5 "2009-07-28T16:10:28Z")

</div>

They don’t normally look at optimised ones, because too much information is lost.

I think the “check the machine first” comment was suggesting that you eliminate the possibility of faulty hardware.

---

<div class="post-metadata">

**Author:** ![dozment](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dozment](https://community.asterisk.org/u/dozment)\
**Post date:** [July 28, 2009, 5:00pm UTC](https://community.asterisk.org/t/floating-point-exception/28164/6 "2009-07-28T17:00:11Z")

</div>

Ok, I will hold off posting until I have optimize turned off in production. Any reason to not just leave it that way permanently? Does optimization use less resources? I saw a suggestion somewhere that I also turn on debug threads, so I’ve built it with that flag as well.

As for hardware, it’s a basic machine, no line cards, etc. I originally used zt\_dummy for timing, but have upgraded to dahdi\_dummy. I’m also using app\_rxfax. Any need for worry there?

Thanks, again for the suggestions. I will “make install” tonight, and post to issues if I get another dump.
