discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running flowfraph dies with segfault with GR 3.10.4 (gr-fosphor)


From: Ville Eerola
Subject: Re: Running flowfraph dies with segfault with GR 3.10.4 (gr-fosphor)
Date: Fri, 4 Nov 2022 17:35:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

Hi Vasil,

Here  is the output of the GDB and backtrace. Hopefully it will shed some light on the problem.

Regards, Ville

--- --- --- --- ---
$ gdb -ex=run --args python3 fosphor_test.py
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 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:
<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 python3...
(No debugging symbols found in python3)
Starting program: /usr/bin/python3 fosphor_test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffefd9c640 (LWP 14136)]
[New Thread 0x7fffef59b640 (LWP 14137)]
[New Thread 0x7fffeed9a640 (LWP 14138)]
[New Thread 0x7fffee599640 (LWP 14139)]
[New Thread 0x7fffedd98640 (LWP 14140)]
[New Thread 0x7fffed597640 (LWP 14141)]
[New Thread 0x7fffecd96640 (LWP 14142)]
[New Thread 0x7fffec595640 (LWP 14143)]
[New Thread 0x7fffebd94640 (LWP 14144)]
[New Thread 0x7fffeb593640 (LWP 14145)]
[New Thread 0x7fffe80ac640 (LWP 14146)]
[New Thread 0x7fffe78ab640 (LWP 14147)]
[New Thread 0x7fffdf0aa640 (LWP 14148)]
[New Thread 0x7fffd68a9640 (LWP 14149)]
[New Thread 0x7fffc60a8640 (LWP 14150)]
[New Thread 0x7fffc58a7640 (LWP 14151)]
[New Thread 0x7fffbd0a6640 (LWP 14152)]
[New Thread 0x7fffb48a5640 (LWP 14153)]
[New Thread 0x7fffac0a4640 (LWP 14154)]
[New Thread 0x7fff9b8a3640 (LWP 14155)]
[New Thread 0x7fff9b0a2640 (LWP 14156)]
[New Thread 0x7fff8a8a1640 (LWP 14157)]
[New Thread 0x7fff820a0640 (LWP 14158)]
[New Thread 0x7fff7989f640 (LWP 14159)]
[New Thread 0x7fff7109e640 (LWP 14160)]
[New Thread 0x7fff6889d640 (LWP 14161)]
[New Thread 0x7fff6009c640 (LWP 14162)]
[New Thread 0x7fff5789b640 (LWP 14163)]
[New Thread 0x7fff4f09a640 (LWP 14164)]
[New Thread 0x7fff45809640 (LWP 14165)]
[New Thread 0x7fff45008640 (LWP 14166)]
[New Thread 0x7fff44807640 (LWP 14167)]
[New Thread 0x7fff44006640 (LWP 14168)]
[New Thread 0x7fff43805640 (LWP 14169)]
[New Thread 0x7fff43004640 (LWP 14170)]
[New Thread 0x7fff42803640 (LWP 14171)]
[New Thread 0x7fff42002640 (LWP 14172)]
[New Thread 0x7fff41801640 (LWP 14173)]
[New Thread 0x7fff41000640 (LWP 14174)]
[New Thread 0x7fff3dc9e640 (LWP 14175)]
[New Thread 0x7fff37fff640 (LWP 14176)]
[New Thread 0x7fff377fe640 (LWP 14177)]
[New Thread 0x7fff36ffd640 (LWP 14178)]
[New Thread 0x7fff34a7f640 (LWP 14180)]
[New Thread 0x7fff25bff640 (LWP 14181)]
[New Thread 0x7fff253fe640 (LWP 14182)]
[New Thread 0x7fff24bfd640 (LWP 14183)]

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007fff458b5fe5 in ?? () from /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
(gdb) bt
#0  0x00007fff458b5fe5 in  () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#1  0x00007fff45961927 in  () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#2  0x00007fff458c193f in gr::block::allocate_detail(int, int, std::vector<int, std::allocator<int> > const&, std::vector<unsigned long, std::allocator<unsigned long> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&) () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#3  0x00007fff458d628e in gr::flat_flowgraph::allocate_block_detail(std::shared_ptr<gr::basic_block>) () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#4  0x00007fff458d7845 in gr::flat_flowgraph::setup_connections() () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#5  0x00007fff4590d40b in gr::top_block_impl::start(int) () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#6  0x00007fff4590d7f6 in gr::top_block::start(int) () at /lib/x86_64-linux-gnu/libgnuradio-runtime.so.3.10.4
#7  0x00007fff45a76d91 in  () at /usr/lib/python3/dist-packages/gnuradio/gr/gr_python.cpython-310-x86_64-linux-gnu.so
#8  0x00007fff45a7cd43 in  () at /usr/lib/python3/dist-packages/gnuradio/gr/gr_python.cpython-310-x86_64-linux-gnu.so
#9  0x00007fff45a09ef3 in  () at /usr/lib/python3/dist-packages/gnuradio/gr/gr_python.cpython-310-x86_64-linux-gnu.so
#10 0x00005555556b031e in  ()
#11 0x00005555556a6e4b in _PyObject_MakeTpCall ()
#12 0x000055555569f4f2 in _PyEval_EvalFrameDefault ()
#13 0x00005555556be5c1 in  ()
#14 0x000055555569f152 in _PyEval_EvalFrameDefault ()
#15 0x00005555556b0b6c in _PyFunction_Vectorcall ()
#16 0x0000555555699675 in _PyEval_EvalFrameDefault ()
#17 0x0000555555695de6 in  ()
#18 0x000055555578bcb6 in PyEval_EvalCode ()
#19 0x00005555557b8748 in  ()
#20 0x00005555557b155b in  ()
#21 0x00005555557b8495 in  ()
#22 0x00005555557b7978 in _PyRun_SimpleFileObject ()
#23 0x00005555557b7673 in _PyRun_AnyFileObject ()
#24 0x00005555557a8b7e in Py_RunMain ()
#25 0x000055555577ebbd in Py_BytesMain ()
#26 0x00007ffff7c67d90 in __libc_start_call_main (main=main@entry=0x55555577eb80, argc=argc@entry=2, argv=argv@entry=0x7fffffffdf98) at ../sysdeps/nptl/libc_start_call_main.h:58
#27 0x00007ffff7c67e40 in __libc_start_main_impl (main=0x55555577eb80, argc=2, argv=0x7fffffffdf98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdf88) at ../csu/libc-start.c:392
#28 0x000055555577eab5 in _start ()
(gdb) quit
--- --- --- --- ---


