boost::python::def_visitor alignment / padding crash.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

boost::python::def_visitor alignment / padding crash.

Boost - Dev mailing list
I have discovered an alignment related bug in boost::python::def_visitor

For a very detailed description see https://gitlab.com/libeigen/eigen/issues/1795

* a minimal failing example:
  https://gitlab.com/cosurgi/minieigen-real/blob/minimalFailingExample/src/minimal-failing-float128.cpp

* and the failing CI pipeline:
  https://gitlab.com/cosurgi/minieigen-real/pipelines/104745741

Initially I thought that it was related with libeigen. But it
turns out that it crashes even without libeigen, when just using
boost::multiprecision::float128.

The code crashes with g++ 8.3.0 and works with g++ 9.2.1
boost version 1.67 is used there.

should I open an issue on boost github?

best regards
--
# Janek Kozicki                              http://janek.kozicki.pl/

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: boost::python::def_visitor alignment / padding crash.

Boost - Dev mailing list
I created an even smaller failing example, one without libeigen:

https://gitlab.com/cosurgi/minieigen-real/blob/minimalFailingFloat128/src/minimal-failing-float128.cpp

And the pipeline:

https://gitlab.com/cosurgi/minieigen-real/pipelines/104749255

Here you can clearly see that it crashes with def_visitor only.

best regards
Janek Kozicki

Janek Kozicki said:     (by the date of Sat, 21 Dec 2019 00:14:56 +0100)

> I have discovered an alignment related bug in boost::python::def_visitor
>
> For a very detailed description see https://gitlab.com/libeigen/eigen/issues/1795
>
> * a minimal failing example:
>   https://gitlab.com/cosurgi/minieigen-real/blob/minimalFailingExample/src/minimal-failing-float128.cpp
>
> * and the failing CI pipeline:
>   https://gitlab.com/cosurgi/minieigen-real/pipelines/104745741
>
> Initially I thought that it was related with libeigen. But it
> turns out that it crashes even without libeigen, when just using
> boost::multiprecision::float128.
>
> The code crashes with g++ 8.3.0 and works with g++ 9.2.1
> boost version 1.67 is used there.
>
> should I open an issue on boost github?
>
> best regards
> --
> # Janek Kozicki                              http://janek.kozicki.pl/


--
# Janek Kozicki                              http://janek.kozicki.pl/

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost