Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #16 (permalink)  
Old 09-08-2008
pjtait pjtait is offline
Registered User
 
Name: Philip Tait
Organization: Subaru Telescope
Project: FMOS
 
Join Date: Aug 2008
Posts: 16
'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++
Reply With Quote
  #17 (permalink)  
Old 09-09-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
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.
Reply With Quote
  #18 (permalink)  
Old 09-10-2008
pjtait pjtait is offline
Registered User
 
Name: Philip Tait
Organization: Subaru Telescope
Project: FMOS
 
Join Date: Aug 2008
Posts: 16
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...
Reply With Quote
  #19 (permalink)  
Old 09-10-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
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.
Reply With Quote
  #20 (permalink)  
Old 09-10-2008
pjtait pjtait is offline
Registered User
 
Name: Philip Tait
Organization: Subaru Telescope
Project: FMOS
 
Join Date: Aug 2008
Posts: 16
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat Enterprise Linux 5 support bernard Announcements 0 06-13-2007 05:54 PM
Build error on Red Hat Linux (kernel:2.4.18) rc_hz Help Center 3 11-26-2005 08:58 PM
building ice for C# aditi Help Center 4 11-13-2004 09:37 PM
Make on Red Hat Enterprise Linux ES release 2.1 (Panama) fails ahartveld Bug Reports 6 10-07-2003 12:07 PM


All times are GMT -4. The time now is 11:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.