You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using GNU Radio 3.7.9 from Debian Sid repos. Machine kernel is 4.2.0-1-amd64 #1 SMP Debian 4.2.5-1 (2015-10-27) x86_64.
I get a fully reproducible segmentation fault by following these steps:
Create a new graph
Add any gr-baz block to the graph
Add any other block (not necessarily from gr-baz). GNU Radio will always crash at this point.
This crash is not reproducible with any non-gr-baz blocks.
By running GDB on the core file, I get the following backtrace:
(gdb) bt
#0 0x0000000000055a66 in ?? ()
#1 0x00007fad2e9f28a0 in init_baz_swig () from /usr/local/lib/python2.7/dist-packages/baz/_baz_swig.so
#2 0x000000000051a701 in _PyImport_LoadDynamicModule ()
Since this segfault happens somewhere in init_baz_swig, I though this could be SWIG's fault, so I upgraded from version 3.0.7-2 to 30.0.10-1.1 and it was still crashing. Recompiling gr-baz didn't work either: it keeps failing in the sample place trying to jump (again) to 0x55a66:
(gdb) bt
#0 0x0000000000055a66 in ?? ()
#1 0x00007fb627cc68a0 in init_baz_swig () from /usr/local/lib/python2.7/dist-packages/baz/_baz_swig.so
#2 0x000000000051a701 in _PyImport_LoadDynamicModule ()
By inspecting the assembly around 0x00007fb627cc68a0 I get the following:
So my conclusion is that something weird related to dynamic linking is going on. What I know so far is that this doesn't seem a Debian package issue - I compiled swig from source, recompiled gr-baz from scratch and I'm still getting the same segfault.
PS: I'm attaching a full backtrace too (crash with the latest swig version), including register information and loaded shared libraries: bt.zip
The text was updated successfully, but these errors were encountered:
I'm using GNU Radio 3.7.9 from Debian Sid repos. Machine kernel is 4.2.0-1-amd64 #1 SMP Debian 4.2.5-1 (2015-10-27) x86_64.
I get a fully reproducible segmentation fault by following these steps:
This crash is not reproducible with any non-gr-baz blocks.
By running GDB on the core file, I get the following backtrace:
Since this segfault happens somewhere in init_baz_swig, I though this could be SWIG's fault, so I upgraded from version 3.0.7-2 to 30.0.10-1.1 and it was still crashing. Recompiling gr-baz didn't work either: it keeps failing in the sample place trying to jump (again) to 0x55a66:
By inspecting the assembly around 0x00007fb627cc68a0 I get the following:
Which means that somehow it failed to jump to strstr. Debugging the plt wrapper I get this:
Which makes a lot of sense. However, this is surprising, because according to the assembly above, strstr@plt is at 0x7fb627cc68f8:
So my conclusion is that something weird related to dynamic linking is going on. What I know so far is that this doesn't seem a Debian package issue - I compiled swig from source, recompiled gr-baz from scratch and I'm still getting the same segfault.
PS: I'm attaching a full backtrace too (crash with the latest swig version), including register information and loaded shared libraries: bt.zip
The text was updated successfully, but these errors were encountered: