Results 1 to 3 of 3

Thread: loadSlice() spurious crash

  1. #1
    jharris is offline Registered User
    Name: John Harris
    Organization: Endeavor Trading
    Project: Trading
    Join Date
    Sep 2010
    Posts
    8

    loadSlice() spurious crash

    Ice 3.3.1
    Ubuntu Linux 64-Bit gcc
    Python 2.6.5

    I get a spurious error when loading slice files in python with loadSlice and --all.

    Sometimes it works fine by just running again.

    The program crashes with this stack:


    Code:
    #5  0x00007ffff56cae3e in __cxa_throw () from /usr/lib/libstdc++.so.6
    #6  0x00007ffff5e1db47 in IceUtil::HandleBase<Slice::DefinitionContext>::throwNullHandleException (cont=<value optimized out>)
        at ../../include/IceUtil/Handle.h:89
    #7  IceUtil::HandleBase<Slice::DefinitionContext>::operator-> (
        cont=<value optimized out>) at ../../include/IceUtil/Handle.h:46
    #8  Slice::Python::getPackageMetadata (cont=<value optimized out>)
        at PythonUtil.cpp:1946
    #9  0x00007ffff5e1fafb in Slice::Python::getAbsolute (cont=..., suffix=..., 
        nameSuffix=...) at PythonUtil.cpp:1959
    #10 0x00007ffff5e20877 in Slice::Python::CodeVisitor::visitModuleStart (
        this=0x7fffffffd470, p=...) at PythonUtil.cpp:312
    #11 0x00007ffff5da168e in Slice::Module::visit (this=0xbf8f80, 
        visitor=0x7fffffffd470, all=false) at Parser.cpp:2255
    #12 0x00007ffff5d9bcfe in Slice::Container::visit (this=<value optimized out>, 
        visitor=0x7fffffffd470, all=false) at Parser.cpp:1915
    #13 0x00007ffff5db9d0e in Slice::Unit::visit (this=0xbd4040, 
        visitor=0x7fffffffd470, all=6) at Parser.cpp:5533
    #14 0x00007ffff5e1e149 in Slice::Python::generate (un=<value optimized out>, 
        all=<value optimized out>, checksum=<value optimized out>, 
        includePaths=..., out=...) at PythonUtil.cpp:1875
    #15 0x00007ffff65657c9 in IcePy_loadSlice ()
       from /usr/lib/pymodules/python2.6/IcePy.so
    #16 0x00000000004a7c5e in PyEval_EvalFrameEx ()
    #17 0x00000000004a8550 in PyEval_EvalFrameEx ()
    #18 0x00000000004a9671 in PyEval_EvalCodeEx ()
    #19 0x00000000004a9742 in PyEval_EvalCode ()
    #20 0x00000000004c9a0e in PyRun_FileExFlags ()
    #21 0x00000000004c9c24 in PyRun_SimpleFileExFlags ()
    #22 0x000000000041a7ff in Py_Main ()

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi John,

    We only provide support here on the forum for the most recent version of Ice. Have you tried using Ice 3.4.1 to see if the problem still occurs?

    Regards,
    Mark

  3. #3
    jharris is offline Registered User
    Name: John Harris
    Organization: Endeavor Trading
    Project: Trading
    Join Date
    Sep 2010
    Posts
    8
    Unfortunately, I don't have the luxury to use a new version without a planned upgrade of all build and deployment environments and a full regression testing cycle.

    I was kind of hoping someone would recognize the issue and recommend a workaround. FWIW, running slice2py from the command line also crashes with the same error if you specify a really long set of command line arguments.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Python loadSlice import module issue
    By spsoni in forum Help Center
    Replies: 3
    Last Post: 09-02-2009, 12:56 PM
  2. Hello Example crash
    By tomerp in forum Bug Reports
    Replies: 8
    Last Post: 03-31-2009, 11:25 AM
  3. Interactive python fail to loadSlice
    By Oscar.Acena in forum Bug Reports
    Replies: 4
    Last Post: 05-16-2008, 03:03 PM
  4. pythonw, loadSlice and popup windows
    By Edward Bishop in forum Help Center
    Replies: 2
    Last Post: 03-28-2008, 11:34 PM
  5. Error using Ice.loadSlice() with nested *.ice
    By hiasl in forum Help Center
    Replies: 1
    Last Post: 08-29-2005, 07:00 AM

Posting Permissions

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