On 01/11/2022 16:12, Vasil Velichkov wrote:
Hi Ville,

Try running your reduced testcase under gdb and take a backtrace. First open your flowgraph in gnuradio companion, generate (F5) python script and then in the terminal execute.

   gdb -ex=run --args python3 testcase.py

when it stops in execute the "bt" command and provide the full output

   (gdb) bt

Best Regards,
Vasil

On 28/10/2022 16.24, Ville Eerola wrote:
Hi all,

I used to have a working flowgraph developed with GR 3.10.2, but after update to GR 3.10.4 it just ends with a segmentation fault.

Now some details:
- I'm running Ubuntu 22.04, which is kept up to date.
- GR is installed from PPA https://ppa.launchpadcontent.net/gnuradio/gnuradio-releases/ubuntu/ jammy main
- GR was automatically updated with Software Updater (from 3.10.2 -> 3.10.4)
- The flowgraph is using a gr-fosphor (Osmosdr) spectrum display (fosphor_qt_sink) (Two of them)
- The data comes from a Soapy BladeRF Source, which seems to initialize correctly
- If I disable the Fosphor displays (using "Disable" in GRC), the flowgraph runs just fine
- With the Fosphor displays enabled, the Flowgraph prints out the normal BladeRF initialization messages, and then "Done (return code -11)". When running the Python code from command line, instead of "Done", it prints out "Segmentation fault (core dumped)"

- In order to rectify this I have updated all the OOT modules from Osmocom, which I had previously installed with:
$ cd <module directory>/
$ rm -rf build;
$ git fetch
$ git pull
$ mkdir build; cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=true ../
$ make
$ sudo make install; sudo ldconfig

But, this did not help

I was able to make a reduced testcase with just a Signal Source connected to the Fosphor Sink (Qt), and this segfaults in similar fashion to my full model.


Regards, Ville


    

-- 
Ville Eerola
ville.eerola@iki.fi
050-4804435

reply via email to

[Prev in Thread] Current Thread [Next in Thread]