Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-07-2005
Francis Rioux Francis Rioux is offline
Registered User
 
Name: Francis Rioux
Organization: Sunertek
Project: OII
 
Join Date: Oct 2005
Posts: 2
Fail in test

Im trying to port our application to linux, and I still got some problem with the mutex.

Im using mandrake 10.0, the kernel is 2.6.3. I compiled Ice 2.1.2 and his dependencies with gcc 3.4.2.

With : LD_ASSUME_KERNEL = 2.4.1

I checked if all the tests were working right and it fail at
./test/Ice/location
in testing identity indirect proxy.

Whats stranger is that the problem is intermittent. Sometime it pass.

After some kill of the test, it started to hang in ./test/Ice/operations :
testing checked cast...

Heres the output:
testing checked cast... Traceback (most recent call last):
File "./test/Ice/operations/run.py", line 26, in ?
TestUtil.clientServerTest(name)
File "./config/TestUtil.py", line 284, in clientServerTest
clientServerTestWithOptions(name, "", "")
File "./config/TestUtil.py", line 280, in clientServerTestWithOptions
clientServerTestWithOptionsAndNames(name, additionalServerOptions, additionalClientOptions, "server", "client")
File "./config/TestUtil.py", line 269, in clientServerTestWithOptionsAndNames
printOutputFromPipe(clientPipe)
File "./config/TestUtil.py", line 178, in printOutputFromPipe
c = pipe.read(1)
KeyboardInterrupt
test in ./test/Ice/operations failed with exit status 256

I had to reboot the OS to fix that.

When it pass it fail on :

*** running tests in ./test/Freeze/dbmap
starting client... ok
[ ./test/Freeze/dbmap/client: Berkeley DB: DbEnv "./test/Freeze/dbmap/db": unable to initialize mutex: Function not implemented ]
[ ./test/Freeze/dbmap/client: Berkeley DB: DbEnv "./test/Freeze/dbmap/db": process-private: unable to initialize environment lock: Function not implemented ]
SharedDbEnv.cpp:323: Freeze:atabaseException:
DbEnv:pen: Function not implemented
test in ./test/Freeze/dbmap failed with exit status 256

Without: LD_ASSUME_KERNEL = 2.4.1

I got this once.

It looked to be hang after "remote address = 127.0.0.1:12345"

*** running tests in ./test/Freeze/evictor
starting server... ok
starting client... ok
testing Freeze Evictor... ./test/Freeze/evictor/client: warning: connection exception:
Outgoing.cpp:175: Ice::TimeoutException:
timeout while sending or receiving data
local address = 127.0.0.1:32931
remote address = 127.0.0.1:12345
Traceback (most recent call last):
File "./test/Freeze/evictor/run.py", line 31, in ?
TestUtil.clientServerTestWithOptions(name, testOptions, testOptions)
File "./config/TestUtil.py", line 280, in clientServerTestWithOptions
clientServerTestWithOptionsAndNames(name, additionalServerOptions, additionalClientOptions, "server", "client")
File "./config/TestUtil.py", line 269, in clientServerTestWithOptionsAndNames
printOutputFromPipe(clientPipe)
File "./config/TestUtil.py", line 178, in printOutputFromPipe
c = pipe.read(1)
KeyboardInterrupt
test in ./test/Freeze/evictor failed with exit status 256

If it pass it fail here:

testing tests in ./test/IceStorm/single
starting icestorm service... failed!
test in ./test/IceStorm/single failed with exit status 256

Maybe I should not bother trying to make all this work since we only use Ice, IceUtil and a bit of IceXML.

Im asking myself, should I use LD_ASSUME_KERNEL = 2.4.1 or not since without it pass more test.

Hope you can help me. Thanks you.
__________________
Francis Rioux
Seaquest Technologies
www.seaquest-tech.com/

Last edited by Francis Rioux : 12-07-2005 at 12:20 PM.
Reply With Quote
  #2 (permalink)  
Old 12-07-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
You shouldn't use LD_ASSUME_KERNEL=2.4.1. This is for old operating systems with a broken Linux Posix Threads implementation. Newer kernels shouldn't need this.

What are your versions of glibc and Berkeley DB? Also, did you compile Berkeley DB with LD_ASSUME_KERNEL=2.4.1? If so, try compiling Berkeley DB without this setting, so that both Ice and Berkeley DB use the same thread library.
Reply With Quote
  #3 (permalink)  
Old 12-07-2005
Francis Rioux Francis Rioux is offline
Registered User
 
Name: Francis Rioux
Organization: Sunertek
Project: OII
 
Join Date: Oct 2005
Posts: 2
I use glibc 2.3.3 and Berkeley db 4.2.52 as supplied on your web site. I think LD_ASSUME_KERNEL only affect the dynamic linking as we can see the different behavior at run-time.

see : http://people.redhat.com/drepper/assumekernel.html
__________________
Francis Rioux
Seaquest Technologies
www.seaquest-tech.com/
Reply With Quote
  #4 (permalink)  
Old 12-07-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Francis,

I am surprised LD_ASSUME_KERNEL does anything on your 2.6 kernel. I thought it was just for 2.4.x kernels, such as RH9 and FC1.

We don't provide a DB 4.2.52 binary distribution on our web site, and the source-distribution is identical to the one from Sleepycat.
If you configured DB with LD_ASSUME_KERNEL=2.4.1, maybe the resulting configuration and build are broken; you may want to specify --enable-posixmutexes to configure, to make sure it uses POSIX mutexes.

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
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
DefaultContext fail on Ice-3.0.0 ? phia Help Center 1 01-11-2006 11:05 AM
build fail on AIX5.1, Visual Age C++ 6 xiao Help Center 2 01-19-2005 04:13 AM
ice-freeze test fail? ponyboy Help Center 2 04-07-2004 12:09 PM
Ice 1.2.0 tests fail on 64 bit platform rbx Help Center 2 02-18-2004 10:04 AM
Test fail Diego Giraldez Help Center 6 05-09-2003 02:16 PM


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


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