C++ static constructors and SMP

Ralf Corsepius ralf.corsepius at rtems.org
Wed Oct 23 00:36:44 UTC 2013

On 10/18/2013 08:07 PM, Stephen Tether wrote:
> Hi, all. At SLAC we've just started to experiment with the ML1 SMP 
> version of RTEMS on the Zynq. We're having a problem with 
> some statically allocated C++ objects: the constructors are not being 
> called before the first calls to the objects' member functions, which 
> eventually results in a data abort due to a null pointer. Sometimes 
> the constructors *are* called first, sometimes they are called too 
> late and sometimes they don't get called at all before the abort. How 
> are static constructors handled in this version of RTEMS and which 
> source files do I need to look at?
Are sure not to be hit by 
http://www.parashift.com/c++-faq/static-init-order.html ?


More information about the devel mailing list