BatchDrake / SigDigger

Qt-based digital signal analyzer, using Suscan core and Sigutils DSP library
https://batchdrake.github.io/SigDigger/
GNU General Public License v3.0
944 stars 93 forks source link

core dump with SigDigger 0.1 #95

Closed fe8769a closed 1 year ago

fe8769a commented 4 years ago

Hello

tryed new version with B210 ettus . Previous version was working fine

Stop with core dump error

/opt/SigDigger/bin/SigDigger linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_003.009.002-0-gf18abe54

[INFO] Detected Device: B210 [INFO] Operating over USB 3. [INFO] Initialize CODEC control... [INFO] Initialize Radio control... [INFO] Performing register loopback test... [INFO] pass [INFO] Performing register loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Asking for clock rate 16.000000 MHz... [INFO] Actually got clock rate 16.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass [INFO] Setting master clock rate selection to 'automatic'. Error: C++ API exception: expression `obj = suscan_object_get_field(this->instance, field.c_str())' failed in include/Suscan/Object.h:173 [INFO] Detected Device: B210 [INFO] Operating over USB 3. [INFO] Initialize CODEC control... [INFO] Initialize Radio control... [INFO] Performing register loopback test... [INFO] pass [INFO] Performing register loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Asking for clock rate 16.000000 MHz... [INFO] Actually got clock rate 16.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass [INFO] Setting master clock rate selection to 'automatic'. [INFO] Asking for clock rate 32.000000 MHz... [INFO] Actually got clock rate 32.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass Erreur de segmentation (core dumped)

BatchDrake commented 4 years ago

Hi,

Is this one of the precompiled AppImages in the latest release? If that's the case, are you running the lite or the full version? Which version was the previous one you were using?

If you've built SigDigger from sources, please double check that you've built sigutils, suscan, SuWidgets and SigDigger from the master branch, in this precise order. Have in mind that you have to run make install in every subproject before moving to the next one.

If this error persists, could you send me a backtrace of the crash? You can do it with gdb by performing the following steps (you may need to install it from your GNU/Linux distribution repositories):

  1. Open a terminal and go to SigDigger's directory (basically where the SigDigger executable is)
  2. Run gdb ./SigDigger, you should see a lot of copyright strings and a prompt saying (gdb).
  3. In the (gdb) prompt, type run. SigDigger will atempt to start.
  4. After reproducing the crash, you should see the (gdb) prompt again in your terminal window. Then, type bt
  5. A list of function calls should show up. Copy and paste it right here.

Thanks!

fe8769a commented 4 years ago

Hello Previous version was working fine - compiled from source and lite or full version

Now

With the full version I have :+1:

./SigDigger-0.1.0-x86_64-full.AppImage QApplication: invalid style override passed, ignoring it. /tmp/.mount_SigDigcXv1nG/usr/bin/SigDigger.app: symbol lookup error: /tmp/.mount_SigDigcXv1nG/usr/bin/../lib/libQt5Gui.so.5: undefined symbol: hb_font_funcs_set_font_h_extents_func

With lite version :+1:

The same message

With the version builded from source the error core dump

I did as same I did for the working version

Make , make install et sudo ldconfig each time

here is the gdb result

gdb /opt/SigDigger/bin/SigDigger GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 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". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://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 /opt/SigDigger/bin/SigDigger...(no debugging symbols found)...done. (gdb) run Starting program: /opt/SigDigger/bin/SigDigger [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe9b4d700 (LWP 3070)] [New Thread 0x7fffdd2b1700 (LWP 3073)] [New Thread 0x7fffd6bdf700 (LWP 3074)] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_003.009.002-0-gf18abe54

[New Thread 0x7fffccb16700 (LWP 3075)] [Thread 0x7fffccb16700 (LWP 3075) exited] [New Thread 0x7fffccb16700 (LWP 3076)] [Thread 0x7fffccb16700 (LWP 3076) exited] [New Thread 0x7fffccb16700 (LWP 3077)] [New Thread 0x7fffcc315700 (LWP 3078)] [New Thread 0x7fffcbb14700 (LWP 3079)] [New Thread 0x7fffcb313700 (LWP 3080)] [Thread 0x7fffcb313700 (LWP 3080) exited] [New Thread 0x7fffcb313700 (LWP 3081)] [Thread 0x7fffcb313700 (LWP 3081) exited] [New Thread 0x7fffcb313700 (LWP 3082)] [Thread 0x7fffcb313700 (LWP 3082) exited] [New Thread 0x7fffcb313700 (LWP 3083)] -- Loading firmware image: /usr/local/share/uhd/images/usrp_b200_fw.hex... [Thread 0x7fffcb313700 (LWP 3083) exited] [New Thread 0x7fffcb313700 (LWP 3123)] [Thread 0x7fffcb313700 (LWP 3123) exited] [New Thread 0x7fffcb313700 (LWP 3124)] [Thread 0x7fffcb313700 (LWP 3124) exited] [New Thread 0x7fffcb313700 (LWP 3125)] [Thread 0x7fffcb313700 (LWP 3125) exited] [New Thread 0x7fffcb313700 (LWP 3126)] [Thread 0x7fffcb313700 (LWP 3126) exited] [New Thread 0x7fffcb313700 (LWP 3127)] [Thread 0x7fffcb313700 (LWP 3127) exited] [New Thread 0x7fffcb313700 (LWP 3128)] [INFO] Detected Device: B210 [INFO] Loading FPGA image: /usr/local/share/uhd/images/usrp_b210_fpga.bin... [INFO] 0% [IN 1% [IN 2% [IN 3% [IN 4% [IN 5% [IN 6% [IN 7% [IN 8% [IN 9% [IN 10% [IN 11% [IN 12% [IN 13% [IN 14% [IN 15% [IN 16% [IN 17% [IN 18% [IN 19% [IN 20% [IN 21% [IN 22% [IN 23% [IN 24% [IN 25% [IN 26% [IN 27% [IN 28% [IN 29% [IN 30% [IN 31% [IN 32% [IN 33% [IN 34% [IN 35% [IN 36% [IN 37% [IN 38% [IN 39% [IN 40% [IN 41% [IN 42% [IN 43% [IN 44% [IN 45% [IN 46% [IN 47% [IN 48% [IN 49% [IN 50% [IN 51% [IN 52% [IN 53% [IN 54% [IN 55% [IN 56% [IN 57% [IN 58% [IN 59% [IN 60% [IN 61% [IN 62% [IN 63% [IN 64% [IN 65% [IN 66% [IN 67% [IN 68% [IN 69% [IN 70% [IN 71% [IN 72% [IN 73% [IN 74% [IN 75% [IN 76% [IN 77% [IN 78% [IN 79% [IN 80% [IN 81% [IN 82% [IN 83% [IN 84% [IN 85% [IN 86% [IN 87% [IN 88% [IN 89% [IN 90% [IN 91% [IN 92% [IN 93% [IN 94% [IN 95% [IN 96% [IN 97% [IN 98% [IN 99% [IN100% [IN done [INFO] Operating over USB 3. [New Thread 0x7fffcab12700 (LWP 3137)] [INFO] Detecting internal GPSDO.... [INFO] No GPSDO found [INFO] Initialize CODEC control... [INFO] Initialize Radio control... [INFO] Performing register loopback test... [INFO] pass [INFO] Performing register loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Asking for clock rate 16.000000 MHz... [INFO] Actually got clock rate 16.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass [INFO] Setting master clock rate selection to 'automatic'. [Thread 0x7fffcab12700 (LWP 3137) exited] [Thread 0x7fffcb313700 (LWP 3128) exited] [Thread 0x7fffd6bdf700 (LWP 3074) exited] [New Thread 0x7fffd6bdf700 (LWP 3138)] Error: C++ API exception: expression `obj = suscan_object_get_field(this->instance, field.c_str())' failed in include/Suscan/Object.h:173 [New Thread 0x7fffcb313700 (LWP 3140)] [Thread 0x7fffcb313700 (LWP 3140) exited] [New Thread 0x7fffcb313700 (LWP 3141)] [Thread 0x7fffcb313700 (LWP 3141) exited] [New Thread 0x7fffcb313700 (LWP 3142)] [Thread 0x7fffcb313700 (LWP 3142) exited] [New Thread 0x7fffcb313700 (LWP 3143)] [Thread 0x7fffcb313700 (LWP 3143) exited] [New Thread 0x7fffcb313700 (LWP 3144)] [INFO] Detected Device: B210 [INFO] Operating over USB 3. [New Thread 0x7fffcab12700 (LWP 3145)] [INFO] Initialize CODEC control... [INFO] Initialize Radio control... [INFO] Performing register loopback test... [INFO] pass [INFO] Performing register loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Performing CODEC loopback test... [INFO] pass [INFO] Asking for clock rate 16.000000 MHz... [INFO] Actually got clock rate 16.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass [INFO] Setting master clock rate selection to 'automatic'. [INFO] Asking for clock rate 32.000000 MHz... [INFO] Actually got clock rate 32.000000 MHz. [INFO] Performing timer loopback test... [INFO] pass [INFO] Performing timer loopback test... [INFO] pass

