Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program received signal SIGFPE, Arithmetic exception. #208

Closed
naev opened this issue Mar 14, 2015 · 3 comments
Closed

Program received signal SIGFPE, Arithmetic exception. #208

naev opened this issue Mar 14, 2015 · 3 comments
Labels
Priority-Medium Affects important parts of the game hampering the player's experience. Type-Defect Issue relates to a defect in the game that has to be corrected.

Comments

@naev
Copy link
Collaborator

naev commented Mar 14, 2015

Original issue 24 created by mountain... on 2009-08-30T16:50:21.000Z:

Discovered using latest Trunk built on a 64bit Ubuntu 9.04 system.
I don't know what the git version of "svn info" is, but the most recent
entry from "git log" is this:
commit 76671b2
Author: Edgar Simo <bobbens@gmail.com>
Date: Sun Aug 30 11:03:36 2009 +0200

First witnessed when attempting to change targets whilst battling several
pirates.
Reproduced (after restarting under gdb) in a different system fighting
different pirates.

gdb output:
mountaineer@cheezeburger:~/workspace/nonwork/naev$ gdb ./naev
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) r
Starting program: /home/mountaineer/workspace/nonwork/naev/naev
[Thread debugging using libthread_db enabled]
[New Thread 0x7f650eace740 (LWP 19907)]
NAEV v0.4.0
Sea of Darkness

SDL: 1.2.13 [compiled: 1.2.13]

OpenGL Window Created: 1680x1050@24bpp window
r: 8, g: 8, b: 8, a: 0, db: yes, fsaa: 0, tex: 8192
Renderer: GeForce 8600M GT/PCI/SSE2
Version: 3.0.0 NVIDIA 180.44

[New Thread 0x7f6502ba4950 (LWP 19910)]
[New Thread 0x7f65023a3950 (LWP 19911)]
OpenAL Echo not found, disabling.
OpenAL started: 44100 Hz
Renderer: OpenAL Soft
Version: 1.1 with EFX 1.0

Loaded 32 sounds
[New Thread 0x7f6501ba2950 (LWP 19912)]
Loaded 32 songs
Loaded 15 AI Profiles
Loaded 16 Nebula Layers
Loaded 15 Commodities
Loaded 16 Factions
Loaded 31 Missions
Loaded 4 Events
Loaded 64 Outfits
Loaded 26 Ships
Loaded 40 Fleets
Loaded 76 Star Systems with 51 Planets

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7f650eace740 (LWP 19907)]
0x00007f650e76d060 in ?? () from /lib/libm.so.6
(gdb) bt full

 0 0x00007f650e76d060 in ?? () from /lib/libm.so.6

No symbol table info available.

 1 0x00007f650e77e3cf in sqrt () from /lib/libm.so.6

No symbol table info available.

 2 0x00000000004726d3 in pilot_update (pilot=0x6db0d10,

dt=0.0070000000000000001) at src/pilot.c:1434
i = 8
l = 4693836
target = (Pilot *) 0x7fff16bf9990
a = 15.491933384829668
px = 0
py = 2254.8985658923102
vx = 0.18861160474165944
vy = 0.99941459015135092
buf = "y�&1\b�|?p\022o\024\000\000\000"
o = (PilotOutfitSlot *) 0x1e07c538

 3 0x00000000004776f3 in pilots_update (dt=0.0070000000000000001) at

src/pilot.c:3211
i = 1
p = (Pilot *) 0x6db0d10

 4 0x000000000044f76c in update_routine (dt=0.0070000000000000001) at

src/naev.c:590
No locals.

 5 0x000000000044f735 in update_all () at src/naev.c:576

tempdt = 4.1719710447851833e-309
fps_min = 0.02

 6 0x000000000044f4af in main_loop () at src/naev.c:507

tk = 0
__func__ = &quot;main_loop&quot;

 7 0x000000000044ed6c in main (argc=1, argv=0x7fff16bfab78) at

