Results 1 to 2 of 2

Thread: Segmentation fault with Ice for Python

  1. #1
    bobc is offline Registered User
    Name: Bob Cowdery
    Organization: Personal
    Project: Software Radio
    Join Date
    Jan 2009
    Posts
    16

    Segmentation fault with Ice for Python

    Hi
    Any ideas on why this should happen. It only seems to be signal that causes the problem. Is this a name clash issue? I've rearranged my imports so I import scipy.signal before Ice even though that module does not use it.

    Bob

    Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
    [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import Ice
    >>> import scipy.signal
    Segmentation fault

    and this way around
    Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
    [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from scipy import signal
    >>> import Ice
    >>>

  2. #2
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi Bob,

    We have investigated this issue and the problem is related to dlopen flags set in Ice for load plug-ins, this settings caused the segmentation when numpy load one of its extensions or modules.

    We have tested that in modern linux (python-2.5, gcc-4.x) this ldflags are no longer needed, we will investigate further if this is needed for any of the supported platforms.

    To work around this issue you can comment the following lines at the top of Ice.py
    Code:
    #try:
    #    import dl
        #
        # This is necessary for proper operation of Ice plug-ins.
        # Without it, RTTI problems can occur.
        #
    #    sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
    #except ImportError:
        # If the dl module is not available and we're running on a linux
        # platform, use the hard coded value of RTLD_NOW|RTLD_GLOBAL.
    #    if sys.platform.startswith("linux"):
    #        sys.setdlopenflags(258)
    #    pass
    We'll include a fix for the issue in next Ice release.

    Thanks for point this bug out, and let us know if you need further help with this

    Regards,
    José
    Last edited by xdm; 01-20-2009 at 12:50 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ICE 3.4.0 / 3.4.1 bug (segmentation fault)
    By PrzemekD in forum Bug Reports
    Replies: 6
    Last Post: 08-05-2010, 12:05 PM
  2. Replies: 4
    Last Post: 01-26-2010, 11:32 AM
  3. Segmentation fault with Freeze
    By Yunqiao Yin in forum Help Center
    Replies: 2
    Last Post: 02-12-2007, 08:08 PM
  4. Segmentation fault in Icestorm
    By davidcr1983 in forum Help Center
    Replies: 4
    Last Post: 08-08-2006, 09:37 AM
  5. Replies: 2
    Last Post: 01-08-2006, 08:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •