[omniORB] Working omniORB2 on linux, how?
Morten Holmqvist
netrom@dbc.dk
Wed, 27 Oct 1999 18:18:10 +0200 (MET DST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-851401618-941041090=:148
Content-Type: TEXT/PLAIN; charset=US-ASCII
Davs
I'm searching for a (RedHat) linux distribution, where omniORB2 (2.8.0)
works (or perhaps I've found a bug in omniORB2/gcc//////).
I'm currently using RedHat 5.2, upgraded with gcc (version 2.95.1
19990816 (release)) and configured with --enable-threads and
--enable-shared.
My problem is, when I stress-test omniNames, omniNames aborts with the
following error:
omniNames: ../strand.cc:166: void Strand::decrRefCount(bool = 0):
Assertion `pd_refcount >= 0' failed.
Am I the only linux user with the above problem?
I've attached my test-program and script, in case someone might be able
to spot an error in any of those.
Morten...
---559023410-851401618-941041090=:148
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=GO1
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.10.9910271818100.148@bortas>
Content-Description:
Content-Disposition: attachment; filename=GO1
IyEvYmluL2tzaA0KIyAoTWlnaHQgd29yayB3aXRoIC9iaW4vc2ggYWxzbykN
CiMNCiMgIFN0cmVzcyB0ZXN0IG9tbmlOYW1lcywgYnkgY3JlYXRpbmcgYSBs
b3Qgb2YgY2xpZW50cyB3aGljaCBzaW11bHRhbm91c2x5DQojICBxdWVyaWVz
IGEgbmFtZS4NCiMNCnVsaW1pdCAtYyAwDQoNCiN0ZXN0dHlwZT1tYW55OwkJ
IyBPbmUgY2xpZW50IGF0IGEgdGltZSwgYnV0IHJ1biBhIGxvdCBvZiB0aGVt
IQ0KdGVzdHR5cGU9cGFyYWxsZWw7CSMgQSBsb3Qgb2YgY2xpZW50cyBhdCB0
aGUgc2FtZSB0aW1lIQ0KDQpjYXNlICR0ZXN0dHlwZSBpbg0KICBtYW55KQ0K
ICAgIG1heGNsaT0xMDAwDQogICAgOzsNCiAgcGFyYWxsZWwpDQogICAgbWF4
Y2xpPTUwDQogICAgOzsNCmVzYWMNCiAgDQpmdW5jdGlvbiBEb1J1biB7DQog
IGNsaWNudD0wDQogIHdoaWxlIHRlc3QgJGNsaWNudCAtbGUgJG1heGNsaTsg
ZG8NCiAgICBlY2hvICIiDQogICAgZWNobyAiLi4uICRjbGljbnQgLi4uIg0K
ICAgIGNhc2UgJHRlc3R0eXBlIGluDQogICAgICBtYW55KQ0KICAgICAgICB0
ZXN0MQ0KICAgICAgICA7Ow0KICAgICAgcGFyYWxsZWwpDQogICAgICAgIGNs
aWNudD0kKCgkY2xpY250KzQpKQ0KICAgICAgICB0ZXN0MSAmIHRlc3QxICYg
dGVzdDEgJiB0ZXN0MSAmIHRlc3QxICYNCiAgICAgICAgOzsNCiAgICBlc2Fj
DQogICAgY2xpY250PSQoKCRjbGljbnQrMSkpDQogIGRvbmUNCn0NCg0KRG9S
dW4gJiBEb1J1biAmIERvUnVuICYNCndhaXQNCg==
---559023410-851401618-941041090=:148
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="test1.cc"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.10.9910271818101.148@bortas>
Content-Description:
Content-Disposition: attachment; filename="test1.cc"
LyoNCiAgVGhpcyBwcm9ncmFtIHF1ZXJpZXMgdGhlIG9tbmlOYW1lcyBuYW1l
LXNlcnZpY2UuDQoqLw0KI2luY2x1ZGUgPG9tbmlPUkIyL0NPUkJBLmg+DQoj
aW5jbHVkZSA8aW9zdHJlYW0uaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KDQoN
CkNPUkJBOjpPUkJfcHRyIG9yYjsNCkNPUkJBOjpCT0FfcHRyIGJvYTsNCg0K
dm9pZA0KSW5pdE9yYkFuZEJvYSgNCiAgaW50IGFyZ2MsDQogIGNoYXIgKiog
YXJndg0KKQ0Kew0KICBvcmIgPSBDT1JCQTo6T1JCX2luaXQoYXJnYyxhcmd2
LCJvbW5pT1JCMiIpOw0KICBpZiA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