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

Fix dump1090 segfaults #128

Merged
merged 3 commits into from
Apr 11, 2022
Merged

Fix dump1090 segfaults #128

merged 3 commits into from
Apr 11, 2022

Conversation

mikenye
Copy link
Member

@mikenye mikenye commented Apr 8, 2022

Segfault is due to compile-time optimisations in LimeSDR

# gdb -ex run --args dump1090
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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".
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:
    <https://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dump1090...
Starting program: /usr/local/bin/dump1090
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x00007ffff7d0f590 in __static_initialization_and_destruction_0(int, int) [clone .constprop.0] () from /usr/local/lib/libLimeSuite.so.20.10-1
(gdb) bt
#0  0x00007ffff7d0f590 in __static_initialization_and_destruction_0(int, int) [clone .constprop.0] () from /usr/local/lib/libLimeSuite.so.20.10-1
#1  0x00007ffff7fe1fe2 in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffecf8, env=env@entry=0x7fffffffed08) at dl-init.c:72
#2  0x00007ffff7fe20e9 in call_init (env=0x7fffffffed08, argv=0x7fffffffecf8, argc=1, l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=0x7ffff7ffe180, argc=1, argv=0x7fffffffecf8, env=0x7fffffffed08) at dl-init.c:119
#4  0x00007ffff7fd30ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffffffeed8 in ?? ()
#7  0x0000000000000000 in ?? ()

Hopefully fixes #123

@mikenye mikenye self-assigned this Apr 8, 2022
@mikenye mikenye marked this pull request as ready for review April 11, 2022 01:27
@mikenye mikenye merged commit 08a6c51 into main Apr 11, 2022
@mikenye mikenye deleted the attempt_limesdr_segfault_fix branch April 11, 2022 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker container does not start dump1090 after upgrade to 7.2
1 participant