-
Notifications
You must be signed in to change notification settings - Fork 40
Draw grid option (-g) results in SIGFPE #73
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
$ astroterm -g
Floating point exception (core dumped)
$ rpm -qf $(which astroterm)
astroterm-1.0.5-1.fc41.x86_64
$ rpm -q --changelog astroterm
* Tue Jan 21 2025 Jonathan Wright <[email protected]> - 1.0.5-1
- Initial package build rhbz#2339148
This looks like a division by 0 (90 / inc + 1 where inc is 0).
$ gdb astroterm
GNU gdb (Fedora Linux) 15.2-4.fc41
Copyright (C) 2024 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-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from astroterm...
Reading symbols from /usr/lib/debug/usr/bin/astroterm-1.0.5-1.fc41.x86_64.debug...
(gdb) r -g
Program received signal SIGFPE, Arithmetic exception.
0x00005555555580cb in render_azimuthal_grid (win=0x5555558c56b0, config=0x7fffffffccd0) at ../src/core_render.c:282
282 int number_angles = 90 / inc + 1;
(gdb) bt
#0 0x00005555555580cb in render_azimuthal_grid (win=0x5555558c56b0, config=0x7fffffffccd0) at ../src/core_render.c:282
#1 main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:183
(gdb) p inc
$1 = 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working