Results 1 to 5 of 5

Thread: "make test" failure on Ice 3.0.1 installation. SUSE 10.1.

  1. #1
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19

    "make test" failure on Ice 3.0.1 installation. SUSE 10.1.

    Hello! I just downloaded the Ice 3.0.1 source distribution and attempted to build it on a freshly installed SUSE 10.1 system. I inspected Make.rules but I liked what I saw so without changing anything I executed "make." The build seemed to go fine; there were no problems reported.

    However, "make test" fails immediately. Here is what I get:

    ---> cut <---
    pchapin@dustdevil:/usr/local/src/Ice-3.0.1> make test

    *** running tests in ./test/IceUtil/thread
    starting client... ok
    running mutex test... ../../../include/IceUtil/Mutex.h:318: IceUtil::ThreadSyscallException:
    thread syscall exception: Resource deadlock avoided failed
    test mutex failed
    test in ./test/IceUtil/thread failed with exit status 256
    ---> cut <---

    Line 318 in Mutex.h pertains to a call to pthread_mutex_trylock that returns an unexpected error code. I'm not sure what this error means to me; what should I be looking at to fix or workaround this? I considered just ignoring the error and trying to use the system anyway but even if that appeared to work, I'd be concerned about eventually running into bad mutex behavior.

    I'm running Linux under VirtualPC on a WindowsXP host system in case that matters. I compiled Ice with gcc v4.1.0.

    Thanks for any advice you might have!
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Peter,

    It's actually a (small) bug in Ice 3.0.1. This thread gives all the details.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19
    Thanks, that was helpful, but it didn't completely solve the problem. I modified MutexTest.cpp as mentioned in the other thread and now the first test passes. However, there is a very similar failure a bit further on:

    ---> cut <---
    *** running tests in ./test/IceUtil/thread
    starting client... ok
    running mutex test... ok
    running countDownLatch test... ok
    running thread start test... ok
    running thread create test... ok
    running thread alive test... ok
    running recursive mutex test... ok
    running read/write recursive mutex test... ok
    running static mutex test... ok
    running monitor<mutex> test... ../../../include/IceUtil/Mutex.h:318: IceUtil::ThreadSyscallException:
    thread syscall exception: Resource deadlock avoided failed
    test monitor<mutex> failed
    test in ./test/IceUtil/thread failed with exit status 256
    ---> cut <---

    I noticed there was a similar place in StaticMutexTest.cpp (line 121) where code was being conditionally compiled based on __FreeBSD__. I added the check for __linux there as well, but it didn't help. The issue seems to be arising somewhere else too, but I'm not sure where to look (I tried a few random greps, but didn't find anything).
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

  4. #4
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Peter,

    It's actually a problem with the monitor<mutex> test, i.e. MonitorMutexTest.cpp.
    Please comment out line 111 and 112 in that file.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  5. #5
    pchapin's Avatar
    pchapin is offline Registered User
    Name: Peter C. Chapin
    Organization: Vermont Technical College
    Project: Education
    Join Date
    Dec 2005
    Posts
    19
    Yes, that was it. All the tests are passing now, and I got my sample Ice program compiled and running as well. I'm on my way.

    Thanks for your help!
    Peter C. Chapin
    Vermont Technical College
    (Using Ice in Education)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. c++ make test fails in IceGrid admin test on Ubuntu 10.04
    By bd_at_eclipse in forum Bug Reports
    Replies: 1
    Last Post: 01-26-2011, 03:02 PM
  2. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  3. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  4. Replies: 1
    Last Post: 01-06-2006, 06:25 AM
  5. "make" produces 1 GB directory
    By A. Guru in forum Help Center
    Replies: 3
    Last Post: 09-15-2003, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •