Home Patches

loadSlice() spurious crash

jharrisjharris Member John HarrisOrganization: HTG Capital PartnersProject: Trading
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:

#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 ()


  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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?

  • jharrisjharris Member John HarrisOrganization: HTG Capital PartnersProject: Trading
    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.
Sign In or Register to comment.