Thread 1 "SigDigger" received signal SIGSEGV, Segmentation fault. 0x00007ffff6e87c16 in SoapySDRDevice_setupStream () from /usr/local/lib/libSoapySDR.so.0.7

BatchDrake commented 4 years ago

Okay, now in gdb, after the SIGSEGV you have to type bt and press enter. That is the output that I need.

Also, what GNU/Linux distribution are you using?

Thanks,

fe8769a commented 4 years ago

I'm using ubuntu 16.4.1 and gnu radio 3.7.9

BT results

0 0x00007ffff6e87c16 in SoapySDRDevice_setupStream ()

from /usr/local/lib/libSoapySDR.so.0.7

1 0x00007ffff7964e3e in suscan_source_open_sdr (source=0x102e8c0)

at /home/fe8769/Sigdigger/suscan/analyzer/source.c:1856

2 0x00007ffff7965e29 in suscan_source_new (config=0x12751d0)

at /home/fe8769/Sigdigger/suscan/analyzer/source.c:2308

3 0x00007ffff7958129 in suscan_analyzer_source_init (analyzer=0x15e8490,

config=0x12751d0) at /home/fe8769/Sigdigger/suscan/analyzer/analyzer.c:854

4 0x00007ffff7958380 in suscan_analyzer_new (params=0x7fffffffca38,

config=0x12751d0, mq=0x125a270)
at /home/fe8769/Sigdigger/suscan/analyzer/analyzer.c:933