src/naev.c:281
buf = "/home/mountaineer/.naev/conf.lua", '\0' <repeats 1208 times>,
"\025�\236\016e\177", '\0' <repeats 11 times>, "��
\016e\177\000\000\226�r\re\177\000\000\024[\236\016e\177\000\000\rV\230\fe\1
77\000\000\024[\236\016e\177\000\000\000\000\000\000\000\000\000\000\025�
\236\016e\177\000\000\000\000\000\000\000\000\000\000(տ\016e\177\000\000A�
%\fe\177\000\000\001\000\000\220\000\000\000\000\002\000\000\000\000\000\000
\000\000\000\000\200\000\000\000\000\001\000\000\000\000\000\000\000\000��
\016e\177\000\0007�%\fe\177\000\000\024[\236\016e\177", '\0' <repeats 13
times>...
event = {type = 3 '\003', active = {type = 3 '\003', gain = 0 '\0',
state = 0 '\0'}, key = {type = 3 '\003',
which = 0 '\0', state = 0 '\0', keysym = {scancode = 65 'A', sym =
SDLK_SPACE, mod = KMOD_NUM, unicode = 0}}, motion = {
type = 3 '\003', which = 0 '\0', state = 0 '\0', x = 38977, y = 5823,
xrel = 32, yrel = 0}, button = {type = 3 '\003',
which = 0 '\0', button = 0 '\0', state = 0 '\0', x = 38977, y = 5823},
jaxis = {type = 3 '\003', which = 0 '\0',
axis = 0 '\0', value = -26559}, jball = {type = 3 '\003', which = 0
'\0', ball = 0 '\0', xrel = -26559, yrel = 5823},
jhat = {type = 3 '\003', which = 0 '\0', hat = 0 '\0', value = 0 '\0'},
jbutton = {type = 3 '\003', which = 0 '\0',
button = 0 '\0', state = 0 '\0'}, resize = {type = 3 '\003', w =
381655105, h = 32}, expose = {type = 3 '\003'}, quit = {
type = 3 '\003'}, user = {type = 3 '\003', code = 381655105, data1 =
0x100000000020, data2 = 0x0}, syswm = {
---Type <return> to continue, or q <return> to quit---
type = 3 '\003', msg = 0x100000000020}}
func = "main"

@naev
Copy link
Collaborator Author

naev commented Mar 14, 2015

Comment #1 originally posted by bobbens on 2009-08-30T17:00:23.000Z:

Hello,

It seems like the FPU exception is coming out of the sqrt, don't think there's much I
can do with that since it's not caused directly by NAEV. What I'm going to do is
disable FPU exceptions by default, since many libraries don't properly check for them
and that gives issues. You should set the "fpu_except" parameter in your
.naev/conf.lua to "false" for now (since it will have saved it as true automatically).

Edgar

@naev naev self-assigned this Mar 14, 2015
@naev naev added Type-Defect Issue relates to a defect in the game that has to be corrected. Priority-Medium Affects important parts of the game hampering the player's experience. NAEV-TRUNK labels Mar 14, 2015
@naev
Copy link
Collaborator Author

naev commented Mar 14, 2015

Comment #2 originally posted by mountain... on 2009-09-01T07:02:27.000Z:

Since modifying the fpu_except parameter to false I've played for nearly 2 hours
constantly battling pirates and have not seen the issue recur.

@naev
Copy link
Collaborator Author

naev commented Mar 14, 2015

Comment #3 originally posted by bobbens on 2009-09-06T20:37:28.000Z:

OK, going to file as Fixed although I don't like it much. However it doesn't look
like it's naev's fault itself, so I don't really have much choice. Thanks for the report.

@naev naev closed this as completed Mar 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority-Medium Affects important parts of the game hampering the player's experience. Type-Defect Issue relates to a defect in the game that has to be corrected.
Projects
None yet
Development

No branches or pull requests

0 participants