Using Ice 3.2.1 the following test:
causes the following core dump:Code:$ cat terminate.py #!/usr/bin/env python from exceptions import Exception import Ice, Glacier2 # Copied from omero.__init__.py class client(object): def __init__(self, args, id = Ice.InitializationData()): self.ic = None ic = Ice.initialize(args,id) if not ic: raise Excecption("Improper initialization") self.ic = ic import unittest class TerminationTest(unittest.TestCase): def testNull(self): a = None c = client(a) def testEmpty(self): a = [""] c = client(a) def testGarbage(self): a = ["foo"] c = client(a) def testDevNull(self): a = ["--Ice.Config=/dev/null"] c = client(a) def testNonfile(self): a = ["--Ice.Config=abcdefghijklmnopqrstuvwxyz"] c = client(a) if __name__ == '__main__': unittest.main()
Code:python2.4 terminate.py -v testDevNull (__main__.TerminationTest) ... ok testEmpty (__main__.TerminationTest) ... ok testGarbage (__main__.TerminationTest) ... ok testNonfile (__main__.TerminationTest) ... terminate called after throwing an instance of 'Ice::FileException' what(): N3Ice13FileExceptionE Aborted (core dumped)

Reply With Quote