5 0x00000000004a8d67 in ?? ()

6 0x000000000042cc25 in ?? ()

7 0x00000000004d8a52 in ?? ()

8 0x00007ffff5d44c0a in QMetaObject::activate(QObject*, int, int, void**) ()

from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

9 0x00000000004dd918 in ?? ()

10 0x00007ffff5d44c0a in QMetaObject::activate(QObject*, int, int, void**) ()

from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

11 0x00007ffff65ff412 in QAction::triggered(bool) ()

from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

12 0x00007ffff6601898 in QAction::activate(QAction::ActionEvent) ()

from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 ---Type to continue, or q to quit---

13 0x00007ffff67075a0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

14 0x00007ffff67076d4 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

15 0x00007ffff67cc26a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

16 0x00007ffff664bfc8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

17 0x00007ffff67cc349 in QToolButton::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

18 0x00007ffff660905c in QApplicationPrivate::notify_helper(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

19 0x00007ffff660ec19 in QApplication::notify(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

20 0x00007ffff5d1626b in QCoreApplication::notifyInternal(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

21 0x00007ffff660db32 in QApplicationPrivate::sendMouseEvent(QWidget, QMouseEvent, QWidget, QWidget, QWidget**, QPointer&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

22 0x00007ffff66665bb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

23 0x00007ffff6668b7b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

24 0x00007ffff660905c in QApplicationPrivate::notify_helper(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

25 0x00007ffff660e516 in QApplication::notify(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

26 0x00007ffff5d1626b in QCoreApplication::notifyInternal(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

27 0x00007ffff60584e1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5

28 0x00007ffff605a1a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5

29 0x00007ffff603df08 in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5

30 0x00007ffff7f0b200 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5

31 0x00007ffff33dd197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

32 0x00007ffff33dd3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

33 0x00007ffff33dd49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

34 0x00007ffff5d6c6af in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

35 0x00007ffff5d13a2a in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

36 0x00007ffff5d1bacc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

37 0x000000000042447c in ?? ()

38 0x00007ffff4c28830 in __libc_start_main (main=0x424410, argc=1, argv=0x7fffffffdf18, init=, fini=, rtld_fini=, stack_end=0x7fffffffdf08) at ../csu/libc-start.c:291

39 0x0000000000424579 in ?? ()

BatchDrake commented 4 years ago

This is odd. The crash is somehow happening inside the SoapySDR wrapper, but I haven't changed anything there.

There should be a config file in your home folder named /home/fe8769/.suscan/config/uiconfig.xml. Could you attach it to this issue? Also, what SDR are you using?

fe8769a commented 4 years ago

I'm using Ettus B210

here is uiconfig.xlm content

<?xml version="1.0" ?>

BatchDrake commented 1 year ago

Hi,

Is this still crashing?

Cheers,