Page 2 of 2 FirstFirst 1 2
Results 16 to 20 of 20

Thread: Building Ice-3.3.0 on Red Hat 9

  1. #16
    pjtait is offline Registered User
    Name: Philip Tait
    Organization: Subaru Telescope
    Project: Fibre-Fed Multi-ObjectSpectrograph;HyperSuprimeCam
    Join Date
    Aug 2008
    Location
    Hilo, Hawaii
    Posts
    40

    'py' test 1 fails

    $ make test
    ../config/Make.common.rules:111: Found slice2py in both ICE_HOME/bin and ./../cpp/bin, ICE_HOME/bin/slice2py will be used!

    *** running tests 1/19 in /home/philip/Ice-3.3.0/py/test/Slice/keyword
    *** configuration: Default
    *** test started: 09/08/08 15:04:46
    starting client... ok
    ('test in /home/philip/Ice-3.3.0/py/test/Slice/keyword failed with exit status', 256)

    $ gdb /usr/bin/python /home/philip/Ice-3.3.0/py/test/Slice/keyword/core.*
    ......
    #0 0x4048469f in IceUtil::SimpleShared::__decRef() (this=0xa3be4)
    at Shared.h:70
    70 assert(_ref > 0);

    (gdb) bt
    #0 0x4048469f in IceUtil::SimpleShared::__decRef() (this=0xa3be4)
    at Shared.h:70
    #1 0x409855b9 in ~Handle (this=0xbffee910) at Handle.h:186
    #2 0x4098cf06 in Contained (this=0x813b3e4, __vtt_parm=0x40a7d238,
    container=@0xbffeea70, name=@0x819848c) at Parser.cpp:472
    #3 0x4099de60 in Module (this=0x813b3a8, container=@0xbffeea70,
    name=@0x819848c) at Parser.cpp:2273
    #4 0x4098e1bc in Slice::Container::createModule(std::string const&) (
    this=0x819f29c, name=@0x819848c) at Parser.cpp:531
    #5 0x4097763f in slice_parse() () at Grammar.y:233
    #6 0x409b46f8 in Slice::Unit:arse(std::string const&, _IO_FILE*, bool, Slice::FeatureProfile) (this=0x819f1d0, filename=@0xbfffdfe0, file=0x815e4a0,
    debug=false, profile=Ice) at Parser.cpp:5504
    #7 0x4048388f in IcePy_loadSlice (args=0x4017ed2c) at Slice.cpp:148
    #8 0x080ed814 in PyCFunction_Call (func=0x40194d0c, arg=0x4017ed2c,
    kw=0xbffee910) at Objects/methodobject.c:108
    #9 0x080a4f1b in call_function (pp_stack=0xbfffe22c, oparg=670692)
    at Python/ceval.c:3445
    #10 0x080a33e0 in eval_frame (f=0x815c134) at Python/ceval.c:2122
    #11 0x080a3f26 in PyEval_EvalCodeEx (co=0x4017f1e0, globals=0xa3be4,
    locals=0x4013379c, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:2669
    #12 0x080a64b2 in PyEval_EvalCode (co=0x4017f1e0, globals=0x4013379c,
    locals=0x4013379c) at Python/ceval.c:537
    #13 0x080cbb01 in run_node (n=0x4011c338, filename=0xbffff9b2 "Client.py",
    globals=0x4013379c, locals=0x4013379c, flags=0xbfffe388)
    at Python/pythonrun.c:1267
    #14 0x080cb365 in PyRun_SimpleFileExFlags (fp=0x8129d08,
    filename=0xbffff9b2 "Client.py", closeit=1, flags=0xbfffe388)
    at Python/pythonrun.c:862
    #15 0x08054d32 in Py_Main (argc=0, argv=0xbfffe404) at Modules/main.c:415
    #16 0x080548ab in main (argc=3, argv=0xbfffe404) at Modules/python.c:23
    #17 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
    Current language: auto; currently c++

  2. #17
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    It sounds like an unexpected exception is being thrown in the Slice::Contained constructor and this is causing a crash because of missing __setNoDelete calls in the constructor (see this FAQ for the reason).

    Could you wrap the constructor code (in cpp/src/Slice/Parser.cpp line 459) with the following and try again after recompiling the Slice library:

    Code:
        __setNoDelete(true);
        ...
        __setNoDelete(false);
    This should allow the exception to propagate and be displayed by the parser and hopefully give you more clues on the reason why the parsing fails.

    Cheers,
    Benoit.

  3. #18
    pjtait is offline Registered User
    Name: Philip Tait
    Organization: Subaru Telescope
    Project: Fibre-Fed Multi-ObjectSpectrograph;HyperSuprimeCam
    Join Date
    Aug 2008
    Location
    Hilo, Hawaii
    Posts
    40

    Changing __setNoDelete had no effect

    Inspecting IceUtil/Shared.h seems to indicate that

    70: assert(_ref > 0);

    is failing. This is unaffected by the value of _noDelete.

    I'm trying a code change to comment out the assert(), and return instead. However, I'm concerned this may be hiding a deeper problem...

  4. #19
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, this assert doesn't look good. Which gcc version do you use?

    Did you try to translate the py/test/Slice/keyword/Key.ice manually with slice2py? Does it work? You could also try to run other tests or some of the demos.

    Also, which python version do you use on your platform? Did you build it yourself?

    Cheers,
    Benoit.

  5. #20
    pjtait is offline Registered User
    Name: Philip Tait
    Organization: Subaru Telescope
    Project: Fibre-Fed Multi-ObjectSpectrograph;HyperSuprimeCam
    Join Date
    Aug 2008
    Location
    Hilo, Hawaii
    Posts
    40

    Python tests pass

    Benoit,

    Thanks for the hint - I have multiple versions of Python on the system, and had configured the wrong one.

    All 19 tests now pass!

    Thanks, everyone, for the patient help.

    Philip

Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Installing Ice 3.3.1 on Red Hat Enterprise 5
    By genetics_lab in forum Help Center
    Replies: 8
    Last Post: 07-28-2010, 03:29 PM
  2. Red Hat Enterprise Linux 5 support
    By bernard in forum Announcements
    Replies: 0
    Last Post: 06-13-2007, 04:54 PM
  3. Build error on Red Hat Linux (kernel:2.4.18)
    By rc_hz in forum Help Center
    Replies: 3
    Last Post: 11-26-2005, 07:58 PM
  4. Replies: 6
    Last Post: 10-07-2003, 11:07 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
  •