I found what was wrong, or at least what I think is wrong. When I started eqOsirix, I made an Osirix Plug-in via the provided script for Osirix. It sets as default, _GLIBCXX_DEBUG=1, _GLIBCXX_DEBUG_PEDANTIC=1, when I removed these settings, server's refcount incremented as expected.
http://groups.google.com/group/eq-dev/browse_thread/thread/e545be277766cb74 http://stackoverflow.com/questions/1416096/c-debug-builds-broke-in-snow-leopard-x-code http://www.mailinglistarchive.com/[email protected]/msg08400.html Here's something that is quite relevant to the problem at hand: http://gcc.gnu.org/ml/libstdc++/2004-09/msg00170.html _GLIBCXX_DEBUG apparently interferes with stdlibc++ on Mac OS 10.6 and XCode 3.2 Le Sigh. Well, I'm glad in some part that it's not due to logic error on my part. Thanks for the help. -Stephen On Apr 15, 3:52 pm, Stephen Furlani <[email protected]> wrote: > Oof, I sent you something but I've kept looking through it. > > when eq::getConfig() calls > new Server > RefPtr<eq::Server>::RefPtr > RefPtr<eq::Server>::ref() > Atomic<long>::operator++ > > p &_value > and > p &server._ptr._refCount._value > > are the same. > > in eqOsirix they are not. In fact, p &_value changes every time > RefPtr<>::ref() is called. (0x3801888, 0x3801884) vs p > &server._ptr._refCount._value (0x380184c) > > eq::getConfig() also calls checkHeap. > > But those are the only differences I can find. > > When I create eq::base::RefPtr<eqOsirix::EqOsirix>, > &client._ptr._refCount._value and &_value are the same. (0x1801688) > > I have no idea why this would be the case. In the Xcode debugger the > value for _refCount is labeled as {...} which I can't find a > definition for, since it's not a searchable term. > > I'm tempted to start over, throw out all the Osirix stuff, get a > carbon copy of eqPly working, and add stuff in until it breaks to > figure out exactly what is going wrong. > > Thanks, > -Stephen > > On Apr 15, 12:24 pm, Stefan Eilemann <[email protected]> wrote: > > > > > > > On Thu, Apr 15, 2010 at 4:08 PM, Stephen Furlani > > > <[email protected]> wrote: > > > Thanks, I really appreciate the help. > > > > here's eq::getConfig() ... > > > I hope that's what you're looking for. > > > Yes, but unfortunately it looks ok-ish. > > > I guess you'll have to find the reason for the missing refCount > > increment, stepping through the debugger and understanding what's > > going on by looking at the variables and their addresses. > > > If you can create a small reproducer that I can easily compile on my > > end, I can have a look as well. > > > HTH, > > > Stefan. > > > _______________________________________________ > > eq-dev mailing list > > [email protected]http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-devhttp:... > > _______________________________________________ > eq-dev mailing list > [email protected]http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-devhttp://www.equalizergraphics.com _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

