Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
Another simple workaround is importing _io before the gnuradio swig modules are imported ultimately fixing the underlying swig problem is the right thing to do diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion index e76322b..7da73fd 100755 --- a/grc/scripts/gnuradio-companion +++ b/grc/scripts/gnuradio-companion @@ -18,6 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ +import _io import pygtk pygtk.require('2.0') import gtk On Fri, Oct 19, 2012 at 10:33 PM, Tom Rondeau wrote: > Johnathan Corgan and I /might/ have tracked down the problem. Please > check out the branch 'rtld_ticket181_undo' on my github git repo: > git://github.com/trondeau/gnuradio.git > > > This undoes something that was put in a while ago to make up for a > problem with exceptions in SWIG. We think that a) SWIG now handles > this stuff better and b) someone (ld, Python, stdc, etc., etc.) have > updated their behavior to cause a conflict with how things run. On my > 12.10 box, this patch allows me to run GRC again. Also, I could not > run 'from gnuradio import audio' before but can now. > > This is a bit touchy since this code has been in here for so long. > We're concerned that people might be relying on it and that removing > it could cause some other, unknown behavior. At the same time, getting > GRC to run again is a pretty big deal. > > Please check out and test the branch and let me know how it works on > your currently broken systems or on your currently working system to > see if it breaks anything. This was branched off today's master > branch. > > Tom > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
Johnathan Corgan and I /might/ have tracked down the problem. Please check out the branch 'rtld_ticket181_undo' on my github git repo: git://github.com/trondeau/gnuradio.git This undoes something that was put in a while ago to make up for a problem with exceptions in SWIG. We think that a) SWIG now handles this stuff better and b) someone (ld, Python, stdc, etc., etc.) have updated their behavior to cause a conflict with how things run. On my 12.10 box, this patch allows me to run GRC again. Also, I could not run 'from gnuradio import audio' before but can now. This is a bit touchy since this code has been in here for so long. We're concerned that people might be relying on it and that removing it could cause some other, unknown behavior. At the same time, getting GRC to run again is a pretty big deal. Please check out and test the branch and let me know how it works on your currently broken systems or on your currently working system to see if it breaks anything. This was branched off today's master branch. Tom On Fri, Oct 19, 2012 at 6:46 PM, Martin Braun (CEL) wrote: > On Fri, Oct 19, 2012 at 03:53:21PM -0400, Tom Rondeau wrote: >> My new machine has a brand new install of 12.10 and I'm seeing the >> same issues. It looks like it's happening on this line in >> gnuradio-companion: >> >> from gnuradio.grc.python.Platform import Platform >> >> What's odd is that I can run 'ipython /gnuradio-companion' and >> it runs just fine. If I use python instead of ipython, I get the >> segfault. > > Hm, doesn't ipython auto-import some modules? That might narrow it down. > > MB > > -- > Karlsruhe Institute of Technology (KIT) > Communications Engineering Lab (CEL) > > Dipl.-Ing. Martin Braun > Research Associate > > Kaiserstraße 12 > Building 05.01 > 76131 Karlsruhe > > Phone: +49 721 608-43790 > Fax: +49 721 608-46071 > www.cel.kit.edu > > KIT -- University of the State of Baden-Württemberg and > National Laboratory of the Helmholtz Association > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
On Fri, Oct 19, 2012 at 03:53:21PM -0400, Tom Rondeau wrote: > My new machine has a brand new install of 12.10 and I'm seeing the > same issues. It looks like it's happening on this line in > gnuradio-companion: > > from gnuradio.grc.python.Platform import Platform > > What's odd is that I can run 'ipython /gnuradio-companion' and > it runs just fine. If I use python instead of ipython, I get the > segfault. Hm, doesn't ipython auto-import some modules? That might narrow it down. MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association pgpAv8l79xl3r.pgp Description: PGP signature ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
On Fri, Oct 19, 2012 at 11:34 AM, Josh Blum wrote: > >>> >> >> the python importing process (python -c "from lxml import etree") exits >> without any error. I decided to switch to the 3.6.1 version from quantal >> repos until the problem is solved. I tried to install different versions >> of lxml from pipy but without any success. >> > > > > It sounds like one of these "order of import" bugs. Very hard to track > down and fix :-( > > -josh My new machine has a brand new install of 12.10 and I'm seeing the same issues. It looks like it's happening on this line in gnuradio-companion: from gnuradio.grc.python.Platform import Platform What's odd is that I can run 'ipython /gnuradio-companion' and it runs just fine. If I use python instead of ipython, I get the segfault. Tom ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
>> > > the python importing process (python -c "from lxml import etree") exits > without any error. I decided to switch to the 3.6.1 version from quantal > repos until the problem is solved. I tried to install different versions > of lxml from pipy but without any success. > It sounds like one of these "order of import" bugs. Very hard to track down and fix :-( -josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
Nella citazione in data Fri Oct 19 03:47:41 2012, Josh Blum ha scritto: On 10/18/2012 05:49 PM, Arturo Rinaldi wrote: After successfully building gnuradio 3.6.2 on *ubuntu quantal quetzal 12.10* i get this error when launching gnuradio-companion : /* *//*artynet@artynet-VirtualBox:/usr/local/bin$ gnuradio-companion */ /*Traceback (most recent call last):*//* *//* File "/usr/local/bin/gnuradio-companion", line 58, in *//* *//*from gnuradio.grc.python.Platform import Platform*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Platform.py", line 22, in *//* *//*from .. base.Platform import Platform as _Platform*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 22, in *//* *//*from .. base import ParseXML, odict*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/ParseXML.py", line 20, in *//* *//*from lxml import etree*//* *//* File "lxml.etree.pyx", line 67, in init lxml.etree (src/lxml/lxml.etree.c:160085)*//* *//* File "/usr/lib/python2.7/io.py", line 51, in *//* *//*import _io*//* *//*TypeError: type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot*//* *//*Segmentation Fault (core dump created) The error seems to be entirely from lxml. So I would guess that this is an lxml issue not gnuradio related. Can you try to run python -c "from lxml import etree" and see if the error happens? -josh */I satisfied all the required dependencies with the build-gnuradio script by SBRAC. Any ideas to solve this issue, it never happened to me in any build of GNURadio from stable tarball. Do I have to install some other python package ? Thank you in advance Kind Regards Arturo ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio the python importing process (python -c "from lxml import etree") exits without any error. I decided to switch to the 3.6.1 version from quantal repos until the problem is solved. I tried to install different versions of lxml from pipy but without any success. Regards, Arturo ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
On 10/18/2012 05:49 PM, Arturo Rinaldi wrote: > After successfully building gnuradio 3.6.2 on *ubuntu quantal quetzal > 12.10* i get this error when launching gnuradio-companion : > /* > *//*artynet@artynet-VirtualBox:/usr/local/bin$ gnuradio-companion */ > /*Traceback (most recent call last):*//* > *//* File "/usr/local/bin/gnuradio-companion", line 58, in *//* > *//*from gnuradio.grc.python.Platform import Platform*//* > *//* File > "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Platform.py", line > 22, in *//* > *//*from .. base.Platform import Platform as _Platform*//* > *//* File > "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", > line 22, in *//* > *//*from .. base import ParseXML, odict*//* > *//* File > "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/ParseXML.py", > line 20, in *//* > *//*from lxml import etree*//* > *//* File "lxml.etree.pyx", line 67, in init lxml.etree > (src/lxml/lxml.etree.c:160085)*//* > *//* File "/usr/lib/python2.7/io.py", line 51, in *//* > *//*import _io*//* > *//*TypeError: type '_io._IOBase' participates in gc and is a base type > but has inappropriate tp_free slot*//* > *//*Segmentation Fault (core dump created) > The error seems to be entirely from lxml. So I would guess that this is an lxml issue not gnuradio related. Can you try to run python -c "from lxml import etree" and see if the error happens? -josh > */I satisfied all the required dependencies with the build-gnuradio > script by SBRAC. Any ideas to solve this issue, it never happened to me > in any build of GNURadio from stable tarball. Do I have to install some > other python package ? > > Thank you in advance > > Kind Regards > > Arturo > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] issue with GRC on ubuntu 12.10 - Segmentation Fault when launching the tool
After successfully building gnuradio 3.6.2 on *ubuntu quantal quetzal 12.10* i get this error when launching gnuradio-companion : /* *//*artynet@artynet-VirtualBox:/usr/local/bin$ gnuradio-companion */ /*Traceback (most recent call last):*//* *//* File "/usr/local/bin/gnuradio-companion", line 58, in *//* *//*from gnuradio.grc.python.Platform import Platform*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Platform.py", line 22, in *//* *//*from .. base.Platform import Platform as _Platform*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py", line 22, in *//* *//*from .. base import ParseXML, odict*//* *//* File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/base/ParseXML.py", line 20, in *//* *//*from lxml import etree*//* *//* File "lxml.etree.pyx", line 67, in init lxml.etree (src/lxml/lxml.etree.c:160085)*//* *//* File "/usr/lib/python2.7/io.py", line 51, in *//* *//*import _io*//* *//*TypeError: type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot*//* *//*Segmentation Fault (core dump created) */I satisfied all the required dependencies with the build-gnuradio script by SBRAC. Any ideas to solve this issue, it never happened to me in any build of GNURadio from stable tarball. Do I have to install some other python package ? Thank you in advance Kind Regards Arturo ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio