Discussion:
[omniORB] BUS error with omniorb 64 bits on solaris sparc
Sébastien Bouchex Bellomié
2007-09-05 19:09:31 UTC
Permalink
Hello,



I'm trying to use omniorb 64 bits (version 4.1) on solaris sparc and after having built the libraries successfully, I have a BUS ERROR in the omniorb runtime. I'm wondering if it's related to my compilation option (since there are none for 64 bits and I had to change them manually) or if it is a known bug.



Here is the call stack :



[...]

***@2 (***@2) signal BUS (invalid address alignment) in operator>>= at line 412 in file "cdrStream.h"

412 CdrMarshal(s,_CORBA_ULong,omni::ALIGN_4,a);

(dbx) where

current thread: ***@2

=>[1] operator>>=(a = ???, s = CLASS) (optimized), at 0xffffffff305763fc (line ~412) in "cdrStream.h"

[2] omni::omni_ior_initialiser::attach(this = ???) (optimized), at 0xffffffff3070f394 (line ~1356) in "ior.cc"

[3] CORBA::ORB_init(argc = ???, argv = ???, orb_identifier = ???, options = ???) (optimized), at 0xffffffff306e3df4 (line ~644) in "corbaOrb.cc"

[4] CORBAorb::initialize(endpoint = ???, ssl = ???, certificate = CLASS, password = CLASS, mapper = ???, comTimeout = ???, hostname = CLASS, clien

[...]



Thanks

Seb



S?bastien BOUCHEX BELLOMI? - InfoVista? Server Technical Lead
INFOVISTA SA
6, rue de la Terre De Feu
F-91952 Courtaboeuf Cedex
Tel : +33 (0)1 64 86 79 72 Fax : +33 (0)1 64 86 79 79
***@infovista.com <mailto:***@infovista.com> http://www.infovista.com <http://www.infovista.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070905/b0bdb0b5/attachment.htm
Harri Pasanen
2007-09-05 20:02:44 UTC
Permalink
Which compiler?

We are successfully using omniorb on 64 sparc solaris, compiled with
gcc.

Harri

On Wednesday 05 September 2007 15:09:20 S?bastien Bouchex Bellomi?
Post by Sébastien Bouchex Bellomié
Hello,
I'm trying to use omniorb 64 bits (version 4.1) on solaris sparc
and after having built the libraries successfully, I have a BUS
ERROR in the omniorb runtime. I'm wondering if it's related to my
compilation option (since there are none for 64 bits and I had to
change them manually) or if it is a known bug.
[...]
at line 412 in file "cdrStream.h"
412 CdrMarshal(s,_CORBA_ULong,omni::ALIGN_4,a);
(dbx) where
=>[1] operator>>=(a = ???, s = CLASS) (optimized), at
0xffffffff305763fc (line ~412) in "cdrStream.h"
[2] omni::omni_ior_initialiser::attach(this = ???) (optimized),
at 0xffffffff3070f394 (line ~1356) in "ior.cc"
[3] CORBA::ORB_init(argc = ???, argv = ???, orb_identifier =
???, options = ???) (optimized), at 0xffffffff306e3df4 (line
~644) in "corbaOrb.cc"
[4] CORBAorb::initialize(endpoint = ???, ssl = ???, certificate
= CLASS, password = CLASS, mapper = ???, comTimeout = ???,
hostname = CLASS, clien
[...]
Thanks
Seb
S?bastien BOUCHEX BELLOMI? - InfoVista? Server Technical Lead
INFOVISTA SA
6, rue de la Terre De Feu
F-91952 Courtaboeuf Cedex
Tel : +33 (0)1 64 86 79 72 Fax : +33 (0)1 64 86 79 79
http://www.infovista.com <http://www.infovista.com>
Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses. Statements in this message or attachments that do not relate to the business of Wall Street Systems are neither given nor endorsed by the company or its Directors.
Sébastien Bouchex Bellomié
2007-09-06 17:39:24 UTC
Permalink
Harri,

We are using sunstudio 11.

Which version of gcc are you using ?
Which options have you used to build the 64 bits version of omniorb with gcc ?

Thanks
Seb

-----Original Message-----
Message: 2
Date: Wed, 5 Sep 2007 16:02:00 +0200
From: Harri Pasanen <***@trema.com>
Subject: Re: [omniORB] BUS error with omniorb 64 bits on solaris sparc
To: omniorb-***@omniorb-support.com
Message-ID: <***@trema.com>
Content-Type: text/plain; charset="utf-8"

Which compiler?

We are successfully using omniorb on 64 sparc solaris, compiled with
gcc.

Harri

On Wednesday 05 September 2007 15:09:20 S??bastien Bouchex Bellomi??
Post by Sébastien Bouchex Bellomié
Hello,
I'm trying to use omniorb 64 bits (version 4.1) on solaris sparc
and after having built the libraries successfully, I have a BUS
ERROR in the omniorb runtime. I'm wondering if it's related to my
compilation option (since there are none for 64 bits and I had to
change them manually) or if it is a known bug.
[...]
at line 412 in file "cdrStream.h"
412 CdrMarshal(s,_CORBA_ULong,omni::ALIGN_4,a);
(dbx) where
=>[1] operator>>=(a = ???, s = CLASS) (optimized), at
0xffffffff305763fc (line ~412) in "cdrStream.h"
[2] omni::omni_ior_initialiser::attach(this = ???) (optimized),
at 0xffffffff3070f394 (line ~1356) in "ior.cc"
[3] CORBA::ORB_init(argc = ???, argv = ???, orb_identifier =
???, options = ???) (optimized), at 0xffffffff306e3df4 (line
~644) in "corbaOrb.cc"
[4] CORBAorb::initialize(endpoint = ???, ssl = ???, certificate
= CLASS, password = CLASS, mapper = ???, comTimeout = ???,
hostname = CLASS, clien
[...]
Thanks
Seb
S??bastien BOUCHEX BELLOMI?? - InfoVista?? Server Technical Lead
INFOVISTA SA
6, rue de la Terre De Feu
F-91952 Courtaboeuf Cedex
Tel : +33 (0)1 64 86 79 72 Fax : +33 (0)1 64 86 79 79
http://www.infovista.com <http://www.infovista.com>
Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses. Statements in this message or attachments that do not relate to the business of Wall Street Systems are neither given nor endorsed by the company or its Directors.
Harri Pasanen
2007-09-06 18:14:39 UTC
Permalink
On Thursday 06 September 2007 13:39:21 S?bastien Bouchex Bellomi?
Post by Sébastien Bouchex Bellomié
Harri,
We are using sunstudio 11.
Which version of gcc are you using ?
Currently gcc 3.4.4 on Solaris. Note that we are also building 64
bit on for linux, gcc 4.1.2.

The flags come mostly from autoconf (configure), but for 64 bit -m64
needs to be specified.

Harri


Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses. Statements in this message or attachments that do not relate to the business of Wall Street Systems are neither given nor endorsed by the company or its Directors.
Sébastien Bouchex Bellomié
2007-09-06 20:15:11 UTC
Permalink
And where do you set the -m64 ?

Thanks
seb

-----Original Message-----
From: omniorb-list-***@omniorb-support.com [mailto:omniorb-list-***@omniorb-support.com] On Behalf Of Harri Pasanen
Sent: jeudi 6 septembre 2007 14:15
To: omniorb-***@omniorb-support.com
Subject: Re: [omniORB] BUS error with omniorb 64 bits on solaris sparc

On Thursday 06 September 2007 13:39:21 S?bastien Bouchex Bellomi?
Post by Sébastien Bouchex Bellomié
Harri,
We are using sunstudio 11.
Which version of gcc are you using ?
Currently gcc 3.4.4 on Solaris. Note that we are also building 64
bit on for linux, gcc 4.1.2.

The flags come mostly from autoconf (configure), but for 64 bit -m64 needs to be specified.

Harri


Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses. Statements in this message or attachments that do not relate to the business of Wall Street Systems are neither given nor endorsed by the company or its Directors.
Mark Zimmerman
2007-09-06 20:43:12 UTC
Permalink
Post by Sébastien Bouchex Bellomié
Harri,
We are using sunstudio 11.
So are we, and we have been using 64 bit omniORB version 4.1 for
months now without incident. Here is my full configure line, although
you probably need only the CC and CXX parts:

../configure CC='/opt/SUNWspro/bin/cc -xarch=v9' \
CXX='/opt/SUNWspro/bin/CC -xarch=v9' \
PYTHON=/opt/Python-2.4.2/bin/python \
--prefix=/opt/omni-070119 --disable-static

-- Mark
Christof Meerwald
2007-09-15 04:34:15 UTC
Permalink
I'm trying to use omniorb 64 bits (version 4.1) on solaris sparc and =
after having built the libraries successfully, I have a BUS ERROR in the =
omniorb runtime. I'm wondering if it's related to my compilation option =
(since there are none for 64 bits and I had to change them manually) or =
if it is a known bug.
[...]
line 412 in file "cdrStream.h"
412 CdrMarshal(s,_CORBA_ULong,omni::ALIGN_4,a);
That looks a bit like omniORB has been configured for a 32-bit compiler, but
compiled with a 64-bit compiler (resulting in _CORBA_ULong being mapped to
"unsigned long" which is a 64-bit integer on 64-bit platforms)


Christof
--
http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Loading...