#380 Segmentation faults with GDL python module.

open
nobody
None
5
2011-03-24
2011-03-24
amicitas
No

I have installed the python GDL module, however I am running into segmentation faults so far whenever attempting to run compiled routines.

(GDL from CVS on OS X 10.6.6 with a macports installation of Python 2.7)

I have tested two of my simple functions, both resulted in a segmentation fault.

Trying to use the built in function "EXECUTE" resulted in a segmentation fault as well.

Other build in functions have worked fine:
SIN
DINDGEN
SIZE

Discussion

  • amicitas
    amicitas
    2011-03-24

    Crash report.

     
    Attachments
  • amicitas
    amicitas
    2011-03-24

    Added crash report from compiled function.

    The function that I was trying to call is:

    FUNCTION IS_INTEGER, value, SHORT=shot, LONG=long

    type = SIZE(value, /TYPE)

    RETURN, ((type EQ 2) OR (type EQ 3))

    END ;FUNCTION IS_INTEGER

    Note that typing
    >>> print GDL.function('SIZE', 1, TYPE=True)
    directly at the python prompt works fine.

     
  • Nicolas Barbey
    Nicolas Barbey
    2011-05-12

    I confirm this bug. I compiled GDL on an up to date Archlinux system using the following AUR PKGBUILD :

    http://aur.archlinux.org/packages.php?ID=2493

    I just add the configure option to compile the shared library to be imported in python as shown in this modified PKGBUILD :

    https://gist.github.com/968372

    A simple "import GDL" in ipython results in a segfault.
    However, in the python CLI, I can "import GDL" but any attempt to load a script or a procedure results in a segault.

    This is also with python2.7 and all dependencies are up to date archlinux packages.