Discussion:
address.cc assertion failed on x86_64 Ubuntu 9.04
Jeff Angielski
2009-10-27 16:01:42 UTC
Permalink
I am not sure my first attempt at sending this was successful so I am
trying again. Sorry if it ends up being a double post.

I am unable to compile MICO on a 64bit Ubuntu 9.04 distribution. The
idl fails with the following assertion when compiling the first idl file:

$ configure
$ make
<..snip...>
/home/jaa/mico/./idl/idl -B../.. --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[1256592588846 - 47360507142816] address.cc:604: assertion failed
make[2]: *** [CosNaming.cc] Aborted

The assertion is a size mismatch:

assert (_ipaddr.size() == sizeof (sin.sin_addr.s_addr));


This seems like a fundamental problem with the ORB and 64bit GCC. Does
anybody else have this running under this distro?


The gcc that fails is the 4.3.3 gcc on a 64bit machine.

$ gcc --ver
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)


We have been able to run it with this 4.3.2 gcc on a 32bit machine.

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
--
Jeff Angielski
The PTR Group
www.theptrgroup.com
E***@shell.com
2009-11-09 09:13:41 UTC
Permalink
Hi,

I had 64 bit issues with MICO 2.3.11 recently. The program crashed randomly on different points in the code (mostly CORBA::Buffer).
Our problems seems to be resolved now we have moved to MICO 2.3.13. We are using an older version of GCC (3.4.x), So your compiler should be better.

You might want to concider moving to MICO 2.3.13 too.

Regards,

Eric.


-----Original Message-----
From: mico-devel-***@mico.org [mailto:mico-devel-***@mico.org]On
Behalf Of Jeff Angielski
Sent: Tuesday, October 27, 2009 17:02
To: mico-***@mico.org
Subject: [mico-devel] address.cc assertion failed on x86_64 Ubuntu 9.04



I am not sure my first attempt at sending this was successful so I am
trying again. Sorry if it ends up being a double post.

I am unable to compile MICO on a 64bit Ubuntu 9.04 distribution. The
idl fails with the following assertion when compiling the first idl file:

$ configure
$ make
<..snip...>
/home/jaa/mico/./idl/idl -B../.. --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[1256592588846 - 47360507142816] address.cc:604: assertion failed
make[2]: *** [CosNaming.cc] Aborted

The assertion is a size mismatch:

assert (_ipaddr.size() == sizeof (sin.sin_addr.s_addr));


This seems like a fundamental problem with the ORB and 64bit GCC. Does
anybody else have this running under this distro?


The gcc that fails is the 4.3.3 gcc on a 64bit machine.

$ gcc --ver
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)


We have been able to run it with this 4.3.2 gcc on a 32bit machine.

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
--
Jeff Angielski
The PTR Group
www.theptrgroup.com
Karel Gardas
2009-11-17 10:07:40 UTC
Permalink
Jeff,

could you be so kind and test if older version of GNU C++ are able to go
further in compilation? I'm sure MICO is running fine on several
different 64bit OSes while compiled by several different GNU C++
versions. The problem now is that there are few reports on this mailing
list where GNU C++ 4.3.x does not like MICO that much, honestly
speaking. So I would certainly give a try to some of the Ubuntu/Debian
provided older compilers and see if this help or not.

Cheers,
Karel
Post by Jeff Angielski
I am not sure my first attempt at sending this was successful so I am
trying again. Sorry if it ends up being a double post.
I am unable to compile MICO on a 64bit Ubuntu 9.04 distribution. The
$ configure
$ make
<..snip...>
/home/jaa/mico/./idl/idl -B../.. --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[1256592588846 - 47360507142816] address.cc:604: assertion failed
make[2]: *** [CosNaming.cc] Aborted
assert (_ipaddr.size() == sizeof (sin.sin_addr.s_addr));
This seems like a fundamental problem with the ORB and 64bit GCC. Does
anybody else have this running under this distro?
The gcc that fails is the 4.3.3 gcc on a 64bit machine.
$ gcc --ver
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
We have been able to run it with this 4.3.2 gcc on a 32bit machine.
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
--
Karel Gardas ***@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
Diego Sevilla Ruiz
2009-11-17 16:47:10 UTC
Permalink
Karel,

