Problem with simple 'new' operator when using RTEMS 4.11 for the SIS BSP

Sebastian Huber sebastian.huber at embedded-brains.de
Sat Jul 26 10:16:25 UTC 2014


On 07/25/2014 09:49 PM, Fabrício de Novaes Kucinskis wrote:
> Hi all,
>
>   
>
> I’ve recently installed RTEMS 4.11 from the git head and am facing a strange
> problem: whenever I use the ‘new’ operator for a C++ application, the
> application crashes.

What do you mean with crash?

>
>   
>
> If, for instance, I have a printk instruction some lines before calling
> ‘new’ (as “int *a = new int[10];”), there is no output. It seems that the
> addition of ‘new’ is forcing the link to some C++ library that is not ok
> working well.

I would follow the printk() call and figure out why there is no output.

>
>   
>
> I’m using the SIS BSP, and this example works fine with RTEMS 4.10 (note:
> RTEMS 4.10 and 4.11 are installed in different computers).
>
>   
>
> I’m feeling dumb right now for not having any idea about what is going on.
> Any tips?

It helps if you provide a self contained example that reproduces the 
problem.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list