Just out of couriosity, does this means that in 64 bit you cannot use
recent (g++ 4.4) compilers to compile MICO? I've tried myself (with the
current darcs) and the code compiled, but the tests (the IDL ones) did not
work (idl/24 failed at least). Would it be hard to fix it?

Regards,
diego.
Post by Karel Gardas
Jeff,
could you be so kind and test if older version of GNU C++ are able to go
further in compilation? I'm sure MICO is running fine on several
different 64bit OSes while compiled by several different GNU C++
versions. The problem now is that there are few reports on this mailing
list where GNU C++ 4.3.x does not like MICO that much, honestly
speaking. So I would certainly give a try to some of the Ubuntu/Debian
provided older compilers and see if this help or not.
Cheers,
Karel
Post by Jeff Angielski
I am not sure my first attempt at sending this was successful so I am
trying again. Sorry if it ends up being a double post.
I am unable to compile MICO on a 64bit Ubuntu 9.04 distribution. The
$ configure
$ make
<..snip...>
/home/jaa/mico/./idl/idl -B../.. --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[1256592588846 - 47360507142816] address.cc:604: assertion failed
make[2]: *** [CosNaming.cc] Aborted
assert (_ipaddr.size() == sizeof (sin.sin_addr.s_addr));
This seems like a fundamental problem with the ORB and 64bit GCC. Does
anybody else have this running under this distro?
The gcc that fails is the 4.3.3 gcc on a 64bit machine.
$ gcc --ver
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
We have been able to run it with this 4.3.2 gcc on a 32bit machine.
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
--
Diego Sevilla Ruiz -- http://ditec.um.es/~dsevilla/ -- ***@um.es _.___
Dep. Ingeniería y Tecnología de Computadores, Facultad de Informática D|TEC
Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34868887571
Karel Gardas
2009-11-20 22:08:10 UTC
Permalink
Diego,

not at all! The problem is I don't have resources to test GCC 4.4/4.3 on
64bit here. But on the other hand there is more reports about MICO
brakeage with modern GCC than usual -- even if I uncount usually broken
fedora dot oh releases here. Particularly reports done on Ubuntu makes
me nervous since Debian is well known for its compiler stability (at
least my experience from all those years I used it).

If you do have some spare cycles could you be so kind and compile MICO
with 4.4 and with let say something up to 4.2 and compare output of
`make check' in test subdirectory (after you build test by simple
`make')? I would certainly be curious to see it if you manage to do this.

Thanks,
Karel
Post by Diego Sevilla Ruiz
Karel,
Just out of couriosity, does this means that in 64 bit you cannot
use recent (g++ 4.4) compilers to compile MICO? I've tried myself (with
the current darcs) and the code compiled, but the tests (the IDL ones)
did not work (idl/24 failed at least). Would it be hard to fix it?
Regards,
diego.
Post by Karel Gardas
Jeff,
could you be so kind and test if older version of GNU C++ are able to go
further in compilation? I'm sure MICO is running fine on several
different 64bit OSes while compiled by several different GNU C++
versions. The problem now is that there are few reports on this mailing
list where GNU C++ 4.3.x does not like MICO that much, honestly
speaking. So I would certainly give a try to some of the Ubuntu/Debian
provided older compilers and see if this help or not.
Cheers,
Karel
Post by Jeff Angielski
I am not sure my first attempt at sending this was successful so I am
trying again. Sorry if it ends up being a double post.
I am unable to compile MICO on a 64bit Ubuntu 9.04 distribution. The
$ configure
$ make
<..snip...>
/home/jaa/mico/./idl/idl -B../.. --c++-skel --name CosNaming \
../../include/coss/CosNaming.idl
[1256592588846 - 47360507142816] address.cc:604: assertion failed
make[2]: *** [CosNaming.cc] Aborted
assert (_ipaddr.size() == sizeof (sin.sin_addr.s_addr));
This seems like a fundamental problem with the ORB and 64bit GCC. Does
anybody else have this running under this distro?
The gcc that fails is the 4.3.3 gcc on a 64bit machine.
$ gcc --ver
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
We have been able to run it with this 4.3.2 gcc on a 32bit machine.
$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
--
Karel Gardas ***@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
Loading...